StocksNew/Modules/Office/resources/views/generators/partials/action.blade.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

102 lines
4.3 KiB
PHP

<div class="row gy-3">
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Manufacturer')->class('form-label') }}
{{ html()->text('manufacturer')->class('form-control')->placeholder('Manufacturer')->required()}}
{{ html()->div('Please Fill the Field')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-4 col-md-6">
{{ 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') }}
</div>
<div class="col-lg-12 col-md-12">
{{ 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') }}
</div>
<div class="text-end">
{{ html()->button($editable ? 'Update' : 'Add Generator', 'submit')->class('btn btn-success') }}
</div>
</div>
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush