@php use App\Models\LeaveType;use App\Models\Staff;use App\Models\User; @endphp @extends('employee.layouts.app') @section('title',get_setting('site_name').' Leave') @section('content')
Leave Application
@if($leaveHandoverEnabled) @endif @php $status1=null;$status2=null; @endphp @foreach($leaves as $key=>$leave) @if($leaveHandoverEnabled) @endif @endforeach
# Staff Name Apply Date Paid Leave From To Duration Remarks{{ __('Handover to') }}Approval Action
{{$key+1}} {{User::where('id',Staff::where('id',$leave->staff_id)->value('user_id'))->value('name')}} {{$leave->apply_date}} @if($leave->type=='paid') @else @endif {{$leave->start}} {{$leave->end}} {{$leave->number_of_days}} {{__('Days')}} {{$leave->reason}}{{ $leave->handoverStaff?->selectOptionLabel() ?? '—' }} @if($leave->status==1) @elseif($leave->status==0) @else @endif
{{$leaves->appends(request()->query())->links()}}
@endsection @section('modal') @include('modals.delete_modal') @endsection @section('script') @endsection