{{ __('locale.Billing_Management') }}
{{ __('locale.Current_Period') }}
{{ $currentMonthName ?? date('F') }} {{ $currentYear ?? date('Y') }}
{{ __('locale.Total_Revenue_YTD') }}
${{ number_format($monthlyRevenue->sum('revenue'), 2) }}
{{ __('locale.Total_API_Calls_YTD') }}
{{ number_format($monthlyRevenue->sum('calls')) }}
{{ __('locale.Pending_Invoices') }}
{{ $recentInvoices->where('status', 'pending')->count() }}
{{ __('locale.Monthly_Revenue') }} {{ $currentYear }}
{{ __('locale.Top_Partners') }} - {{ date('F', mktime(0, 0, 0, $currentMonth, 1)) }}
-
@foreach($topPartners as $partner)
- {{ $partner->partner->name ?? 'N/A' }} {{ number_format($partner->total_billable_calls) }} {{ __('locale.Calls') }} @endforeach @if($topPartners->isEmpty())
- {{ __('locale.No_Data_Available') }} @endif
{{ __('locale.Recent_Invoices') }}
| {{ __('locale.Invoice_Number') }} | {{ __('locale.Partner') }} | {{ __('locale.Period') }} | {{ __('locale.Calls') }} | {{ __('locale.Amount') }} | {{ __('locale.Status') }} | {{ __('locale.Actions') }} |
|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->partner->name ?? 'N/A' }} | {{ date('F Y', mktime(0, 0, 0, $invoice->month, 1, $invoice->year)) }} | {{ number_format($invoice->total_billable_calls) }} | {{ $invoice->total_cost_formatted }} | @if($invoice->status == 'paid') {{ __('locale.Paid_Status') }} @elseif($invoice->status == 'pending') {{ __('locale.Pending_Status') }} @else {{ ucfirst($invoice->status) }} @endif | {{ __('locale.View') }} |