@php $field = 'mt-1 block w-full rounded-lg border-slate-300 text-sm shadow-sm'; $label = 'block text-xs font-semibold text-slate-600'; $fmt = fn ($n) => number_format((int) $n, 0, ',', ' '); @endphp
← Retour à l'administration
@if ($errors->any())

{{ $errors->first() }}

@endif
@csrf
Créer le forfait
@forelse ($plans as $plan)
@csrf @method('PUT')

{{ $plan->name }} · {{ $fmt($plan->price) }} {{ $plan->currency === 'XOF' ? 'FCFA' : $plan->currency }} · {{ $plan->duration_days }} jour(s)

{{ $plan->is_active ? 'En vente' : 'Retiré de la vente' }}

{{ $plan->protocolLabel() }}@if ($plan->subscriptions()->exists()) · type verrouillé : des abonnements existent @endif

@unless ($plan->subscriptions()->exists())
@endunless
@if ($plan->subscriptions_count > 0) @else @endif
@if ($plan->subscriptions_count > 0){{ $plan->subscriptions_count }} abonnement(s) vendus : la durée ne change plus.@endif Enregistrer
@empty

Aucun forfait pour le moment : créez le premier ci-dessus.

@endforelse