echo Form::checkbox('friday', 5, Input::old('friday', false), ['id' => 'checkbox1', 'ng-model' => 'friday']); echo Form::checkbox('saturday', 6, Input::old('saturday', false), ['id' => 'checkbox1', 'ng-model' => 'saturday']); echo Form::checkbox('sunday', 7, Input::old('sunday', false), ['id' => 'checkbox1', 'ng-model' => 'sunday']); ?> </div> <form class="form-horizontal"> <div class="form-group"> <label class="control-label col-xs-3">年月日</label> <div class="col-xs-9 form-inline"> <input type="text" class="form-control" name="year" size="4"><label>年</label> <?php setlocale(LC_ALL, 'ja_JP.UTF-8'); echo Form::selectYear('year', 2013, 2015); echo '<label>年</label>'; echo Form::selectMonth('month'); ?> <input type="text" class="form-control" name="day" size="2"><label>日</label> </div> </div> </form> <form class="form-horizontal"> <div class="form-group"> <label class="control-label col-xs-3">チェックリスト</label> <div class="col-xs-9"> <label class="checkbox-inline"> <input type="checkbox" name="">オプション1 </label> <label class="checkbox-inline"> <input type="checkbox" name="">オプション2
@endforeach </ul> </div> @endif <?php $inputAttributes = ['class' => 'form-control']; $labelAttributes = ['class' => 'col-md-4 control-label']; ?> {!! Form::open(['class'=>'form-horizontal', 'role'=>'form', 'method'=>'POST', 'url'=>'reserve-room']) !!} <?php Form::macro('monthDayYear', function ($suffix = '') { echo Form::selectMonth($suffix !== '' ? 'month-' . $suffix : 'month', date('m')); echo Form::selectRange($suffix !== '' ? 'date-' . $suffix : 'date', 1, 31, date('d')); echo Form::selectRange($suffix !== '' ? 'year-' . $suffix : 'year', date('Y'), date('Y') + 3, date('Y')); }); ?> {!! Form::open(['class'=>'form-horizontal','role'=>'form', 'method'=>'POST', 'url'=>'/reserve-room']) !!} {!! Form::label(null, 'Start Date',$labelAttributes) !!} {!! Form::monthDayYear('-start') !!} {!! Form::label(null, 'End Date',$labelAttributes) !!} {!! Form::monthDayYear('-end') !!} {!! Form::submit('Reserve',['class'=>'btn btn-primary', 'style'=>'margin-right: 15px;']) !!} {!! Form::close() !!} </div> </div>