@extends('layouts.app') @section('title', 'Log Scan QR') @section('page-title', 'Log Scan QR') @section('breadcrumb', 'Beranda / Log Scan') @push('styles') @endpush @section('content') {{-- Stat Row --}}
Hadir Hari Ini
{{ $hadirHariIni }}
Belum Hadir
{{ $totalAnak - $hadirHariIni }}
Total Scan
{{ $totalScan }}
{{-- Log Table --}}
Log Scan QR Code {{-- Filter form --}}
Reset
@forelse($scanLogs as $i => $log) @empty @endforelse
No Anak Yatim Piatu Mushola Waktu Scan Keterangan
{{ $scanLogs->firstItem() + $i }}
{{ $log->anakYatim->nama }}
{{ $log->anakYatim->kode }}
{{ $log->anakYatim->mushola }}
{{ $log->scanned_at->format('H:i:s') }}
{{ $log->scanned_at->format('d M Y') }}
{{ $log->keterangan ?? '—' }}
Belum ada scan @if(request('tanggal')) pada tanggal {{ \Carbon\Carbon::parse(request('tanggal'))->format('d M Y') }} @endif
@if($scanLogs->hasPages())
{{ $scanLogs->withQueryString()->links('vendor.pagination.custom') }}
@endif
{{-- Belum hadir section --}} @if($belumHadir->count() > 0 && !request('tanggal'))
Belum Hadir Hari Ini {{ $belumHadir->count() }} anak
@foreach($belumHadir as $anak) @endforeach
Kode Nama Mushola
{{ $anak->kode }} {{ $anak->nama }} {{ $anak->mushola }}
@endif @endsection @push('scripts') @endpush