@extends('layout.main') @section('content')

{{ __('Plan & Usage') }}

{{ __('Your workspace subscription, account limits and recent billing records.') }}

{{ __('Workspace support') }}

{{ $package?->name ?? __('Package Unavailable') }}

{{ $tenant->id }} · {{ __($state) }} · {{ $tenant->subscription_type === 'yearly' ? __('Yearly') : __('Monthly') }}

{{ __('Access Until') }}: {{ $expiry ? $expiry->format(config('app.date_format')) : __('Not Set') }}

@if($expiry && $expiry->isFuture() && $expiry->lte(now()->addDays(7)))

{{ __('Your subscription expires soon. Renew before the access end date.') }}

@endif @if($package && !$package->is_free_trial)

{{ __('Current Catalog Price') }}: {{ $catalogCurrency }} {{ number_format((float)($tenant->subscription_type === 'yearly' ? $package->yearly_fee : $package->monthly_fee),2) }} · {{ __('The checkout shows the final price and currency before payment.') }}

@endif

{{ __('Renewal and plan changes take effect after payment is confirmed. Pending or manual-review payments do not extend access yet.') }}

{{ __('Renew / Change Plan') }}
@foreach(['users'=>'User Accounts','employees'=>'Employees'] as $table=>$label)@php($row=$usage[$table])

{{ __($label) }}

{{ $row['used'] }} / {{ $row['limit'] === null ? __('Unknown') : ($row['limit'] === 0 ? __('Unlimited') : $row['limit']) }}

@if($row['percentage'] !== null)

{{ __('Remaining Capacity') }}: {{ $row['remaining'] }}

@if($row['used'] >= $row['limit'])

{{ __('This limit is reached. Change your plan before adding more records.') }}

@endif @endif

{{ __('Counts include inactive records and match the limits checked when creating records.') }}

@endforeach

{{ __('Company Setup Progress') }}

    @forelse($setup as $item)
  • {{ $item['company'] }}: {{ $item['complete'] }} / {{ $item['total'] }} {{ __('Available Steps Ready') }}
  • @empty
  • {{ __('Create your first company to begin setup.') }}
  • @endforelse
{{ __('Open Getting Started') }}

{{ __('Included Modules') }}

    @forelse($modules as $module)
  • {{ __($module) }}
  • @empty
  • {{ __('Ask your provider to review the modules included in this package.') }}
  • @endforelse

{{ __('Recent Subscription Payments') }}

@forelse($payments as $payment)@empty@endforelse
{{ __('Reference') }}{{ __('Date') }}{{ __('Amount') }}{{ __('Method') }}{{ __('Billing') }}{{ __('Status') }}{{ __('Action') }}
#{{ $payment->id }}{{ $payment->created_at->format(config('app.date_format')) }}{{ $currencies[$payment->id] ?? '—' }} {{ number_format((float)$payment->amount,2) }}{{ $payment->payment_method }}{{ $payment->subscription_type === 'yearly' ? __('Yearly') : __('Monthly') }}{{ __(ucfirst($payment->status)) }}@if($payment->status === 'paid'){{ __('Print Payment Record') }}@endif
{{ __('No subscription payments recorded yet.') }}

{{ __('A dash means the original payment has no saved currency. Ask your provider for its receipt details.') }}

{{ __('Recent Renewal Attempts') }}

@forelse($checkouts as $checkout)@empty@endforelse
{{ __('Reference') }}{{ __('Amount') }}{{ __('Status') }}{{ __('Date') }}
{{ $checkout->id }}{{ $checkout->currency }} {{ number_format((float)$checkout->amount,2) }}{{ __(['manual_pending'=>'Awaiting Manual Review','processing'=>'Processing','paid'=>'Payment Verified','complete'=>'Complete','pending'=>'Pending','failed'=>'Failed'][$checkout->status] ?? ucfirst($checkout->status)) }}{{ $checkout->created_at->format(config('app.date_format')) }}
{{ __('No linked renewal attempts recorded yet.') }}
@endsection