@extends('layouts.app') @section('title', __('Subscriptions')) @section('content')

{{ __('Tenant subscriptions') }}

{{ __('All active and historical subscriptions.') }}

{{ __('New subscription') }}
@if(session('status'))
{{ session('status') }}
@endif
@forelse($subscriptions as $s) @empty @endforelse
{{ __('Tenant') }} {{ __('Plan') }} {{ __('State') }} {{ __('Cycle') }} {{ __('Price') }} {{ __('Period end') }}
{{ $s->tenant?->name ?? '—' }} {{ $s->plan?->displayName() ?? '—' }} v{{ $s->planVersion?->version }} @php $tone = match($s->state) { 'active','trialing' => 'bg-emerald-100 text-emerald-700', 'past_due','unpaid' => 'bg-amber-100 text-amber-700', 'paused' => 'bg-blue-100 text-blue-700', 'canceled' => 'bg-slate-100 text-slate-500', default => 'bg-slate-100 text-slate-600', }; @endphp {{ __($s->state) }} {{ __($s->cycle) }} {{ number_format($s->effectivePrice() ?? 0, 2) }} {{ $s->currency }} {{ $s->current_period_ends_at?->format('Y-m-d') ?? '—' }} {{ __('Manage') }}
{{ __('No subscriptions yet.') }}
{{ $subscriptions->links() }}
@endsection