@extends('layouts.app') @section('title', _lang('Invoices')) @php $statusBadge = [ 'pending' => 'bg-warning-transparent', 'partial' => 'bg-info-transparent', 'paid' => 'bg-success-transparent', 'overdue' => 'bg-danger-transparent', 'waived' => 'bg-secondary-transparent', 'cancelled' => 'bg-secondary-transparent', ]; @endphp @section('content')

{{ _lang('Invoice Management') }}

{{ _lang('All subscription invoices across organizations.') }}

{{ _lang('Dashboard') }}
@include('partials.alerts')
@forelse ($invoices as $inv) @empty @endforelse
{{ _lang('Invoice') }} {{ _lang('Organization') }} {{ _lang('Period') }} {{ _lang('Plan / Peak') }} {{ _lang('Total') }} {{ _lang('Paid') }} {{ _lang('Due') }} {{ _lang('Status') }}
{{ $inv->invoice_no }} {{ optional($inv->organization)->name ?? '—' }} {{ optional($inv->period_start)->format('d M') }} – {{ optional($inv->period_end)->format('d M Y') }} {{ $inv->plan_name }} / {{ $inv->peak_members }}@if($inv->over_limit) @endif ৳{{ number_format($inv->total_amount / 100) }} ৳{{ number_format($inv->paid_amount / 100) }} {{ optional($inv->due_on)->format('d M Y') }} {{ ucfirst($inv->status) }}
{{ _lang('No invoices found.') }}
@if ($invoices->hasPages()) @endif
@endsection