New-OMIS/Modules/Leave/resources/views/partials/action.blade.php

26 lines
898 B
PHP
Raw Normal View History

2024-04-04 10:35:27 +00:00
<div class="mb-3">
2024-04-09 12:15:26 +00:00
2024-04-05 12:11:16 +00:00
<label for="employee_id" class="form-label">Employee Name</label>
2024-04-11 10:52:12 +00:00
{{ html()->select('employee_id', $employeeList)->class('form-select')->placeholder('Select Employee') }}
2024-04-04 10:35:27 +00:00
</div>
2024-04-05 12:11:16 +00:00
2024-04-04 10:35:27 +00:00
<div class="mb-3">
2024-04-05 12:11:16 +00:00
<label for="start_date" class="form-label">Start Leave Date</label>
<input type="date" class="form-control" id="start_date" name="start_date"
value="{{ old('start_date', $leave->start_date ?? '') }}">
2024-04-04 10:35:27 +00:00
</div>
2024-04-05 12:11:16 +00:00
2024-04-04 10:35:27 +00:00
<div class="mb-3">
2024-04-05 12:11:16 +00:00
<label for="end_date" class="form-label">End Leave Date</label>
<input type="date" class="form-control" id="end_date" name="end_date"
value="{{ old('end_date', $leave->end_date ?? '') }}">
2024-04-04 10:35:27 +00:00
</div>
2024-04-05 12:11:16 +00:00
2024-04-04 10:35:27 +00:00
<div class="text-end">
2024-04-05 12:11:16 +00:00
<button type="submit" class="btn btn-primary">{{ isset($leave) ? 'Update' : 'Add Leave' }}</button>
2024-04-04 10:35:27 +00:00
</div>
2024-04-04 16:52:34 +00:00
@push('js')
2024-04-05 12:11:16 +00:00
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
2024-04-04 16:52:34 +00:00
@endpush