@extends('templates.app') @section('container')
@foreach ($data_lembur as $dl) @endforeach
No. Nama Pegawai Tanggal Jam Masuk Lokasi Masuk Foto Masuk Jam Pulang Lokasi Pulang Foto Pulang Total Lembur Notes User Approval Status
{{ $loop->iteration }} {{ $dl->User->name }} {{ $dl->tanggal }} @php $jam_masuk = explode(" ", $dl->jam_masuk); @endphp {{ $jam_masuk[1] }} @php $jarak_masuk = explode(".", $dl->jarak_masuk); @endphp lihat
{{ $jarak_masuk[0] }} Meter
@if ($dl->jam_keluar == null) Belum Pulang Lembur @else @php $jam_keluar = explode(" ", $dl->jam_keluar); @endphp {{ $jam_keluar[1] }} @endif @if($dl->jam_keluar == null) Belum Pulang Lembur @else @php $jarak_keluar = explode(".", $dl->jarak_keluar); @endphp lihat
{{ $jarak_keluar[0] }} Meter @endif
@if($dl->jam_keluar == null) Belum Pulang Lembur @else @endif @if($dl->jam_keluar == null) Belum Pulang Lembur @else @php $total_lembur = $dl->total_lembur; $jam = floor($total_lembur / (60 * 60)); $menit = $total_lembur - ( $jam * (60 * 60) ); $menit2 = floor( $menit / 60 ); @endphp {{ $jam." Jam ".$menit2." Menit" }} @endif {{ $dl->notes }} {{ $dl->approvedBy ? $dl->approvedBy->name : '' }} @if($dl->status == 'Pending') {{ $dl->status }} @elseif($dl->status == 'Rejected') {{ $dl->status }} @else {{ $dl->status }} @endif
{{ $data_lembur->links() }}




@endsection