@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 --}}

Client Details

Manage portal users and invitations for this client.

{{-- Company Header Card --}} @include('companies.administrator._header', ['companyDetails' => $companyDetails]) {{-- Left Nav + Right Content --}}
{{-- Left Sidebar Navigation --}}
@include('companies.administrator._nav', ['activePage' => 'users', 'companyDetails' => $companyDetails])
{{-- Right Content --}}
Portal Users
Active users and pending invitations for this client.
@foreach ($companyUsers as $cu) @endforeach
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
{{-- Invite User Modal --}} @endsection @section('page-script') @endsection