@extends('layouts/layoutMaster') @section('title', ($companyDetails['name'] ?? 'Client') . ' — Users') @section('vendor-style') @endsection @section('vendor-script') @endsection @section('page-style') @endsection @section('content') {{-- Page Header --}}
Manage portal users and invitations for this client.
| User | Role | Status | Last Updated | |
|---|---|---|---|---|
|
@php
$cuName = $cu->user_name ?? $cu->user_email;
$cuInitials = collect(explode(' ', $cuName))->map(fn($w) => mb_substr($w, 0, 1))->take(2)->implode('');
$stateIdx = abs(ord($cuName[0] ?? 'A') % 6);
$states = ['primary', 'success', 'danger', 'warning', 'info', 'secondary'];
@endphp
{{ strtoupper($cuInitials) }}
@if ($cu->user_name)
{{ $cu->user_name }}
{{ $cu->user_email }}
@else
{{ $cu->user_email }}
@endif
|
{{ $cu->role_name }} |
{{ $cu->status_name }}
@if (!$cu->config_status && $cu->updated_at)
Sent {{ date('d M Y', strtotime($cu->updated_at)) }}
@endif
|
{{ $cu->updated_at ? date('d M Y', strtotime($cu->updated_at)) : '—' }} | @if ($cu->config_status) @else @endif |