@extends('central.super.layout') @php $displayName = $tenant->company_name ?? ($tenant->domains->first()->domain ?? $tenant->id); @endphp @section('title', __('central.UsersFor', ['tenant' => $displayName])) @section('content')
{{ __('central.ManageUsersForTenant', ['tenant' => $displayName]) }}
{{ $error }}
| # | {{ __('central.UserCol') }} | {{ __('central.EmailCol') }} | {{ __('central.Phone') }} | {{ __('central.Role') }} | {{ __('central.StatusCol') }} | {{ __('central.Actions') }} |
|---|---|---|---|---|---|---|
| {{ $user->id }} |
@php
$avatarColors = ['#6366f1','#3b82f6','#10b981','#f59e0b','#f43f5e'];
$avatarGrads = ['#818cf8','#60a5fa','#34d399','#fbbf24','#fb7185'];
@endphp
{{ strtoupper(mb_substr($user->firstname, 0, 1)) }}{{ strtoupper(mb_substr($user->lastname, 0, 1)) }}
{{ $user->firstname }} {{ $user->lastname }}
@if((int) $user->id === 1)
{{ __('central.Owner') }}
@endif
{{ $user->username }}
|
{{ $user->email }} | {{ $user->phone ?: '—' }} | @php $role = $user->roles->first(); @endphp @if($role) {{ $role->name }} @else — @endif | @if($user->statut) {{ __('central.Active') }} @else {{ __('central.Blocked') }} @endif | @if($user->statut) @else @endif |
|
{{ __('central.NoUsersFound') }} |
||||||