@extends('nexfloit.layouts.app') @section('title', 'All Business Users') @section('content')
@forelse($users as $user) @empty @endforelse
User Business Role Last Login Password Changed Status Actions
{{ strtoupper(substr($user->name, 0, 1)) }}
{{ $user->name }}
{{ $user->email }}
@if($user->tenant) {{ $user->tenant->business_name }}
{{ $user->store?->name ?? 'No Store' }} @else No Tenant @endif
{{ ucfirst($user->role) }} @if($user->last_login_at) {{ \Carbon\Carbon::parse($user->last_login_at)->diffForHumans() }}
{{ $user->last_login_ip }} @else Never @endif
@if($user->password_changed_at) {{ \Carbon\Carbon::parse($user->password_changed_at)->diffForHumans() }} @if($user->password_changed_by)
by {{ $user->password_changed_by == 'nexfloit_admin' ? 'Nexfloit Admin' : 'User' }} @endif @else - @endif
@if($user->is_active) Active @else Inactive @endif
@csrf
@csrf

No users found

@if($users->hasPages()) @endif
@endsection