@extends('layouts.app') @section('title', 'Detail Kehadiran') @section('content')
Admin

Detail Kehadiran

{{ $pusat->code }} - {{ $pusat->name }}

@foreach ([ ['label' => 'Staf', 'value' => $summary['total_staff'], 'tone' => 'primary'], ['label' => 'Hadir', 'value' => $summary['present'], 'tone' => 'success'], ['label' => 'Tidak hadir', 'value' => $summary['absent'], 'tone' => 'danger'], ['label' => 'Belum rekod', 'value' => $summary['not_recorded'], 'tone' => 'warning'], ] as $card)
{{ $card['label'] }}
{{ $card['value'] }}
@endforeach

Ringkasan Mengikut Jawatan

@foreach ($roleSummaries as $roleSummary)
{{ $roleSummary['role'] }}
Staf {{ $roleSummary['total_staff'] }} · Hadir {{ $roleSummary['present'] }} · Tidak hadir {{ $roleSummary['absent'] }} · Belum {{ $roleSummary['not_recorded'] }}
@endforeach
@forelse ($assignments as $assignment) @php($attendance = $assignment->attendance) @empty @endforelse
Staf Jawatan Saluran Status Masa Check-in Catatan Direkod Oleh
{{ $assignment->application?->name ?: $assignment->user?->name ?: 'Tanpa nama' }}
{{ $assignment->application?->ic_number ?: $assignment->user?->email ?: '-' }}
{{ $assignment->position?->code }} {{ $assignment->saluranMengundi?->number ?: '-' }} {{ str_replace('_', ' ', $attendance?->status ?? 'not_recorded') }} {{ $attendance?->check_in_time?->format('d/m/Y H:i') ?: '-' }} {{ $attendance?->note ?: '-' }} {{ $attendance?->recordedBy?->name ?: '-' }}
Tiada staf aktif.
@endsection