|
{{ $data['title'] }}
Visitor & Staff Management System
|
|
Total Visits
{{ number_format($data['total_visits']) }}
|
@if(isset($data['unique_visitors']))
Unique Visitors
{{ number_format($data['unique_visitors']) }}
|
@endif
@if(isset($data['unique_staff_visited']))
Unique Staff
{{ number_format($data['unique_staff_visited']) }}
|
@endif
@if(isset($data['approved_visits']))
Approved
{{ number_format($data['approved_visits']) }}
|
@endif
@if(isset($data['pending_visits']))
Pending
{{ number_format($data['pending_visits']) }}
|
@endif
| Visitor Name | Contact / Org | Staff Visited | Location | Reason | Tag # | Status | Check-in | Check-out | Duration |
|---|---|---|---|---|---|---|---|---|---|
| {{ $visit['visitor_name'] }} |
{{ $visit['visitor_contact'] }}
@if($visit['organization'] && $visit['organization'] !== 'N/A')
{{ $visit['organization'] }} @endif |
{{ $visit['staff_visited'] }} | {{ $visit['location'] }} | {{ $visit['reason'] }} | {{ $visit['tag_number'] }} | {{ $visit['status'] }} | {{ $visit['checkin_time'] }} | {{ $visit['checkout_time'] }} | {{ $visit['duration'] }} |
| No visitor activity recorded for this period. | |||||||||
|
Total Check-ins
{{ number_format($data['total_checkins'] ?? 0) }}
|
Unique Staff
{{ number_format($data['unique_staff'] ?? 0) }}
|
Currently On-site
{{ number_format($data['currently_onsite'] ?? 0) }}
|
Average Duration
{{ $data['average_duration'] ?? 'N/A' }}
|
| Staff Name | Staff ID / Email | Location | Check-in | Check-out | Duration | Items Declared |
|---|---|---|---|---|---|---|
| {{ $checkin['staff_name'] }} | {{ $checkin['staff_id'] }} | {{ $checkin['location'] }} | {{ $checkin['checkin_at'] }} | {{ $checkin['checkout_at'] }} | {{ $checkin['duration'] }} | {{ $checkin['items'] }} |
| No staff check-ins found for this period. | ||||||
| Staff Name | Department | Visit Count | Latest Visit | |
|---|---|---|---|---|
| {{ $visit['staff']['name'] ?? 'N/A' }} | {{ $visit['staff']['email'] ?? 'N/A' }} | {{ $visit['staff']['department'] ?? 'N/A' }} | {{ $visit['visit_count'] }} | {{ $visit['latest_visit'] ?? 'N/A' }} |
| No visits recorded for this period. | ||||
| Location | Visit Count |
|---|---|
| {{ $visit['location']['name'] ?? 'N/A' }} | {{ $visit['visit_count'] }} |
| Hour | Visit Count |
|---|---|
| {{ str_pad($hourData['hour'], 2, '0', STR_PAD_LEFT) }}:00 | {{ $hourData['count'] }} |
|
Pending Approvals
{{ number_format($data['pending_approvals']) }}
|
Old Pending (>24h)
{{ number_format($data['old_pending'] ?? 0) }}
|
Missing Checkouts
{{ number_format($data['missing_checkouts'] ?? 0) }}
|