@extends('layouts.home') @section('content')
@include('partials.attendance-badges')
@include('partials.alerts')

{{ $attendance->title }}

{{ $attendance->description }}

Masuk : {{ substr($attendance->data->start_time, 0 , -3) }} - {{ substr($attendance->data->batas_start_time,0,-3 )}} Pulang : {{ substr($attendance->data->end_time, 0 , -3) }} - {{ substr($attendance->data->batas_end_time,0,-3 )}}
@if (!$attendance->data->is_using_qrcode) @else @include('home.partials.qrcode-presence') @endif
Histori 30 Hari Terakhir
@foreach ($priodDate as $date) {{-- not presence / tidak hadir --}} @php $histo = $history->where('presence_date', $date)->first(); @endphp @if (!$histo) @else @endif @endforeach
# Tanggal Jam Masuk Jam Pulang Status
{{ $loop->iteration }}{{ $date }} @if($date == now()->toDateString())
Belum Hadir
@else
Tidak Hadir
@endif
{{ $histo->presence_date }} {{ $histo->presence_enter_time }} @if($histo->presence_out_time) {{ $histo->presence_out_time }} @else Belum Absensi Pulang @endif @if ($histo->is_permission)
Izin
@else
Hadir
@endif
@endsection