@extends('layouts.billing') @section('title', __('billing.BillingHistory')) @section('content')
{{ __('billing.ViewSubscriptionAndHistory') }}
{{-- Current subscription --}} @if($subscription){{ ucfirst($subscription->billing_cycle) }} · ${{ number_format($subscription->amount, 2) }}/{{ $subscription->billing_cycle === 'yearly' ? __('billing.Year') : __('billing.Month') }}
{{ __('billing.NoActiveSubscription') }}
{{ __('billing.ChooseAPlan') }}| {{ __('billing.Invoice') }} | {{ __('billing.Plan') }} | {{ __('billing.Amount') }} | {{ __('billing.Gateway') }} | {{ __('billing.Status') }} | {{ __('billing.Date') }} | |
|---|---|---|---|---|---|---|
| {{ $payment->invoice_number ?? '—' }} | {{ $payment->plan->name ?? 'N/A' }} ({{ ucfirst($payment->billing_cycle) }}) | {{ $currencySymbol }}{{ number_format($payment->amount, 2) }} {{ $payment->currency }} | {{ $payment->gateway_label }} | @php $badgeClass = match($payment->status) { 'paid' => 'badge-paid', 'pending' => 'badge-pending', 'failed' => 'badge-failed', 'refunded' => 'badge-refunded', default => 'badge-pending', }; @endphp {{ ucfirst($payment->status) }} | {{ $payment->created_at->format('M d, Y') }} | @if($payment->status === 'failed') @endif |
{{ __('billing.NoPaymentRecords') }}