@extends('layouts.user_type.auth') @section('pageActions') @endsection @section('content')
@include('components.alert')
All users
{{ $users->total() }} {{ \Illuminate\Support\Str::plural('user', $users->total()) }}
@forelse($users as $index => $user) @php $uWords = preg_split('/\s+/', trim($user->name)); $uInitials = strtoupper(substr($uWords[0] ?? '', 0, 1) . substr($uWords[1] ?? '', 0, 1)); $uTone = $user->status === 'active' ? 'z-badge--success' : ($user->status === 'deleted' ? 'z-badge--danger' : ''); @endphp @empty @endforelse
# Name User type Status
{{ str_pad($users->firstItem()+$index,2,'0',STR_PAD_LEFT) }}
{{ $uInitials }} {{ $user->name }} {{ $user->email }}
{{ ucwords(str_replace('_', ' ', $user->user_type)) }} {{ ucfirst($user->status) }}
@if($user->status !== 'deleted' && $user->user_type !== 'super_admin')
@csrf
@endif
No users found
Try a different search or status filter, or add a new user.
@include('components.pagination', ['paginator' => $users])
@endsection