@extends('layouts.user.presensi') @section('content')
avatar

{{ $karyawan->nama_lengkap }}

{{ $karyawan->nik }} | {{ $karyawan->jabatan }}
{{-- --}}
@if ($presensi != null) @php $foto = Storage::url('upload/presensi/' . $presensi->foto_in); @endphp @else @endif

Entry

{{ $presensi != null ? date('H:i', strtotime($presensi->jam_in)) : '' }}
@if ($presensi != null && $presensi->foto_out != null) @php $foto = Storage::url('upload/presensi/' . $presensi->foto_out); @endphp @else @endif

Exit

{{ $presensi != null && $presensi->jam_out != null ? date('H:i', strtotime($presensi->jam_out)) : '' }}
@if ($countpresensi->hadir != 0 || $countpresensi->hadir != null) {{ $countpresensi->hadir }} @endif
Present
@if ($countpresensi->izin != 0 || $countpresensi->izin != null) {{ $countpresensi->izin }} @endif
Permit
@if ($countpresensi->sakit != 0 || $countpresensi->sakit != null) {{ $countpresensi->sakit }} @endif
Sick
@if ($countpresensi->terlambat != 0 || $countpresensi->terlambat != null) {{ $countpresensi->terlambat }} @endif
Late
@foreach ($logpresensi as $d)

{{ $d->jadwal }}

{{ date('d M Y', strtotime($d->tanggal)) }}

{{ $d->jam_in }} @if($d->jam_out) - {{ $d->jam_out }} ({{ date('h:i', strtotime($d->jamkerja)) }}) @else @endif
@if ($d->flag === 1) {{ $d->ket_in }} @else {{ $d->ket_in }} @endif
@endforeach
    @foreach ($leaderboard as $d)
  • @if ($d->foto_in) @php $foro = Storage::url('storage/upload/presensi/' . $d->foto_in); @endphp avatar @else avatar @endif
    {{ $d->nama_lengkap }}
    {{ $d->nama_dept }}
    {{ date('H:i:s', strtotime($d->jam_in)) }}
  • @endforeach
@endsection