@foreach($available_columns as $key => $label) @endforeach
@foreach($available_columns as $key => $label) @if($columns[$key]) @if($key !== 'is_active') @else @endif @endif @endforeach @foreach($users as $user) @if($columns['full_name']) @endif @endforeach
{{ $label }}
@if($sortField === $key) @if($sortDirection === 'asc') ↑ @else ↓ @endif @endif
Estado
Acciones
@if($user->profile_photo_path)
<<<<<<< HEAD >>>>>> f97a7a84985ea300216ba3ea2ab4c31306e1659a alt="{{ $user->full_name }}" class="w-8 h-8 rounded-full object-cover transition-transform group-hover:scale-110">
@else
@endif {{ $user->full_name }} @if(!$user->is_active) (Inactivo) @endif
@if($columns['username']) {{ $user->username }} @else N/A @endif @if($columns['email'])
{{ $user->email }}
@else N/A @endif
@if($columns['phone'])
{{ $user->phone ?? 'N/A' }}
@else N/A @endif
@if($columns['access_start']) {{ $user->access_start?->format('d/m/Y') }} @else N/A @endif @if($columns['created_at']) {{ $user->created_at->format('d/m/Y H:i') }} @else N/A @endif @if($columns['is_active']) {{ $user->is_active ? 'Activo' : 'Inactivo' }} @else N/A @endif
{{ $users->links() }}