@extends('layouts.app') @section('titlepage', 'Lembur') @section('content') @section('navigasi') Lembur @endsection
@forelse ($lembur as $d) @php $start = strtotime($d->lembur_mulai); $end = strtotime($d->lembur_selesai); $diff = $end - $start; $hours = floor($diff / 3600); $minutes = floor(($diff % 3600) / 60); $duration = $hours . "j " . ($minutes > 0 ? $minutes . "m" : ""); /* Realisasi Duration */ $real_duration = "-"; if($d->lembur_in && $d->lembur_out) { $real_duration = ROUND(hitungJam($d->lembur_in, $d->lembur_out), 2) . "j"; } @endphp
@php $path = Storage::url('karyawan/'.$d->foto); @endphp @if (!empty($d->foto) && Storage::disk('public')->exists('/karyawan/' . $d->foto)) Avatar @else No Image @endif
{{ $d->nama_karyawan }} ({{ $d->nik_show ?? $d->nik }})
{{ $d->nama_jabatan }} {{ $d->nama_dept }} {{ $d->nama_cabang }}
{{ DateToIndo($d->tanggal) }}
{{ date('H:i', strtotime($d->lembur_mulai)) }} - {{ date('H:i', strtotime($d->lembur_selesai)) }} {{ $duration }}
@if($d->lembur_in && $d->lembur_out)
Aktual: {{ $real_duration }}
@endif
@if ($d->status == 0) Pending @elseif ($d->status == 1) Disetujui @elseif ($d->status == 2) Ditolak @endif
@can('lembur.approve') @if ($d->status == 0) @elseif($d->status == 1 || $d->status == 2)
@csrf @method('DELETE')
@endif @endcan @can('lembur.edit') @endcan @can('lembur.index') @endcan @can('lembur.delete') @if ($d->status == 0)
@csrf @method('DELETE')
@endif @endcan
@empty

Belum ada data

Data lembur belum tersedia untuk periode atau filter yang dipilih.

@endforelse
{{ $lembur->links() }}
@endsection @push('myscript') @endpush