@extends('central.super.layout') @section('title', __('super.invoices.title')) @section('content') {{-- Filters --}}
{{ __('super.common.clear') }}

{{ __('super.invoices.invoices_label') }}

{{ $invoices->total() }} {{ Str::plural(__('super.invoices.invoice'), $invoices->total()) }}
@if($invoices->isNotEmpty())
@foreach($invoices as $inv) @endforeach
{{ __('super.invoices.invoice_number') }} {{ __('super.payments.tenant') }} {{ __('super.payments.plan') }} {{ __('super.common.amount') }} {{ __('super.payments.tax') }} {{ __('super.payments.total') }} {{ __('super.payments.gateway') }} {{ __('super.common.status') }} {{ __('super.payments.date') }} {{ __('super.common.actions') }}
{{ $inv->invoice_number }} {{ $inv->tenant->company_name ?? $inv->tenant_id }} {{ $inv->plan->name ?? '—' }} {{ $currencySymbol }}{{ number_format($inv->amount, 2) }} {{ $inv->tax > 0 ? $currencySymbol . number_format($inv->tax, 2) : '—' }} {{ $currencySymbol }}{{ number_format($inv->total, 2) }} {{ $inv->gateway_label }} @php $badgeClass = match($inv->status) { 'paid' => 'yes', 'failed' => 'no', 'refunded' => 'info', default => 'pending', }; @endphp {{ ucfirst($inv->status) }} {{ $inv->created_at->format('M d, Y') }}
{{ $invoices->links('vendor.pagination.bootstrap-5') }}
@else

{{ __('super.invoices.no_invoices') }}

{{ __('super.invoices.no_invoices_desc') }}

@endif
@endsection