@extends('layouts.main') @section('title', 'Dashboard Andalan') @section('css') @php $dashboardCssPath = public_path('assets/css/dashboard.css'); $dashboardCssVersion = file_exists($dashboardCssPath) ? filemtime($dashboardCssPath) : time(); @endphp @endsection @section('navbarTitle', 'Overview') @section('content') @include('pic_attendance.layout.navbar')
Leave

Leave Balance ({{ $leaveSummaryYear }})

{{ $leaveEligibility['available_balance_label'] }}
100% Complete

Joint Holiday ({{ $leaveSummaryYear }})

{{ $leaveEligibility['joint_holiday_label'] }}
100% Complete

Annual Leave ({{ $leaveSummaryYear }})

{{ $leaveTracker['annual_leave_taken_label'] }}
95% Complete

Sick Leave ({{ $leaveSummaryYear }})

{{ $leaveTracker['sick_leave_taken_label'] }}
10%

Special Leave ({{ $leaveSummaryYear }})

{{ $leaveTracker['special_leave_taken_label'] }}
0% Complete

Unpaid Leave ({{ $leaveSummaryYear }})

{{ $leaveTracker['unpaid_leave_taken_label'] }}
0% Complete

Leave Summary

Monitor your time-off and your eligibility status

Leave Balance & Eligibility

Please ensure you have met the 1-year service requirement and your request does not exceed the maximum monthly limit.

Full Name
{{ $leaveEligibility['full_name'] }}
Supervisor
{{ $leaveEligibility['supervisor_name'] }}
Join Date
{{ $leaveEligibility['join_date_label'] }}
Current Tenure
{{ $leaveEligibility['tenure_label'] }}
@if ($leaveEligibility['is_eligible']) Eligible @else Not Eligible @endif
Available Balance
{{ $leaveEligibility['available_balance_label'] }}
@if ($leaveEligibility['is_eligible']) Eligible @else Not Eligible @endif
{{ $leaveEligibility['available_balance_note'] }}
Next Accrual
{{ $leaveEligibility['next_accrual_label'] }}
{{ $leaveEligibility['next_accrual_note'] }}
Joint Holiday
{{ $leaveEligibility['joint_holiday_label'] }}
@forelse ($leaveEligibility['joint_holiday_items'] as $item) {{ $item }}@if (! $loop->last),
@endif @empty No joint holiday scheduled. @endforelse

Time Off Tracker

Review your year-to-date usage and check the status of your recent requests.

Annual Leave Taken
{{ $leaveTracker['annual_leave_taken_label'] }}
{{ $leaveTracker['annual_leave_taken_breakdown'] }}
Annual Leave Taken This Month ({{ $leaveTracker['month_label'] }})
{{ $leaveTracker['annual_leave_taken_month_label'] }}
{{ $leaveTracker['annual_leave_taken_month_breakdown'] }}
Maximum limit is 2 days per month
Sick Leave Taken
{{ $leaveTracker['sick_leave_taken_label'] }}
{{ $leaveTracker['sick_leave_taken_breakdown'] }}
Sick Leave Taken This Month ({{ $leaveTracker['month_label'] }})
{{ $leaveTracker['sick_leave_taken_month_label'] }}
{{ $leaveTracker['sick_leave_taken_month_breakdown'] }}
Special Leave Taken
{{ $leaveTracker['special_leave_taken_label'] }}
{{ $leaveTracker['special_leave_taken_breakdown'] }}
Special Leave Taken This Month ({{ $leaveTracker['month_label'] }})
{{ $leaveTracker['special_leave_taken_month_label'] }}
{{ $leaveTracker['special_leave_taken_month_breakdown'] }}
Unpaid Leave Taken
{{ $leaveTracker['unpaid_leave_taken_label'] }}
{{ $leaveTracker['unpaid_leave_taken_breakdown'] }}
Unpaid Leave Taken This Month ({{ $leaveTracker['month_label'] }})
{{ $leaveTracker['unpaid_leave_taken_month_label'] }}
{{ $leaveTracker['unpaid_leave_taken_month_breakdown'] }}

Active / Pending Requests
{{ $leaveTracker['pending_requests_label'] }}
Total Approved Leaves
{{ $leaveTracker['approved_requests_label'] }}
Total Rejected Leaves
{{ $leaveTracker['rejected_requests_label'] }}

Supervisor Leave Review

Review the leave request before it proceeds to HR Verification.

@csrf @method('PUT')
@include('partials.swal-alert', ['type' => 'success', 'message' => session('success')]) @error('status') @include('partials.swal-alert', ['type' => 'error', 'message' => $message]) @enderror

Leave Type
{{ $leaveApproval['leave_type_label'] }}
Special Leave Type
{{ $leaveApproval['special_leave_type_label'] }}
Date
{{ $leaveApproval['period_label'] }}
Reason
{{ $leaveApproval['reason'] }}
Handover Note
{{ $leaveApproval['handover_notes'] }}
Attachment
@if ($leaveApproval['attachment_url']) {{ $leaveApproval['attachment_label'] }} @else - @endif
@if ($leaveApproval['can_finalize'])
@endif
@endsection @section('script') @php $dashboardJsPath = public_path('assets/js/dashboard.js'); $dashboardJsVersion = file_exists($dashboardJsPath) ? filemtime($dashboardJsPath) : time(); @endphp @endsection