@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('director_attendance.layout.navbar') @php $directorOvertimeTablePageSize = 5; $pendingTableRows = $pendingRows ?? collect(); $approvedTableRows = $approvedRows ?? collect(); $selectedCardMonth = $selectedCardMonth ?? ($selectedMonth ?? now('Asia/Jakarta')->month); $selectedCardYear = $selectedCardYear ?? ($selectedYear ?? now('Asia/Jakarta')->year); $selectedPendingMonth = $selectedPendingMonth ?? ($selectedMonth ?? now('Asia/Jakarta')->month); $selectedPendingYear = $selectedPendingYear ?? ($selectedYear ?? now('Asia/Jakarta')->year); $selectedApprovedMonth = $selectedApprovedMonth ?? ($selectedMonth ?? now('Asia/Jakarta')->month); $selectedApprovedYear = $selectedApprovedYear ?? ($selectedYear ?? now('Asia/Jakarta')->year); $pendingTablePageCount = max(1, (int) ceil($pendingTableRows->count() / $directorOvertimeTablePageSize)); $approvedTablePageCount = max(1, (int) ceil($approvedTableRows->count() / $directorOvertimeTablePageSize)); @endphp
Overtime
@foreach (($overtimeMetricCards ?? []) as $summaryCard)
{{ $summaryCard['label'] ?? '-' }}
{{ $summaryCard['value'] ?? '-' }}
@endforeach

Pending

@forelse ($pendingTableRows as $row) $loop->iteration > $directorOvertimeTablePageSize])> @empty @endforelse
No Datetime Name SPV Status Action
{{ $loop->iteration }} {{ $row['datetime'] }} {{ $row['name'] }} {{ $row['supervisor'] }} {{ $row['status'] ?? '-' }}
No pending overtime data available for this period.

Status : Approved

@forelse ($approvedTableRows as $row) $loop->iteration > $directorOvertimeTablePageSize])> @empty @endforelse
No Datetime Name Status Task Payout
{{ $loop->iteration }} {{ $row['datetime'] }} {{ $row['name'] }} {{ $row['status'] ?? '-' }} {{ $row['task'] }} {{ $row['payout'] }}
No approved overtime data available for this period.
@forelse (($overtimeCards ?? collect()) as $overtimeCard)
{{ \Illuminate\Support\Str::substr($overtimeCard['employee_name'] ?? 'S', 0, 1) }}
{{ $overtimeCard['record_number'] }}
{{ $overtimeCard['employee_name'] }}

{{ $overtimeCard['instruction'] }}

Date :
{{ $overtimeCard['date_label'] }}
Time :
@foreach (($overtimeCard['time_lines'] ?? []) as $timeLine) $timeLine['strike'] ?? false])>{{ $timeLine['label'] ?? '-' }}
@endforeach
PIC / Supervisor :
{{ $overtimeCard['supervisor_name'] }}
@empty
No director approval overtime cards available for this period.
@endforelse

Evelyn Hope

IT and Publication

OVT This Week
2 hours
This Month
10 hours
This Year
31 hours
Paid Out!
10 hours
Rp. 300.000
Compensatory Time
8 hours

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod.

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod.
@endsection @section('script') @php $dashboardJsPath = public_path('assets/js/dashboard.js'); $dashboardJsVersion = file_exists($dashboardJsPath) ? filemtime($dashboardJsPath) : time(); @endphp @endsection