@extends('layouts.app') @section('title', 'Users') @section('content')
| Name | Role | Client | Projects | Status | Created | @if(auth()->user()->isSuperAdmin())Action | @endif|
|---|---|---|---|---|---|---|---|
| {{ $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) @else {!! status_badge($user->status) !!} @endif | {{ format_date($user->created_at, 'd M Y') }} | @if(auth()->user()->isSuperAdmin())@endif |