Dashboard
@if ($isSecurity)
@else
{{--
--}}
@endif
{{ $this->totalEmployee }}
Total Employee
{{ data_get($this->stats, 'approved', 0) }}
Approved Visitor{{ data_get($this->stats, 'rejected', 0) }}
Rejected Visitor40
Visitor Today
$2,400
Earnings
{{ $visitors->total() }} visitor applications require your approval !
|
Site Name
|
Type
|
Vehicle Registration
|
Visit Purpose
|
Visitor Name
|
Visit Date
|
Approval Status
|
{{--
Entry Status
| --}}
{{--
Entry Date
| --}}
{{--
Exit Date
| --}}
Action
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ data_get($visitor, 'site.site_name') ?? '-' }} | {{ data_get($visitor, 'vehicle_type') }} | {{ data_get($visitor, 'vehicle_no') }} | {{ data_get($visitor, 'visit_purpose') }} | {{ data_get($visitor, 'name') }} | {{ \Carbon\Carbon::parse(data_get($visitor, 'visit_start_date'))->format('d/m/Y') }} | @php $status = data_get($visitor, 'approval_status'); $badgeClass = match ($status) { 'approved' => 'bg-success', 'rejected' => 'bg-danger', 'pending' => 'bg-warning ', default => 'bg-secondary', }; @endphp {{ ucfirst($status) }} | {{-- Approve Reject --}} | ||||
| No records found | |||||||||||
Showing {{ $visitors->firstItem() ?? 0 }}–{{ $visitors->lastItem() ?? 0 }}
of
{{ $visitors->total() }}
{{ $visitors->onEachSide(1)->links('pagination::bootstrap-5') }}