@extends('layouts.master')
@section('title') Create Security @stop
@section('content')
Edit Security
{{ Form::model($user->toArray() + $security->toArray(), ['role' => 'form',
'action' => array('SecurityController@update', $security->id), 'method' => 'PUT']) }}
@if (empty($buildings))
No Buildings
@else
Buildings
@if ($errors->has('buildings'))
{{ $errors->first('buildings') }}
@endif
@foreach ($buildings as $b)
{{ Form::checkbox('building_group[]', $building->id, $b['selected'],
array('id' => 'building' . $building->id)) }}
{{ Form::label('building' . $building->id, $building->address) }}
@endforeach
@endif
{{ Form::submit('Update Security', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@stop