@extends('layouts.master') @section('title') Create Building @stop @section('content')

Add Building

{{ Form::open(['role' => 'form', 'action' => 'BuildingController@store']) }}
{{ Form::label('address', 'Address') }} {{ Form::text('address', null, ['placeholder' => 'Address', 'class' => 'form-control', 'required']) }} @if ($errors->has('address'))
{{ $errors->first('address') }}
@endif
{{ Form::label('total_nights', 'Total Nights Allowed') }} {{ Form::text('total_nights', null, ['placeholder' => 'Total Nights Allowed', 'class' => 'form-control', 'required']) }} @if ($errors->has('total_nights'))
{{ $errors->first('total_nights') }}
@endif
{{ Form::label('consecutive_nights', 'Consecutive Nights Allowed') }} {{ Form::text('consecutive_nights', null, ['placeholder' => 'Consecutive Nights Allowed', 'class' => 'form-control', 'required']) }} @if ($errors->has('consecutive_nights'))
{{ $errors->first('consecutive_nights') }}
@endif
{{ Form::label('daily_reset', 'Daily Reset (24 hour format)') }} {{ Form::text('daily_reset', null, ['placeholder' => 'Daily Reset (24 hour format)', 'class' => 'form-control', 'required']) }} @if ($errors->has('daily_reset'))
{{ $errors->first('daily_reset') }}
@endif
@if ($security->isEmpty())

No Security

@else

Security

@if ($errors->has('security'))
{{ $errors->first('security') }}
@endif
@foreach ($security as $s) {{ Form::checkbox('security_group[]', $s->id, null, array('id' => 'security' . $s->id)) }} {{ Form::label('security' . $s->id, $s->name) }}
@endforeach
@endif
{{ Form::submit('Create Building', ['class' => 'btn btn-primary']) }}
{{ Form::close() }}
@stop