{{-- For each form type, load its assets, if needed --}}
{{-- But only once per field type (no need to include the same css/js files multiple times on the same page) --}}
@section('after_styles')
@foreach ($crud['fields'] as $field)
@if(!isset($loaded_form_types_css[$field['type']]) || $loaded_form_types_css[$field['type']]==false)
@if (View::exists('vendor.dick.crud.fields.assets.css.'.$field['type'], array('field' => $field)))
@include('vendor.dick.crud.fields.assets.css.'.$field['type'], array('field' => $field))
Notice: Undefined variable: field in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 38
Notice: Trying to access array offset on value of type null in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 38
@elseif (View::exists('crud::fields.assets.css.'.$field['type'], array('field' => $field)))
@include('crud::fields.assets.css.'.$field['type'], array('field' => $field))
Notice: Undefined variable: field in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 41
Notice: Trying to access array offset on value of type null in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 41
@endif
@endif
@endforeach
@endsection
@section('after_scripts')
@foreach ($crud['fields'] as $field)
@if(!isset($loaded_form_types_js[$field['type']]) || $loaded_form_types_js[$field['type']]==false)
@if (View::exists('vendor.dick.crud.fields.assets.js.'.$field['type'], array('field' => $field)))
@include('vendor.dick.crud.fields.assets.js.'.$field['type'], array('field' => $field))
Notice: Undefined variable: field in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 53
Notice: Trying to access array offset on value of type null in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 53
@elseif (View::exists('crud::fields.assets.js.'.$field['type'], array('field' => $field)))
@include('crud::fields.assets.js.'.$field['type'], array('field' => $field))
Notice: Undefined variable: field in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 56
Notice: Trying to access array offset on value of type null in /home/evrosdgz/public_html/main/vendor/backpack/crud/src/resources/views/form_content.blade.php on line 56
@endif
@endif
@endforeach
@endsection