@extends('layouts/layoutMaster') @section('title', 'Manajemen Lembur - HRD') @section('vendor-style') @vite(['resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss', 'resources/assets/vendor/libs/animate-css/animate.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss', 'resources/assets/vendor/libs/flatpickr/flatpickr.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/cleavejs/cleave.js', 'resources/assets/vendor/libs/cleavejs/cleave-phone.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js', 'resources/assets/vendor/libs/flatpickr/flatpickr.js']) @endsection @section('page-script') @vite(['Modules/Hrd/resources/assets/js/overtime/overtime.js', 'Modules/Hrd/resources/assets/js/overtime/approve-overtime.js', 'Modules/Hrd/resources/assets/js/datatable-initialization.js']) @endsection @section('content')

Manajemen Lembur

Kelola dan pantau lembur karyawan

Lembur Pending

{{ $overtimeStats['pending'] ?? 0 }}

Menunggu persetujuan
Lembur Disetujui

{{ $overtimeStats['approved'] ?? 0 }}

Bulan ini
Lembur Ditolak

{{ $overtimeStats['rejected'] ?? 0 }}

Bulan ini
Total Jam Lembur

{{ $overtimeStats['total_hours_this_month'] ?? 0 }}

Jam bulan ini
@if(isset($overtimeStats))
Performa Lembur Bulan Ini
Rata-rata Jam per Lembur
{{ $overtimeStats['average_hours_per_day'] ?? 0 }} jam
Tingkat Persetujuan @php $totalRequests = ($overtimeStats['approved'] + $overtimeStats['rejected'] + $overtimeStats['pending']); $approvalRate = $totalRequests > 0 ? round(($overtimeStats['approved'] / $totalRequests) * 100, 1) : 0; @endphp
{{ $approvalRate }}%
Menunggu Approval
{{ $overtimeStats['pending'] }} pengajuan
Karyawan Terbanyak @if(isset($overtimeStats['most_overtime_employee']) && $overtimeStats['most_overtime_employee'])
{{ $overtimeStats['most_overtime_employee']['employee']->user->name ?? 'N/A' }}
{{ $overtimeStats['most_overtime_employee']['hours'] }} jam @else
Belum ada data
@endif
@endif
Filter Lembur
Data Lembur
@component('hrd::components.overtime.overtime-table', [ 'overtimes' => $overtimes, ]) @endcomponent
@component('hrd::components.overtime.overtime-offcanvas', [ 'title' => 'Tambah Lembur', 'actionUrl' => route('lembur.store'), 'employees' => $employees, ]) @endcomponent
@endsection