@php $cycleLabel = fn ($i) => match ($i) { 'monthly' => '/month', 'quarterly' => '/quarter', 'yearly' => '/year', 'lifetime' => 'one-time', default => '/'.$i, }; $fmtLimit = fn ($v) => is_null($v) ? 'Unlimited' : number_format($v); @endphp
{{-- breadcrumb --}} Package Settings @if ($plans->isEmpty())

No packages yet

Create your first pricing package to start offering subscriptions to your customers.

@else
@foreach ($plans as $plan) @php($nl = $plan->normalizedLimits()) @php($features = collect($plan->features ?? [])->filter(fn ($f) => trim((string) $f) !== '')->values()) @endforeach

Drag any package card to reorder how packages are displayed to customers.

@endif {{-- Create / edit modal --}} @if ($editingId !== null)

{{ $editingId ? 'Edit Package' : 'Create New Package' }}

Configure pricing, limits and the features shown to customers.

{{-- Product edition --}}
@foreach (['cloud' => ['cloud', 'Web Cloud', 'Runs fully on our servers'], 'desktop' => ['monitor', 'Desktop', "Runs on the customer's PC or VPS"]] as $key => [$ic, $label, $sub]) @endforeach
@error('product')

{{ $message }}

@enderror
{{-- Basics --}}
@error('name')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror
{{-- Pricing --}}
@error('price')

{{ $message }}

@enderror
@error('trial_days')

{{ $message }}

@enderror
{{-- Appearance --}}
@foreach (\App\Livewire\Admin\Plans\Index::COLOR_PRESETS as $c) @endforeach
@foreach (\App\Livewire\Admin\Plans\Index::ICON_PRESETS as $ic) @endforeach
{{-- Features --}}
@if (count($features))
    @foreach ($features as $i => $f)
  • {{ $f }}
  • @endforeach
@else

No custom features added — the card will list package limits automatically.

@endif
{{-- Limits --}}
Account limits (blank = unlimited)
@foreach (\App\Support\PlanLimits::PLATFORMS as $key) @endforeach
{{ $product === 'cloud' ? 'Web Cloud' : 'Desktop' }} limits (blank = unlimited)
@foreach (\App\Support\PlanLimits::quotaKeys($product) as $key) @endforeach
Feature flags
@foreach (\App\Support\PlanFeatures::FLAGS as $key => $label) @endforeach
{{-- Flags --}}
@endif