Organizations

All gyms on the platform

@php $planColors = ['trial'=>'bg-yellow-100 text-yellow-700','starter'=>'bg-blue-100 text-blue-700','pro'=>'bg-purple-100 text-purple-700','enterprise'=>'bg-emerald-100 text-emerald-700']; $statusColors = ['trial'=>'bg-yellow-100 text-yellow-700','active'=>'bg-green-100 text-green-700','suspended'=>'bg-red-100 text-red-600','cancelled'=>'bg-gray-100 text-gray-500']; @endphp
{{-- KPI cards --}} {{-- Filters --}}
Clear {{-- Table --}}
@forelse($orgs['data'] ?? [] as $org) @empty @endforelse
Gym Subdomain Plan Status Members Users Trial Ends Joined

{{ $org['name'] }}

{{ $org['slug'] }}

@if($org['subdomain'] ?? null) {{ $org['subdomain'] }}.{{ $centralDomain }} @else @endif {{ $org['plan'] ?? '—' }} {{ $org['status'] ?? '—' }} {{ $org['members_count'] ?? 0 }} {{ $org['users_count'] ?? 0 }} {{ $org['trial_ends_at'] ? \Carbon\Carbon::parse($org['trial_ends_at'])->format('d M Y') : '—' }} {{ \Carbon\Carbon::parse($org['created_at'])->format('d M Y') }}
View
@csrf
No organizations found.
{{-- Pagination --}} @if(!empty($orgs['links']))
@foreach($orgs['links'] as $link) @if($link['url']) {!! $link['label'] !!} @else {!! $link['label'] !!} @endif @endforeach
@endif
{{-- Add Organization Modal --}} {{-- Manage Modal --}}

@csrf @method('PATCH')
@foreach(['trial','active','suspended','cancelled'] as $s)
@csrf @method('PATCH')
@endforeach

Current trial ends:

@csrf days
@if($errors->any()) @endif