Client List

@can('manage-clients') Add Client @endcan
@if (session()->has('message'))

{{ session('message') }}

@endif
@forelse ($users as $user) @empty @endforelse
ID @if ($sortColumn === 'id') {{ $sortDirection === 'asc' ? '↑' : '↓' }} @endif Name @if ($sortColumn === 'name') {{ $sortDirection === 'asc' ? '↑' : '↓' }} @endif Email @if ($sortColumn === 'email') {{ $sortDirection === 'asc' ? '↑' : '↓' }} @endif Roles Status @if ($sortColumn === 'statut') {{ $sortDirection === 'asc' ? '↑' : '↓' }} @endif Actions
{{ $user->id }} {{ $user->name }} {{ $user->email }} @if ($user->is_internal)
Internal
@else
External
@endif
@if ($user->statut)
Blocked
@else
Active
@endif
@can('manage-clients') @if ($user->is_internal) @else @endif @endcan
No clients found.
{{ $users->firstItem() ?? 0 }} - {{ $users->lastItem() ?? 0 }} of {{ $users->total() ?? 0 }} clients
{{ $users->links() }}
@if ($showToggleModal)

{{ $toggleAction === 'activate' ? 'Activate Client' : 'Block Client' }}

Are you sure you want to {{ $toggleAction === 'activate' ? 'activate' : 'block' }} this client?

@endif @if ($showClientTypeModal)

{{ $toggleClientTypeAction === 'make_internal' ? 'Change to Internal Client' : 'Change to External Client' }}

Are you sure you want to change this client to {{ $toggleClientTypeAction === 'make_internal' ? 'internal' : 'external' }}? {{ $toggleClientTypeAction === 'make_internal' ? 'Internal clients benefit from preferential rates.' : '' }}

@endif @if ($showUserRolesModal)

Manage Roles for {{ $selectedUser->name }}

Select the roles to assign to this user.

{{ count($availableRoles) }} roles available
@foreach ($availableRoles as $role) @endforeach
@endif