StocksNew/Modules/Admin/resources/views/partials/warnings/action.blade.php

38 lines
1.7 KiB
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
<div class="row gy-3">
<div class="col-lg-4 col-md-6">
{{ html()->label('Warning Recipient')->class('form-label') }}
{{ html()->select('employee_id', $employeeLists)->class('form-select select2')->placeholder('Select Warning Recipient')->required() }}
{{ html()->div('Please select Recipient')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Warning Type')->class('form-label') }}
{{ html()->select('type',\Modules\Admin\Models\Warning::WARNING_TYPE)->class('form-select select2')->placeholder('Select Warning Type')->required() }}
{{ html()->div('Please select Type')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Warning Date')->class('form-label') }}
{{ html()->date('warning_date')->class('form-control')->placeholder('Select Warning Date')->required() }}
{{ html()->div('Please select warning_date')->class('invalid-feedback') }}
</div>
<div class="col-lg-12 col-md-12">
{{ html()->label('Reason')->class('form-label') }}
{{ html()->select('reason',\Modules\Admin\Models\Warning::WARNING_REASON)->class('form-select select2')->placeholder('Warning Reason') }}
</div>
<div class="col-lg-12 col-md-12">
{{ html()->label('Details')->class('form-label') }}
{{ html()->textarea('description')->class('form-control')->placeholder('Warning Details')->attributes(['rows' => 3]) }}
</div>
<x-form-buttons :editable="$editable" label='Add' href="{{ route('warning.index') }}" />
</div>
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush