@extends("layouts.app") @section('title', 'Payment Invoice') @section("main")

Payment Invoices

@forelse ($invoices as $invoice) @empty @endforelse
Method Invoice ID Amount Status Date
{{ $invoice->payment_method }} {{ $invoice->invoice_id }} {{ $currency->icon }}{{ $invoice->amount * $currency->rate }} @php $statusClass = ""; switch($invoice->status) { case "Completed": $statusClass = "bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300"; break; case "Pending": $statusClass = "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-300"; break; case "Failed": $statusClass = "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300"; break; default: $statusClass = "bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"; break; } @endphp {{ $invoice->status }} {{ $invoice->created_at->format("d M Y") }}
No invoices found.
{{ $invoices->links() }}
@endsection