Heera/Modules/Admin/resources/views/partials/appreciations/action.blade.php
2024-05-16 09:31:08 +05:45

51 lines
2.0 KiB
PHP

<div class="row gy-3">
<div class="col-lg-4 col-md-6">
{{ html()->label('Title')->class('form-label') }}
{{ html()->text('title')->class('form-control')->placeholder('Enter Title')->required() }}
{{ html()->div('Please select title')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Appreciation Type')->class('form-label') }}
{{ html()->select('type', \Modules\Admin\Models\Appreciation::APPRECIATION_TYPE)->class('form-select select2')->placeholder('Select Type')->required() }}
{{ html()->div('Please select type')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Employee')->class('form-label') }}
{{ html()->select('employee_id', $employeeLists)->class('form-select select2')->placeholder('Select Employee')->required() }}
{{ html()->div('Please select appriciation')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Appreciated By')->class('form-label') }}
{{ html()->select('appreciated_by', $employeeLists)->class('form-select select2')->placeholder('Select Who Appreciated')->required() }}
{{ html()->div('Please select appriciated by')->class('invalid-feedback') }}
</div>
<div class="col-lg-4 col-md-6">
{{ html()->label('Appreciated Date')->class('form-label') }}
{{ html()->date('appreciated_date')->class('form-control')->placeholder('Select Date')->required()}}
{{ html()->div('Please select appreciated 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]) }}
</div>
<x-form-buttons :editable="$editable" label="Add" href="{{ route('appreciation.index') }}" />
</div>
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush