@extends('layouts.master')
@section('title') Create Security @stop
@section('content')
Add Security
{{ Form::open(['role' => 'form', 'action' => array('SecurityController@store')]) }}
@if ($buildings->isEmpty())
No Buildings
@else
Buildings
@if ($errors->has('buildings'))
{{ $errors->first('buildings') }}
@endif
@foreach ($buildings as $building)
{{ Form::checkbox('building_group[]', $building->id, null,
array('id' => 'building' . $building->id)) }}
{{ Form::label('building' . $building->id, $building->address) }}
@endforeach
@endif
{{ Form::submit('Create Security', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@stop