Subscription Management

Active Subscriptions
{{ $subscriptions->where('status', 'active')->count() ?? 0 }}
Pending Payment
{{ $subscriptions->where('status', 'pending_payment')->count() ?? 0 }}
Expired
{{ $subscriptions->where('status', 'expired')->count() ?? 0 }}
Family Plans
{{ $subscriptions->filter(function($sub) { return $sub->plan && $sub->plan->type === 'family'; })->count() ?? 0 }}

All Subscriptions

{{ $subscriptions->total() ?? 0 }} total subscriptions
{{ $item->user->name }}
{{ $item->user->email }}
{{ $item->plan->name ?? 'N/A' }}
@if($item->plan && $item->plan->type === 'family') Family Plan @endif
@if($item->family_role) {{ ucwords(str_replace('_', ' ', $item->family_role)) }} @else Individual @endif @php $statusColors = [ 'active' => 'success', 'cancelled' => 'error', 'expired' => 'warning', 'pending_payment' => 'info' ]; $color = $statusColors[$item->status] ?? 'neutral'; @endphp {{ ucfirst(str_replace('_', ' ', $item->status)) }} @if($item->starts_at)
{{ $item->starts_at->format('M j, Y') }}
{{ $item->starts_at->format('g:i A') }}
@else Not set @endif
@if($item->ends_at)
{{ $item->ends_at->format('M j, Y') }}
{{ $item->ends_at->format('g:i A') }}
@if($item->ends_at->isPast() && $item->status === 'active') Overdue @endif
@else Not set @endif
View Details View Customer