@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', 'Attendances') @section('content') @include('layouts.breadcrumb', [ 'title' => 'Attendances', 'current' => 'Overtime', 'homeRoute' => 'dashboard', ]) @include('staff_attendance.layouts.profile-index')
Overtime Details

Your Extra Mile

Here is a breakdown of your overtime shift, the tasks you crushed, and your reward details.

Employee Profile
Record ID
{{ $overtimeReference ?? '#OVT' }}
Full Name
{{ $overtimeDetail['staff_name'] ?? '-' }}
Supervisor
{{ $overtimeDetail['supervisor_name'] ?? '-' }}
Overtime Log ({{ $overtimeDetail['log_status'] ?? '-' }})
Date
{{ $overtimeDetail['overtime_date'] ?? '-' }}
Time
@if (($overtimeDetail['is_pic_verified'] ?? false) && ($overtimeDetail['has_approved_time'] ?? false)) {{ $overtimeDetail['actual_time_range'] ?? '-' }} , {{ $overtimeDetail['approved_time_range'] ?? '-' }} @else {{ $overtimeDetail['actual_time_range'] ?? '-' }} @endif
Total Duration
@if (($overtimeDetail['is_pic_verified'] ?? false) && ($overtimeDetail['has_approved_time'] ?? false)) {{ $overtimeDetail['actual_duration'] ?? '-' }} , {{ $overtimeDetail['approved_duration'] ?? '-' }} @else {{ $overtimeDetail['actual_duration'] ?? '-' }} @endif
Brief and Instructions
{{ $overtimeDetail['instruction'] ?? '-' }}

Compensation & Payroll Details
Compensation Type
Overtime Pay
Calculated Hours
{{ $overtimeDetail['calculated_hours'] ?? '-' }}
Estimated Calculated Earnings
{{ $overtimeDetail['estimated_earnings'] ?? '-' }}
Payout Period
{{ $overtimeDetail['payout_period'] ?? '-' }}

Approval Trail
Verified by System
{{ $overtimeDetail['verified_note'] ?? '-' }}
@if (($overtimeDetail['verified_datetime'] ?? '-') === '-') Pending @else {{ $overtimeDetail['verified_datetime'] ?? '-' }} @endif
Approved by Supervisor
{{ $overtimeDetail['supervisor_approver'] ?? '-' }}
@if (($overtimeDetail['supervisor_datetime'] ?? '-') === '-') Pending @else {{ $overtimeDetail['supervisor_datetime'] ?? '-' }} @endif
Approved by Director
{{ $overtimeDetail['director_approver'] ?? '-' }}
@if (($overtimeDetail['director_datetime'] ?? '-') === '-') Pending @else {{ $overtimeDetail['director_datetime'] ?? '-' }} @endif
@php $canClockInOvertime = (bool) ($overtimeDetail['clock_in_allowed'] ?? false); $clockInUnavailableTitle = trim((string) ($overtimeDetail['clock_in_unavailable_title'] ?? '')); $clockInUnavailableMessage = trim((string) ($overtimeDetail['clock_in_unavailable_message'] ?? '')); $canClockOutOvertime = (bool) ($overtimeDetail['clock_out_allowed'] ?? false); $clockOutUnavailableTitle = trim((string) ($overtimeDetail['clock_out_unavailable_title'] ?? '')); $clockOutUnavailableMessage = trim((string) ($overtimeDetail['clock_out_unavailable_message'] ?? '')); @endphp

Overtime Confirmation

Please ensure your task details are updated. Remote and flexible work locations are supported.

Ready for the Extra Mile?
Don't forget to clock in to keep your overtime hours tracked and recorded accurately for compensation.

Duration

{{ $overtimeDetail['overtime_card_duration'] ?? '--:--' }}

Time

{{ $overtimeDetail['overtime_card_current_time'] ?? '--:--:--' }}

Start

{{ $overtimeDetail['overtime_card_start'] ?? '--:--' }}

End of Overtime

Ensure your overtime tasks and deliverables have been documented before ending your session.

Time to Recharge!
Thanks for the hard work! End your session to save your overtime hours.

Duration

{{ $overtimeDetail['overtime_card_duration'] ?? '--:--' }}

Time

{{ $overtimeDetail['overtime_card_current_time'] ?? '--:--:--' }}

Ended

{{ $overtimeDetail['overtime_card_ended'] ?? '--:--' }}
Overtime Clock Out

Activity {{ $overtimeReference ?? '#OVT' }}

    @forelse (($overtimeLifecycleTracker ?? collect()) as $lifecyclePhase)
  • {{ $lifecyclePhase['date_label'] ?? '-' }}
    {{ $lifecyclePhase['title'] ?? '-' }}
  • @foreach (($lifecyclePhase['items'] ?? collect()) as $lifecycleItem)
  • {{ $lifecycleItem['date_label'] ?? '-' }}
    {{ $lifecycleItem['step_order'] ?? '-' }}. {{ $lifecycleItem['title'] ?? '-' }}
    Datetime : {{ $lifecycleItem['datetime_label'] ?? '-' }}
    Actor : {{ $lifecycleItem['actor_label'] ?? '-' }}
    Status : {{ $lifecycleItem['status_label'] ?? '-' }}
  • @endforeach @empty
  • -
    No lifecycle logs recorded.
  • @endforelse

My Task Items

@if ((bool) ($overtimeDetail['can_create_task'] ?? false)) + Add Task @else @endif
Latest to do's @forelse (($overtimeTaskItems['pending'] ?? collect()) as $taskItem)
{{ $taskItem['date_label'] ?? '-' }}
@empty

No pending task items.

@endforelse
Latest finished to do's @forelse (($overtimeTaskItems['finished'] ?? collect()) as $taskItem)
{{ $taskItem['date_label'] ?? '-' }}
@empty

No finished task items.

@endforelse
@if (false)
Latest to do's
20 May 2026
Latest finished to do's
2023-12-26 07:15:00
2023-12-26 07:15:00
2023-12-26 07:15:00
2023-12-26 07:15:00
2023-12-26 07:15:00
@endif
@endsection @section('script') @php $dashboardJsPath = public_path('assets/js/dashboard.js'); $dashboardJsVersion = file_exists($dashboardJsPath) ? filemtime($dashboardJsPath) : time(); @endphp @endsection