@extends('layouts.app') @section('title', 'Users') @section('content')
@if(auth()->user()->isSuperAdmin())@endif @foreach($users as $user) @if(auth()->user()->isSuperAdmin()) @endif @endforeach
NameEmailRoleClientProjectsStatusCreatedAction
{{ $user->name }} {{ $user->email }} {{ $user->role->name ?? '-' }} @if($user->clients->isNotEmpty()) {{ $user->clients->pluck('company_name')->join(', ') }} @else {{ $user->client->company_name ?? '—' }} @endif {{ $user->projects->count() }} @if(auth()->user()->isSuperAdmin() && $user->id !== 1)
@csrf
@else {!! status_badge($user->status) !!} @endif
{{ format_date($user->created_at, 'd M Y') }}
@include('admin.partials.list-pagination', ['paginator' => $users, 'perPage' => $perPage, 'perPageOptions' => $perPageOptions])
@endsection