@extends('admin.layouts.layouts') @section('title', 'My Leave') @section('content') {{-- Unified Modal for Create & Edit --}}
{{--

This Month

{{ $thisMonthLeaves }}

Last 30 Days

{{ $last30DaysLeaves }}

Eligible Leaves

{{ $eligibleLeave }}

Leaves Utilized

{{ $totalLeavesUsed }}

--}}
Leave Breakdown
@if (count($leaveSummary) > 0)
@foreach ($leaveSummary as $leave)
{{ $leave['name'] }} ({{ $leave['short_name'] }})

{{ $leave['used'] }}/{{ $leave['total'] }}

@php $percentage = $leave['total'] > 0 ? ($leave['used'] / $leave['total']) * 100 : 0; @endphp

@if($leave['total'] - $leave['used'] > 0) {{ $leave['total'] - $leave['used'] }} remaining @else No leaves left @endif

@endforeach
@else

No leave Found

@endif
My Leaves
Type Dates Reason RM Status Created At Updated At File Action
@endsection @section('page-js') @endsection