@props(['subscription']) {{-- The lifecycle buttons for one subscription. Lifted out of admin/subscriptions/show.blade.php unchanged — same conditions, same routes, same labels — so that the BMart subscription screen can offer the same actions without a second copy of them. One definition is the point: two copies is how a button quietly appears on one screen for a status the other screen refuses it for. There is no logic here beyond which buttons a status allows. Each form posts to the route it always posted to, those actions call the same model and SubscriptionManager methods they always called, and every one of them ends in redirect()->back() — which is why the same bar works from either screen and leaves the administrator where they were. Cancel is deliberately absent, as it has always been: the route exists but this bar has never offered it, and adding it here would be a new decision dressed up as a refactor. --}}
merge(['class' => 'flex items-center flex-wrap gap-2']) }}> @if($subscription->status === \App\Enums\SubscriptionStatus::TRIALING || $subscription->status === \App\Enums\SubscriptionStatus::PAST_DUE || $subscription->status === \App\Enums\SubscriptionStatus::GRACE)
@csrf
@endif @if($subscription->status === \App\Enums\SubscriptionStatus::ACTIVE)
@csrf
@endif @if($subscription->status === \App\Enums\SubscriptionStatus::PAST_DUE)
@csrf
@endif @if($subscription->status !== \App\Enums\SubscriptionStatus::SUSPENDED && $subscription->status !== \App\Enums\SubscriptionStatus::CANCELLED)
@csrf
@endif @if($subscription->status === \App\Enums\SubscriptionStatus::SUSPENDED)
@csrf
@endif
@csrf