@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')
@include('partials.alerts')
| {{ _lang('Invoice') }} |
{{ _lang('Organization') }} |
{{ _lang('Period') }} |
{{ _lang('Plan / Peak') }} |
{{ _lang('Total') }} |
{{ _lang('Paid') }} |
{{ _lang('Due') }} |
{{ _lang('Status') }} |
|
@forelse ($invoices as $inv)
| {{ $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) }} |
|
@empty
| {{ _lang('No invoices found.') }} |
@endforelse
@if ($invoices->hasPages())
@endif
@endsection