@extends('layouts.app') @section('title', 'Scan Absensi - PressGO') @section('content')

ABSENSI DIGITAL

{{ \Carbon\Carbon::now()->translatedFormat('l, d F Y') }}

{{ auth()->guard('participant')->user()->nama_lengkap }}
{{ auth()->guard('participant')->user()->nama_lengkap }}

{{ auth()->guard('participant')->user()->nim }}

{{ auth()->guard('participant')->user()->program_type }}
@php $todayAttendance = \App\Models\Attendance::where('participant_id', auth()->guard('participant')->id()) ->whereDate('date', \Carbon\Carbon::today()) ->first(); @endphp
@if($todayAttendance) @if($todayAttendance->check_out)
Absensi hari ini selesai
Check In: {{ $todayAttendance->check_in }} | Check Out: {{ $todayAttendance->check_out }}
@else
Sudah Check In
Waktu: {{ $todayAttendance->check_in }} | Status: @if($todayAttendance->status == 'present') Tepat Waktu @else Terlambat @endif
@endif @else
Belum ada absensi hari ini
@endif
@if(!$todayAttendance) @elseif(!$todayAttendance->check_out) @else @endif
Loading...

Memproses absensi...

{{ \App\Models\Attendance::where('participant_id', auth()->guard('participant')->id())->count() }}
Total
{{ \App\Models\Attendance::where('participant_id', auth()->guard('participant')->id())->where('status', 'present')->count() }}
Tepat Waktu
{{ \App\Models\Attendance::where('participant_id', auth()->guard('participant')->id())->where('status', 'late')->count() }}
Terlambat
@endsection @push('scripts') @endpush