{{-- Partner Billing Page — Plan Overview & Subscription Management Adapts to manual (plan info + limits) and Stripe (+ status + portal) modes. --}} @extends('partner.layouts.default') @section('page_title', trans('common.billing_my_plan') . config('default.page_title_delimiter') . config('default.app_name')) @section('content') @php $entitlements = app(\App\Services\EntitlementService::class); $currentPlanKey = $summary['plan']['key']; $status = $summary['status']; $isRestricted = $summary['is_restricted']; // Status display config $statusConfig = match($status) { 'active' => ['label' => trans('common.billing_status_active'), 'color' => 'emerald', 'icon' => 'check-circle'], 'trialing' => ['label' => trans('common.billing_status_trialing'), 'color' => 'blue', 'icon' => 'clock'], 'past_due' => ['label' => trans('common.billing_status_past_due'), 'color' => 'amber', 'icon' => 'alert-triangle'], 'cancelled' => ['label' => trans('common.billing_status_cancelled'), 'color' => 'red', 'icon' => 'x-circle'], 'incomplete' => ['label' => trans('common.billing_status_incomplete'), 'color' => 'amber', 'icon' => 'alert-circle'], 'suspended' => ['label' => trans('common.billing_status_suspended'), 'color' => 'red', 'icon' => 'ban'], 'legacy' => ['label' => trans('common.billing_status_legacy'), 'color' => 'secondary', 'icon' => 'shield'], default => ['label' => trans('common.billing_status_manual'), 'color' => 'secondary', 'icon' => 'wallet'], }; @endphp
{{ trans('common.billing_page_subtitle') }}
{{ trans('common.billing_status_trialing') }}
{{ trans('common.billing_trial_notice') }}
{{ $summary['plan']['description'] }}
@endif{{ trans('common.billing_limit_reached') }}
@endif{{ $planDesc }}
@endif {{-- Price — switches between monthly and yearly --}}{!! moneyStyled($priceMonthly, $planCurrency) !!}/{{ trans('common.month') }}
{{-- Yearly price --}} @if($priceYearly > 0){!! moneyStyled($yearlyPerMonth, $planCurrency) !!}/{{ trans('common.month') }}
{!! moneyStyled($priceYearly, $planCurrency) !!}/{{ trans('common.year') }} @if($yearlySavingsPercent > 0) {{ trans('common.billing_save_percent', ['percent' => $yearlySavingsPercent]) }} @endif
{{ trans('common.free') }}
@endif
{{ trans('common.billing_manual_mode') }}
{{ trans('common.billing_manual_description') }}