@endsection
@section('js')
@foreach ($inputs as $input)
@if ($input['input'] == 'multiple_select')
{{-- if find one multiple select call scripts --}}
{{-- if find one multiple loop at inputs and set script for every multiple select --}}
@foreach ($inputs as $name => $select)
@if ($select['input'] == 'multiple_select')
@endif
@endforeach
{{-- stop if find one multiple select --}}
@break
@endif
@endforeach
{{-- map scripts --}}
@foreach ($inputs as $input)
@if ($input['input'] == 'map')
@include('admin.shared.inputs.map', [
'lat' => $item['lat'],
'lng' => $item['lng'],
'draggable' => false,
])
@break
@endif
@endforeach
{{-- if the input have ckeditor --}}
@foreach ($inputs as $input)
@if (isset($input['ckeditor']) && $input['ckeditor'] === true)
{{-- if find one ckeditor call scripts --}}
{{-- if find one ckeditor loop at inputs and set script for every ckeditor --}}
@foreach ($inputs as $key => $editor)
@if (isset($editor['ckeditor']) && $input['ckeditor'] === true)
@endif
@endforeach
{{-- stop if find one ckeditr --}}
@break
@endif
@endforeach
@endsection