@extends('layouts.dashboard') @section('title', 'Client Organizations') @section('content')
Manage client organizations and their subscriptions
| Organization | Subscription | Users / Admins | Status | Expires | Actions |
|---|---|---|---|---|---|
|
{{ strtoupper(substr($client->name, 0, 1)) }}
{{ $client->name }}
{{ $client->email }}
|
@php $badgeClass = match($client->subscription_type) { 'trial' => 'bg-warning', 'basic' => 'bg-info', 'premium' => 'bg-danger', 'enterprise' => 'bg-purple', default => 'bg-secondary' }; @endphp {{ ucfirst($client->subscription_type) }} | {{ $client->users_count ?? 0 }} / {{ $client->max_users }} {{ $client->client_admins_count ?? 0 }} / {{ $client->max_client_admins }} | @if(!$client->is_active) Inactive @elseif($client->isSubscriptionExpired()) Expired @elseif($client->isOnTrial()) Trial ({{ $client->getDaysRemaining() }}d) @else Active @endif | @php $effectiveEndDate = $client->isOnTrial() ? $client->trial_ends_at : $client->subscription_ends_at; @endphp @if($effectiveEndDate) {{ $effectiveEndDate->format('M d, Y') }} @else N/A @endif |
|
|
No clients found Add First Client |
|||||