{{ html()->label('Name')->class('form-label') }}
{{ html()->text('name')->class('form-control')->placeholder('Generator Name')->required() }}
{{ html()->div('Please Fill the Field')->class('invalid-feedback') }}
{{ html()->label('Model')->class('form-label') }}
{{ html()->text('model')->class('form-control')->placeholder('Model Number')->required() }}
{{ html()->div('Please Fill the model number')->class('invalid-feedback') }}
{{ html()->label('Manufacturer')->class('form-label') }}
{{ html()->text('manufacturer')->class('form-control')->placeholder('Manufacturer')->required()}}
{{ html()->div('Please Fill the Field')->class('invalid-feedback') }}
{{ html()->label('Serial Number')->class('form-label') }}
{{ html()->text('serial_number')->class('form-control')->placeholder('Serial Number')->required() }}
{{ html()->div('Please Fill Serial Number')->class('invalid-feedback') }}
{{ html()->label('Fuel Type')->class('form-label') }}
{{ html()->select('fuel_type', \Modules\Office\Models\Generator::FUEL_TYPE)->class('form-select select2')->placeholder('Fuel Type')->required() }}
{{ html()->div('Please Fill the Fuel Type')->class('invalid-feedback') }}
{{ html()->label('Fuel Tank Capacity')->class('form-label') }}
{{ html()->number('fuel_tank_capacity')->class('form-control')->placeholder('Capacity in Litre')->required() }}
{{ html()->div('Please Fill the Fuel Tank Capacity')->class('invalid-feedback') }}
{{ html()->label('Producing Capacity')->class('form-label') }}
{{ html()->number('capacity')->class('form-control')->placeholder('Capacity in Kwh')->required() }}
{{ html()->div('Please Fill the producing capacity')->class('invalid-feedback') }}
{{ html()->label('Warranty Expiry Date')->class('form-label') }}
{{ html()->date('warranty_expiry_date')->class('form-control')->placeholder('Warranty Expiry Date')->required() }}
{{ html()->div('Please Fill the warenty expirey date')->class('invalid-feedback') }}
{{ html()->label('Installed Location')->class('form-label') }}
{{ html()->text('location')->class('form-control')->placeholder('Installed Location')->required() }}
{{ html()->div('Please Fill the location')->class('invalid-feedback') }}
{{ html()->label('Installation Date')->class('form-label') }}
{{ html()->date('installation_date')->class('form-control')->placeholder('Installation Date')->required() }}
{{ html()->div('Please fill the installation date')->class('invalid-feedback') }}
{{ html()->label('Last Maintenance Date')->class('form-label') }}
{{ html()->date('last_maintenance_date')->class('form-control')->placeholder('Last Maintenance Date')->required() }}
{{ html()->div('Please fill last maintenance date')->class('invalid-feedback') }}
{{ html()->label('Next Maintenance Due')->class('form-label') }}
{{ html()->date('next_maintenance_due')->class('form-control')->placeholder('Next Maintenance Due')->required() }}
{{ html()->div('Please Fill next maintanace date')->class('invalid-feedback') }}
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('description')->class('form-control')->attributes(['rows' => 3])->required() }}
{{ html()->div('Please Fill the description')->class('invalid-feedback') }}
{{ html()->button($editable ? 'Update' : 'Add Generator', 'submit')->class('btn btn-success') }}
@push('js')
@endpush