@extends('layouts.app') @section('title', 'Manage User') @section('page-specific-style') @endsection @section('content')

Users

@can('Create user') Add User @endcan
@include('includes.alerts')
@forelse($users as $key => $user) @empty @endforelse
# Name Email Phone Status Last logged in Last logged in IP Address Action
@if($user->thumbnail) Thumbnail @else @endif
{{ $user->name }}

{{ $user->getRoleNames()->implode(', ') }}

{{ $user->email }} {{ $user->phone_number ?? 'N/A' }} {{ $user->status == 1 ? 'Active' : 'Inactive' }} {{ $user->last_login ? $user->last_login->format('d M, Y h:i A') : 'N/A' }} {{ $user->logged_in_ip_address ?? 'N/A' }} @can('Update user') @endcan @can('Delete user') @endcan @can('View users') @if($user->id != auth()->id()) @endif @endcan @can('Update user') @endcan
No user found at this moment.
@endsection @section('page-specific-script') @endsection