{{ $activeCategory?->name }} {{ $activePlanTitle }}
Valid until {{ $subscription->end_date?->format('d M Y') }}
@include('frontend.partials.head', ['title' => 'Fily | Subscription']) @include('frontend.dashboard.partials.styles') @php $planCollection = collect($plans ?? []); $activeSubscriptionCollection = collect($activeSubscriptions ?? []); $requestedPlanId = (int) request('plan'); $activeCategoryIds = $activeSubscriptionCollection ->map(fn ($subscription) => (int) ($subscription->category_id ?: $subscription->plan?->category_id)) ->filter() ->unique() ->values(); $activePlanIds = $activeSubscriptionCollection ->map(fn ($subscription) => (int) $subscription->plan_id) ->filter() ->unique() ->values(); $hasActivePlan = $activeSubscriptionCollection->isNotEmpty(); $visiblePlans = $planCollection->reject(fn ($plan) => $activeCategoryIds->contains((int) data_get($plan, 'category_id'))); $plansByCategory = $visiblePlans->groupBy(fn ($plan) => data_get($plan, 'category.name', 'Other plans')); @endphp
@include('frontend.partials.header')You can create listings under each active subscribed category.
Valid until {{ $subscription->end_date?->format('d M Y') }}
Your provider account is ready. Pick a plan from the available categories below when you want to promote listings and manage leads.
{{ $hasActivePlan ? 'Only categories without an active subscription are shown here.' : 'Compare active plans fetched from your admin subscription setup.' }}
{{ data_get($plan, 'category.description') ?: 'Provider subscription plan' }}
Active subscription plans will appear here after they are added from admin.