@if(isset($id)) {{ html()->modelForm($data, 'PATCH', route('delivery-man-section.update', $id))->attribute('enctype', 'multipart/form-data')->id('section_form')->open() }} @else {{ html()->form('POST', route('delivery-man-section.store'))->attribute('enctype', 'multipart/form-data')->id('section_form')->open() }} @endif

{{ $pageTitle }}

{{ __('message.back') }}
{{ html()->label(__('message.title') . ' *', 'title')->class('form-control-label') }} {{ html()->text('sections[0][title]', $data->title ?? '')->placeholder(__('message.title'))->class('form-control')->required() }}
{{--
{{ html()->label(__('message.subtitle') . ' *', 'subtitle')->class('form-control-label') }} {{ html()->text('sections[0][subtitle]', $data->subtitle ?? '')->placeholder(__('message.subtitle'))->class('form-control')->required() }}
--}} @if(isset($id) && getMediaFileExit($data, 'delivery_man_section_image'))
{{ html()->label(__('message.image'), 'delivery_man_section_image')->class('form-control-label') }}
{{ html()->file('sections[0][delivery_man_section_image]')->class('custom-file-input')->accept('image/*') }} {{ html()->label(__('message.choose_file', ['file' => __('message.image')]))->class('custom-file-label') }}
@else
{{ html()->label(__('message.image'), 'delivery_man_section_image')->class('form-control-label') }}
{{ html()->file('sections[0][delivery_man_section_image]')->class('custom-file-input')->accept('image/*') }} {{ html()->label(__('message.choose_file', ['file' => __('message.image')]))->class('custom-file-label') }}
@endif
@forelse ($titles as $title)
@empty
@endforelse

{{ html()->submit(__('message.save'))->class('btn btn-md btn-primary float-right') }}
{{ html()->form()->close() }}
@section('bottom_script') @endsection