@extends('layouts.app') @section('content')
{{ html()->text('date')->class('form-control')->value(request('date'))->placeholder('Date Range')->attributes([ 'id' => 'datepicker-range', 'data-provider' => 'flatpickr', 'data-date-format' => 'Y-m-d', 'data-range-date' => 'true', ]) }}
Reset
Leave Lists
@forelse ($leaves as $key => $leave) @empty @endforelse
S.N Employee Name Leave Type Start Date End Date Status Action
{{ $key + 1 }} {{ optional($leave->employee)->full_name }}
{{ optional($leave->leaveType)->name }}
{{ $leave->getDuration() }}
{{ $leave->start_date }} {{ $leave->end_date }} {!! $leave->status_name['status'] !!}
{{-- --}} @can('leave.show') @endcan @can('leave.edit') @endcan @can('leave.updateStatus') @endcan @can('leave.destroy') @endcan
No Leave Found
@can('leave.updateStatus') @endcan @endsection @push('js') @endpush