@php $p = auth()->user()->role_prefix; @endphp
@csrf @method('PUT')

Plan Settings

Modifying: {{ $plan->name }}

Discard
@if($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{-- ─── GENERAL ─── --}}

Basic Information

Status & Visibility

Plan is Active is_active ? 'checked' : '' }} class="w-5 h-5 accent-emerald-500 bg-black border-white/10 rounded-lg">
Highlight Plan highlight_plan ? 'checked' : '' }} class="w-5 h-5 accent-indigo-500 bg-black border-white/10 rounded-lg">
{{-- Feature Matrix (Specifications) --}} @if(!empty($globalFeatures))

Specifications Matrix

@foreach($globalFeatures as $gFeature) @endforeach
@endif {{-- Plan Features (Custom Lines) --}}

Additional Custom Features

* Use this for one-off features that aren't in the global list.

@php // Only show features in the dynamic list that AREN'T in globalFeatures $customFeatures = is_array($plan->features_list) ? array_values(array_diff($plan->features_list, $globalFeatures ?? [])) : []; @endphp
{{-- ─── PRICING ─── --}}

Billing Settings

$
{{-- ─── DOWNLOADS ─── --}}

Download Quotas

{{-- Redundant unlimited_downloads checkbox removed to avoid confusion --}}

Download Policies

Can Re-download can_redownload_files ? 'checked' : '' }} class="w-5 h-5 accent-indigo-500 bg-black border-white/10 rounded-lg">
Show History can_access_history ? 'checked' : '' }} class="w-5 h-5 accent-indigo-500 bg-black border-white/10 rounded-lg">
{{-- ─── ACCESS ─── --}}

Access Permissions

Premium Content can_access_premium ? 'checked' : '' }} class="w-5 h-5 accent-emerald-500 bg-black border-white/10 rounded-lg">
Subscriber-Only Items can_access_subscriber_only ? 'checked' : '' }} class="w-5 h-5 accent-indigo-500 bg-black border-white/10 rounded-lg">
@foreach ($categories as $cat) @php $checked = in_array($cat->id, $plan->allowed_categories ?? []); @endphp @endforeach

* Use CMD/Ctrl + Click to select multiple.

{{-- ─── MARKETING ─── --}}

Display Settings

Show on Pricing show_on_pricing ? 'checked' : '' }} class="w-5 h-5 accent-indigo-500 bg-black border-white/10 rounded-lg">
Show on Home show_on_home ? 'checked' : '' }} class="w-5 h-5 accent-indigo-500 bg-black border-white/10 rounded-lg">