{{-- BMart's plans, and what each one lets a shop do. Price, billing cycle and active state are ordinary plan fields and are edited on the ordinary plan screens — this links through to them. The one thing that is BMart's alone is the entitlement set, which is why that is the only editor here. --}}
@if (! $product)

BMart is not set up in BCP yet

No product exists with the slug {{ config('bmart.product_slug') }}, so no plan can be a BMart plan. Creating the first plan with php artisan bmart:plan creates the product too.

@endif

Plans

{{ $plans->count() }} {{ Str::plural('plan', $plans->count()) }} on the BMart product. A retired plan keeps serving the shops already on it.

All plans →
@forelse ($plans as $plan) @php $granted = is_array($plan->entitlements) ? $plan->entitlements : []; $features = is_array($granted['features'] ?? null) ? $granted['features'] : []; $limits = is_array($granted['limits'] ?? null) ? $granted['limits'] : []; $capped = count(array_filter($limits, fn ($v) => $v !== null)); @endphp @empty @endforelse
Plan Price Trial Entitles Shops Actions

{{ $plan->name }}

{{ $plan->slug }}

{{ $plan->currency }} {{ number_format((float) $plan->price, 2) }} / {{ $plan->billing_interval?->value ?? 'term' }} {{ $plan->trial_days > 0 ? $plan->trial_days.' days' : '—' }} {{ count($features) }} {{ Str::plural('feature', count($features)) }} · {{ $capped }} {{ Str::plural('limit', $capped) }} {{ $plan->subscriptions_count }} @if ($plan->trashed()) Retired @elseif (! $plan->is_active) Inactive @endif Entitlements

No BMart plans yet

Create one with php artisan bmart:plan <code> --name="…", then set what it entitles a shop to here.