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

{{ $pageTitle }}

{{ html()->label(__('message.name') . ' *', 'name')->class('form-control-label') }} {{ html()->text('name')->placeholder(__('message.name'))->class('form-control')->attribute('required','required') }}
{{ html()->label(__('message.duration_unit'))->class('form-control-label') }} {{ html()->select('duration_unit',[ 'monthly' => __('message.monthly'), 'yearly' => __('message.yearly') ], old('status'))->class('form-control select2js')->attribute('required', 'required') }}
{{ html()->label(__('message.duration').' *')->class('form-control-label') }} {{ html()->select('duration', ['1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '11' => '11', '12' => '12' ], old('duration'))->class('form-control select2js')->attribute('required', 'required') ->id('duration') }}
{{ html()->label(__('message.price').' ($)*')->class('form-control-label') }} {{ html()->number('price', old('price'))->class('form-control')->attribute('min', 0)->attribute('step', 'any')->attribute('required', 'required')->placeholder(__('message.price')) }}
{{ 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') }}
{{ html()->label(__('message.description'))->class('form-control-label') }} {{ html()->textarea('description', null)->class('form-control tinymce-description')->placeholder(__('message.description')) }}

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