@extends('backend.partials.master') @section('title') {{ ___('label.my_invoices') }} @endsection @section('maincontent') @foreach($invoices as $i) @php $class = match(strtolower($i->status)) { 'paid' => 'success', 'overdue' => 'danger', 'refunded' => 'info', default => 'warning', }; $due = $i->dueAmount(); @endphp {{ $i->invoice_no }} {{ $i->issue_date?->translatedFormat('d M Y') }} {{ $i->due_date?->translatedFormat('d M Y') ?: '—' }} {{ currency_symbol() }}{{ number_format($i->amount, 2) }} {{ currency_symbol() }}{{ number_format($i->paid_amount, 2) }} {{ currency_symbol() }}{{ number_format(max(0, $due), 2) }} {{ admin_label(ucfirst($i->status)) }} {{ ___('label.pdf') }} @endforeach @endsection