{{-- Header --}}
@if($applogo && $applogo->logo_url) @php $logoPath = str_replace(url('/') . '/', '', $applogo->logo_url); @endphp @endif

Users Report

{{ $dateTitle }}

{{-- Stats — using table so PDF renders correctly --}}
Total Users{{ $stats['total'] }} Approved{{ $stats['approved'] }} Pending{{ $stats['pending'] }} Blocked{{ $stats['blocked'] }} Verified{{ $stats['verified'] }}
{{-- Info --}}
Generated: {{ $generatedAt }}     Type: Users List with Complete Details
{{-- Table --}} @if ($users->count() > 0) @foreach ($users as $user) @endforeach
ID Name Email / Phone Status Verified Joined Date
{{ $loop->iteration }} {{ $user->name }} {{ $user->email ?? $user->phone_no }} @php $badgeClass = match ($user->status) { 'Approve' => 'badge-success', 'Pending' => 'badge-warning', 'Block' => 'badge-danger', default => 'badge-warning', }; @endphp {{ $user->status }} @if ($user->email_verified_at || $user->phone_verified_at) Verified @else Not Verified @endif {{ $user->created_at->format('d M Y') }}
@else
No users found for the selected date range.
@endif {{-- Footer --}}