@include('admin.partials.header') @include('admin.partials.sidebar') @include('admin.partials.topbar') @include('admin.partials.management-styles') @php $activeSection = $activeSection ?? 'plans'; $selectedCategoryId = $selectedCategoryId ?? null; $selectedPlanId = $selectedPlanId ?? null; $openCreateModal = $openCreateModal ?? false; $selectedCategory = $selectedCategoryId ? $categories->firstWhere('id', $selectedCategoryId) : null; $selectedPlan = $selectedPlanId ? $plans->firstWhere('id', $selectedPlanId) : null; $visiblePlans = $selectedCategoryId ? $plans->where('category_id', $selectedCategoryId)->values() : $plans; $visiblePromoCodes = $selectedPlanId ? $promoCodes->where('plan_id', $selectedPlanId)->values() : $promoCodes; @endphp
Admin chevron_right Plan

@if ($activeSection === 'categories') Categories @elseif ($activeSection === 'promo-codes') Promo Codes @else Subscription Plans @endif

Create marketplace categories, subscription plans, and plan-specific promo codes.

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
Please review the form.
@endif

Marketplace Setup

Categories

Group provider subscriptions by marketplace vertical.

@forelse ($categories as $category) @empty @endforelse
CategoryStatusPlansAction

{{ $category->name }}

{{ $category->description ?: 'No description' }}

{{ ucfirst($category->status) }} {{ $category->subscription_plans_count }}
workspace_premiumPlans
No categories created yet.

Provider Billing

Subscription Plans

@if ($selectedCategory) Create or review plans under {{ $selectedCategory->name }}. @else Configure category pricing, duration, and GST treatment. @endif

@if ($selectedCategory) listAll Plans @endif
@forelse ($visiblePlans as $plan) @empty @endforelse
PlanCategoryDurationPriceGSTStatusAction

{{ $plan->title }}

{{ $plan->category->name }}

{{ $plan->duration_months }} {{ Str::plural('month', $plan->duration_months) }} ₹{{ number_format((float) $plan->price, 2) }} {{ number_format((float) $plan->gst_percentage, 2) }}% {{ $plan->gst_included ? 'Included' : 'Extra' }} {{ ucfirst($plan->status) }}
sellPromo
{{ $selectedCategory ? 'No subscription plans created for this category yet.' : 'No subscription plans created yet.' }}

Marketing Offers

Promo Codes

@if ($selectedPlan) Create discount codes for {{ $selectedPlan->category?->name }} - {{ $selectedPlan->title }}. @else Create discount codes, set redemption limits, and control validity periods. @endif

@forelse ($visiblePromoCodes as $promoCode) @empty @endforelse
CodePlanDiscountUsageValidityStatusAction

{{ $promoCode->code }}

{{ $promoCode->plan?->title ?? 'Plan missing' }}

{{ $promoCode->plan?->category?->name ?? 'No category' }} @if ($promoCode->plan) · {{ $promoCode->plan->duration_months }} {{ Str::plural('month', $promoCode->plan->duration_months) }} @endif

@if ($promoCode->discount_type === 'percentage') {{ number_format((float) $promoCode->discount_value, 2) }}% @else ₹{{ number_format((float) $promoCode->discount_value, 2) }} @endif {{ $promoCode->used_count }} / {{ $promoCode->max_usage ?? 'Unlimited' }}

{{ $promoCode->valid_from?->format('d M Y, h:i A') ?? 'Immediately' }}

to {{ $promoCode->valid_to?->format('d M Y, h:i A') ?? 'No expiry' }}

{{ ucfirst($promoCode->status) }}
No promo codes created yet.
@include('admin.partials.footer')