@push('scripts') @endpush
@if(isset($id)) {{ html()->modelForm($data, 'PATCH', route('equipment.update', $id) )->attribute('enctype', 'multipart/form-data')->open() }} @else {{ html()->form('POST', route('equipment.store'))->attribute('enctype', 'multipart/form-data')->open() }} @endif

{{ $pageTitle }}

{{ html()->label(__('message.title') . ' *', 'title')->class('form-control-label') }} {{ html()->text('title')->placeholder(__('message.title'))->class('form-control')->attribute('required','required') }}
{{ html()->label(__('message.status') . ' *', 'status')->class('form-control-label') }} {{ html()->select('status',[ 'active' => __('message.active'), 'inactive' => __('message.inactive') ], old('status'))->class('form-control select2js')->attribute('required', 'required') }}
@if( isset($id) && getMediaFileExit($data, 'equipment_image')) @endif

{{ html()->submit( __('message.save') )->class('btn btn-md btn-primary float-end') }}
@if(isset($id)) {{ html()->closeModelForm() }} @else {{ html()->form()->close() }} @endif