@extends('layouts.tenant') @section('title', 'Subscription & Billing') @section('page-title', 'Subscription & Usage Limits') @section('content')
Current Subscription Plan
{{ strtoupper($subscription->status ?? 'Active') }}

{{ $subscription->plan->name ?? 'Trial Plan' }}

Price: {{ $subscription->plan->currency ?? 'GBP' }} {{ number_format($subscription->plan->price ?? 0, 2) }} / {{ $subscription->plan->billing_cycle ?? 'monthly' }}
@if($subscription && $subscription->trial_end)
Trial Period End Date: {{ $subscription->trial_end->format('d M Y') }}
@endif
Plan Usage & Limits
Staff Users {{ $usage['users']['current'] }} / {{ $usage['users']['max'] == 0 ? 'Unlimited' : $usage['users']['max'] }}
Products & Inventory {{ $usage['products']['current'] }} / {{ $usage['products']['max'] == 0 ? 'Unlimited' : $usage['products']['max'] }}
Customers {{ $usage['customers']['current'] }} / {{ $usage['customers']['max'] == 0 ? 'Unlimited' : $usage['customers']['max'] }}
Monthly Repairs (This Month) {{ $usage['repairs']['current'] }} / {{ $usage['repairs']['max'] == 0 ? 'Unlimited' : $usage['repairs']['max'] }}
Monthly Sales (This Month) {{ $usage['sales']['current'] }} / {{ $usage['sales']['max'] == 0 ? 'Unlimited' : $usage['sales']['max'] }}
Upgrade / Change Subscription Plan
@foreach($plans as $plan)
{{ $plan->name }}
{{ strtoupper($plan->billing_cycle) }}
{{ $plan->currency }} {{ number_format($plan->price, 2) }}
  • Up to {{ $plan->max_users == 0 ? 'Unlimited' : $plan->max_users }} Users
  • {{ $plan->max_products == 0 ? 'Unlimited' : number_format($plan->max_products) }} Products
  • {{ $plan->max_repairs_per_month == 0 ? 'Unlimited' : number_format($plan->max_repairs_per_month) }} Repairs/mo
  • {{ $plan->max_sales_per_month == 0 ? 'Unlimited' : number_format($plan->max_sales_per_month) }} Sales/mo
@csrf @if($subscription && $subscription->plan_id == $plan->id) @else @endif
@endforeach
SaaS Subscription Invoices
@forelse($invoices as $inv) @empty @endforelse
Invoice # Invoice Date Due Date Amount Status Action
{{ $inv->invoice_number }} {{ $inv->invoice_date->format('d M Y') }} {{ $inv->due_date->format('d M Y') }} {{ $inv->currency }} {{ number_format($inv->total, 2) }} {{ strtoupper($inv->status) }} View / Print
No billing invoices found.
@endsection