first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
<div class="modal fade" id="leaveModal" tabindex="-1" aria-labelledby="leaveLabel"
aria-modal="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header model-primary">
<h5 class="modal-title" id="leaveModalgridLabel">Apply Leave</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="{{ route('leave.store') }}" class="needs-validation" novalidate method="post">
@csrf
<div class="row gy-2">
<input type="hidden" id="employee_id" name="employee_id" value="{{ $employee->id }}">
<div class="col-md-6">
{{ html()->label('Employee')->class('form-label') }}
{{html()->span('*')->class('text-danger')}}
{{ html()->select('employee_id', $employeeList)->class('form-select select2')->placeholder('Select Employee')->required() }}
{{ html()->div('Please Select Employee')->class('invalid-feedback') }}
</div>
<div class="col-md-6">
{{ html()->label('Leave Type')->class('form-label') }}
{{html()->span('*')->class('text-danger')}}
{{ html()->select('leave_type_id', $leaveTypeList)->class('form-select select2')->attributes(['id' => 'leave_type_id'])->placeholder('Select Leave Type')->required() }}
{{ html()->div('Please Select Leave Type')->class('invalid-feedback') }}
</div>
<div class="col-md-12">
{{ html()->label('Selet Duration')->class('form-label') }}
{{html()->span('*')->class('text-danger')}}
<div>
@php
$leaveDuration = isset($leave) && is_object($leave) ? $leave->duration : null;
@endphp
@foreach ($duration as $durationKey => $durationItem)
<div class="form-check form-check-inline">
{{ html()->radio('duration')->class('form-check-input duration')
->checked(old('duration', $leaveDuration === $durationKey))
->attributes(['id' => $durationKey])
->value($durationKey)
->required() }}
{{ html()->label($durationItem)->class('form-check-label')->for($durationKey) }}
</div>
@endforeach
</div>
</div>
<div class="col-md-12">
{{ html()->label('Choose Date')->class('form-label') }}
{{ html()->text('start_date')->class('form-control start-date')->placeholder('Select Start Date')->attributes([])->required() }}
{{ html()->div('Please Select Start Date')->class('invalid-feedback') }}
</div>
<div class="col-md-8 leave-note">
<ul class="list-group">
</ul>
</div>
<div class="col-md-12">
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('description')->class('form-control')->placeholder('Write Reason for Leave') }}
</div>
</div>
<div class="mt-4 text-end">
<button type="submit" class="btn btn-success w-sm">Save</button>
</div>
</form>
</div>
</div>
</div>
</div>