akaunting/resources/views/partials/form/checkbox_group.blade.php

15 lines
533 B
PHP
Raw Normal View History

2018-08-04 19:07:32 +03:00
@stack($name . '_input_start')
2017-09-14 22:21:00 +03:00
<div class="form-group {{ $col }} {{ isset($attributes['required']) ? 'required' : '' }} {{ $errors->has($name) ? 'has-error' : '' }}">
{!! Form::label($name, $text, ['class' => 'control-label']) !!}
<br/>
@foreach($items as $item)
<div class="col-md-3">
{{ Form::checkbox($name . '[]', $item->$id) }} &nbsp; {{ $item->$value }}
</div>
@endforeach
{!! $errors->first($name, '<p class="help-block">:message</p>') !!}
</div>
2018-08-04 19:07:32 +03:00
@stack($name . '_input_end')