Membership Plans

@if(session('success'))
{{ session('success') }}
@endif @php $typeColors = [ 'individual' => 'bg-blue-100 text-blue-700', 'couple' => 'bg-pink-100 text-pink-700', 'family' => 'bg-purple-100 text-purple-700', 'corporate' => 'bg-teal-100 text-teal-700', 'student' => 'bg-green-100 text-green-700', 'trial' => 'bg-yellow-100 text-yellow-700', 'day_pass' => 'bg-orange-100 text-orange-700', ]; $typeBar = [ 'individual' => 'bg-blue-500', 'couple' => 'bg-pink-500', 'family' => 'bg-purple-500', 'corporate' => 'bg-teal-500', 'student' => 'bg-green-500', 'trial' => 'bg-yellow-500', 'day_pass' => 'bg-orange-500', ]; @endphp {{-- Tabs + New Plan button --}}
@if(!$archived) New Plan @endif
@if($plans->isEmpty())
@if($archived)

No archived plans yet.

@else

No active plans yet

Create a plan to start enrolling members

Create First Plan @endif
@else
@foreach($plans as $plan)

{{ $plan->name }}

@if($plan->description)

{{ $plan->description }}

@endif
{{ str_replace('_', ' ', $plan->type) }}

₹{{ number_format($plan->price, 0) }}

{{ $plan->duration_value }} {{ $plan->duration_unit }}{{ $plan->duration_value > 1 ? 's' : '' }}

@if($plan->memberships_count)

{{ $plan->memberships_count }}

sold

@endif
@if($plan->freeze_days_allowed) ❄ {{ $plan->freeze_days_allowed }}d freeze @endif @if($plan->pt_sessions_included) {{ $plan->pt_sessions_included }} PT sessions @endif @if($plan->unlimited_classes) Unlimited classes @endif @if($plan->multi_branch) Multi-branch @endif
@if($plan->addons?->count())
Add-ons: {{ $plan->addons->pluck('name')->join(', ') }}
@endif
@if(!$archived) Edit
@csrf @method('DELETE')
@else Archived
@csrf @method('PATCH')
@endif
@endforeach @if(!$archived)
Add Plan
@endif
{{ $plans->withQueryString()->links() }}
@endif