PHP Classes

File: src/views/crud/fields/edit/array.blade.php

Recommend this page to a friend!
  Classes of TJ Webb   Laravel CRUD Generator   src/views/crud/fields/edit/array.blade.php   Download  
File: src/views/crud/fields/edit/array.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel CRUD Generator
Generate MVC classes for any Laravel model
Author: By
Last change:
Date: 4 years ago
Size: 505 bytes
 

Contents

Class file image Download
<div class="col-xs-12 col-sm-12 col-md-12">
    <div class="form-group">
        <strong>{{$fieldDisplayName}}:</strong>

        @foreach($field->getOptions() as $option)
            <div>
                <input id="{{$fieldColumnName}}-{{$option}}" type="checkbox" name="{{$fieldColumnName}}[]" value="{{$option}}" {{in_csv($option, $value) ? 'checked' : ''}} />
                <label for="{{$fieldColumnName}}-{{$option}}">{{$option}}</label>
            </div>
        @endforeach

    </div>
</div>