@extends('layouts.dashboard') @section('title', 'Client Organizations') @section('content')

Client Organizations

Manage client organizations and their subscriptions

Add Client

{{ $stats['total'] }}

Total Clients

{{ $stats['active'] }}

Active

{{ $stats['trial'] }}

On Trial

{{ $stats['expired'] }}

Expired
@if(request()->hasAny(['search', 'subscription_type', 'status'])) @endif
@forelse($clients as $client) @empty @endforelse
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
@if($clients->hasPages()) @endif
@endsection @push('styles') @endpush