@php $statusFilter = $statusFilter ?? request('status', 'all'); $search = $search ?? request('search'); $tabs = [ 'all' => 'ALL', 'draft' => 'DRAFT', 'published' => 'PUBLISHED', 'unpublished' => 'UNPUBLISHED', 'archived' => 'ARCHIVED', ]; $filtered = $plans->when($statusFilter !== 'all', fn ($c) => $c->where('status', $statusFilter)) ->when($search, fn ($c) => $c->filter(fn ($p) => str_contains(strtolower($p->title), strtolower($search)))); @endphp

{{ $meta['title'] }}

{{ $meta['description'] }}

@foreach($tabs as $key => $label) {{ $label }} @endforeach
@if($filtered->isEmpty())

No results found

Try another filter or create a new pricing plan.

@else
@foreach($filtered as $plan) @endforeach
Title Type Price Status Actions

{{ $plan->title }}

@if($plan->description)

{{ $plan->description }}

@endif
{{ str_replace('_', ' ', $plan->plan_type) }} @if($plan->plan_type === 'free') Free @else {{ $plan->currency ?? 'INR' }} {{ number_format((float) ($plan->offer_price ?? $plan->regular_price ?? 0), 2) }} @endif {{ $plan->status }}
@if($plan->status !== 'published')
@csrf
@endif @if($plan->status === 'published')
@csrf
@endif @if($plan->status !== 'archived')
@csrf
@endif
@csrf
@csrf @method('DELETE')
@endif
{{-- Create drawer --}}

Add pricing plan

@csrf
@error('title')

{{ $message }}

@enderror
@error('plan_type')

{{ $message }}

@enderror
@error('regular_price')

{{ $message }}

@enderror
@error('offer_price')

{{ $message }}

@enderror
@foreach([ 'lifetime_access' => 'Lifetime access', 'is_public' => 'Public plan', 'coupon_eligible' => 'Coupon eligible', 'auto_renew' => 'Auto renew', 'show_countdown' => 'Show countdown', ] as $field => $label) @endforeach