@csrf
@forelse($agentsActifs as $user) @empty @endforelse
@php $currentSort = request('sort', 'name'); $currentDirection = request('direction', 'asc'); $nextDirection = ($currentSort === 'name' && $currentDirection === 'asc') ? 'desc' : 'asc'; @endphp Nom / Prénom @if($currentSort === 'name') @if($currentDirection === 'asc') @else @endif @else @endif @php $nextDirectionService = ($currentSort === 'service' && $currentDirection === 'asc') ? 'desc' : 'asc'; @endphp Service Actuel @if($currentSort === 'service') @if($currentDirection === 'asc') @else @endif @else @endif @php $nextDirectionRoles = ($currentSort === 'roles' && $currentDirection === 'asc') ? 'desc' : 'asc'; @endphp RÎles @if($currentSort === 'roles') @if($currentDirection === 'asc') @else @endif @else @endif Solde Recup. Actions
@if(!$user->isSuperAdmin()) @endif
{{ strtoupper($user->name) }} {{ $user->firstname }}
{{ $user->email }}
@if($user->profileAgent?->serviceActuel) {{ $user->profileAgent->serviceActuel->service->libelle_service }} @else Non affecté @endif
@if($user->profileAgent?->est_admin) Admin @endif @if($user->profileAgent?->est_rh) RH @endif @if($user->profileAgent?->est_chef_de_service) Chef @endif
@php $totalSolde = $user->profileAgent?->compteurs->sum('solde_restant') ?? 0; @endphp {{ \App\Helpers\TimeHelper::decimalToHours($totalSolde) }} đŸ‘ïž Dashboard ✏ GĂ©rer @if(!$user->isSuperAdmin()) @else ProtĂ©gĂ© @endif
Aucun agent actif trouvé.