@extends('admin.layout.app') @section('title', ucwords(str_replace('_', ' ', $selectedType)) . ' List') @push('styles') @endpush @section('content')
@if(session('success')) @endif
{{ ucwords(str_replace('_', ' ', $selectedType)) }} List
Add New User
@foreach($users as $index => $user) @endforeach
# Actions Profile Name Email Phone User Type Location DOB Last Login
{{ $index + 1 }} @if($user->profile_picture) profile @else N/A @endif {{ $user->first_name }} {{ $user->last_name }} {{ $user->email }} {{ $user->phone ?? '—' }} {{ ucfirst($user->user_type) }} @if($user->latestLocation) @php $location = $user->latestLocation; @endphp @if($location) {{ $location->address_line }}, {{ $location->postal_code }} {{ $location->city }}, {{ $location->country }} @else N/A @endif @else N/A @endif {{ $user->date_of_birth }} {{ $user->last_login_at?->format('d M Y H:i') ?? 'Never' }}
@endsection @push('scripts') @endpush