{{-- Which BMart shops are paying, for what, and in what state. The lifecycle buttons are not here. Activating, suspending, cancelling and invoicing a subscription are the ordinary BCP operations on the ordinary subscription screen, already written and already audited; each row links through to it. The one thing this screen can change is the link between a subscription and the BMart shop it pays for, which exists nowhere else. --}}
@if ($unlinked > 0)

{{ $unlinked }} live {{ Str::plural('subscription', $unlinked) }} not linked to a shop

A BMart subscription does nothing until it is linked: the entitlement endpoint finds a shop's subscription by that link and nothing else, so an unlinked one is a merchant paying for a shop that is still being told it has no subscription.

@endif
@forelse ($subscriptions as $subscription) @php $value = $subscription->status instanceof \BackedEnum ? $subscription->status->value : (string) $subscription->status; $badge = match ($value) { 'active' => 'bg-emerald-50 text-emerald-700 border-emerald-200', 'trialing' => 'bg-sky-50 text-sky-700 border-sky-200', 'past_due', 'grace' => 'bg-amber-50 text-amber-700 border-amber-200', 'suspended' => 'bg-rose-50 text-rose-700 border-rose-200', default => 'bg-slate-800 text-slate-400 border-slate-700', }; @endphp @empty @endforelse
Account & plan Status Trial ends Renews BMart shop
{{ $subscription->tenant?->name ?? 'No account' }}

{{ $subscription->plan?->name ?? 'Plan removed' }} · #{{ $subscription->id }}

{{ str_replace('_', ' ', $value) }} {{ $subscription->trial_ends_at?->format('M d, Y') ?? '—' }} {{ $subscription->current_period_ends_at?->format('M d, Y') ?? '—' }}
@csrf

Blank unlinks.

No BMart subscriptions{{ $search || $status ? ' match that filter' : ' yet' }}

A subscription appears here once it is created on a plan under the BMart product.

@if ($subscriptions->hasPages())
{{ $subscriptions->links() }}
@endif