$value) @if (in_array($attribute, ['name', 'value'])) @if($attribute == 'value') {{ $attribute }}="{{ old($field['name']) ? old($field['name']) : $value }}" @else {{ $attribute }}="{{ $value }}" @endif @endif @endforeach >
{{-- ########################################## --}} {{-- Extra CSS and JS for this particular field --}} {{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}} @if ($crud->checkIfFieldIsFirstOfItsType($field, $fields)) {{-- FIELD CSS - will be loaded in the after_styles section --}} @push('crud_fields_styles') {{-- YOUR CSS HERE --}} @endpush {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') @endpush @endif {{-- End of Extra CSS and JS --}} {{-- ########################################## --}}