@extends('layouts.admin') @section('title', 'Users List') @section('content')

User Management

{{-- Permission Check for Creating Users --}} @can('users.create') Add New User @endcan
All Users
{{-- Permission Check for Viewing (Search is part of View) --}} @can('users.view')
@if(request('search')) @endif
@endcan
@forelse($users as $user) @empty @endforelse
User Contact Info Roles Joined Date Actions
{{ $user->name }}
{{ $user->email }}
@if($user->mobile)
{{ $user->mobile }}
@endif
@foreach($user->roles as $role) {{ $role->name }} @endforeach {{ $user->created_at->format('M d, Y') }}
{{-- Permission Check for Updating Users --}} @can('users.edit') @endcan {{-- Permission Check for Deleting Users --}} @can('users.delete')
@csrf @method('DELETE')
@endcan

No users found matching your criteria.

@if($users instanceof \Illuminate\Pagination\LengthAwarePaginator) @endif
@endsection