← Organizations

{{ $org['name'] }}

{{ $org['slug'] }} @if($org['subdomain'] ?? null){{ $org['subdomain'] }}.{{ $centralDomain }}@endif
@csrf
@php $planColors = ['trial'=>'border-yellow-500/40 bg-yellow-500/10 text-yellow-400','starter'=>'border-blue-500/40 bg-blue-500/10 text-blue-400','pro'=>'border-violet-500/40 bg-violet-500/10 text-violet-400','enterprise'=>'border-orange-500/40 bg-orange-500/10 text-orange-400']; $statusColorMap = ['trial'=>'bg-yellow-500/20 text-yellow-400 hover:bg-yellow-500/30','active'=>'bg-green-500/20 text-green-400 hover:bg-green-500/30','suspended'=>'bg-red-500/20 text-red-400 hover:bg-red-500/30','cancelled'=>'bg-gray-500/20 text-gray-400 hover:bg-gray-500/30']; @endphp
{{-- Stats --}}

₹{{ number_format($stats['total_revenue'] ?? 0) }}

Total Revenue

{{ $stats['members'] ?? 0 }}

Total Members

{{ $stats['active_members'] ?? 0 }}

Active Members

{{-- Plan Management --}}

Subscription Plan

{{ $org['plan'] ?? '—' }} {{ $org['status'] ?? '—' }}
{{-- Change Plan --}}
@csrf @method('PATCH')
{{-- Change Status --}}
@foreach(['active','trial','suspended','cancelled'] as $s)
@csrf @method('PATCH')
@endforeach
{{-- Extend Trial --}}

Current trial ends: {{ $org['trial_ends_at'] ? \Carbon\Carbon::parse($org['trial_ends_at'])->format('d M Y') : 'not set' }}

@csrf days
{{-- Owner & Details --}}
@if($owner ?? null)

Owner Account

{{ strtoupper(substr($owner['name'] ?? '?', 0, 1)) }}

{{ $owner['name'] }}

{{ $owner['email'] }}

@if($owner['phone'] ?? null)

{{ $owner['phone'] }}

@endif

Set New Password

@csrf @method('PATCH') @error('password')

{{ $message }}

@enderror
@endif

Details

@foreach(['Email'=>$org['email']??null,'Phone'=>$org['phone']??null,'City'=>$org['city']??null,'State'=>$org['state']??null,'Currency'=>$org['currency']??null,'GSTIN'=>$org['gstin']??null] as $label => $val)
{{ $label }}
{{ $val ?: '—' }}
@endforeach
Joined
{{ $org['created_at'] ? \Carbon\Carbon::parse($org['created_at'])->format('d M Y') : '—' }}
{{-- Branches --}}

Branches ({{ count($org['branches'] ?? []) }})

@forelse($org['branches'] ?? [] as $branch) @empty @endforelse
Branch Code Capacity Status
{{ $branch['name'] }} {{ $branch['code'] }} {{ $branch['capacity'] ?? '∞' }} {{ ($branch['is_active'] ?? false) ? 'Active' : 'Inactive' }}
No branches.