@extends('layouts.finance') @section('title', 'In Transit Detail') @section('subtitle', 'Supplier invoices currently marked as transit') @section('content') @php $displayCurrency = 'PKR'; $fmt = fn($usd) => $metrics->moneyIn($usd, 'USD', $displayCurrency); $breakdownLabels = array_keys($breakdown); $breakdownValues = array_values($breakdown); $largestSupplier = $breakdownLabels[0] ?? 'No supplier'; $largestAmount = count($breakdownValues) ? max($breakdownValues) : 0; $paidCurrencyRates = $effectiveRatesByPaidCurrency ?? []; $selectedPaidCurrency = $selectedPaidCurrency ?? null; $paidCurrencyCards = $paidCurrencyCards ?? []; @endphp
| Invoice | Supplier | Bank | Amount | Paid Rate | Effective Rate | PKR Equivalent | Status |
|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->supplier_name ?: $invoice->client_name }} | {{ $invoice->bankAccount ? trim($invoice->bankAccount->name.' - '.$invoice->bankAccount->bank_name) : '-' }} | {{ $metrics->money($invoiceTotal, $invoice->currency) }} | {{ $paidCurrency && $paidCurrencyRate ? $paidCurrency.'->PKR '.number_format($paidCurrencyRate, 4) : '-' }} | {{ $rate ? number_format($rate, 4) : '-' }} | {{ $invoicePkrEquivalent !== null ? $metrics->money($invoicePkrEquivalent, 'PKR') : 'Missing paid rate' }} | In Transit |
| No transit invoices. | |||||||
| Total In Transit | {{ $fmt($total) }} | ||||||
Transit amounts come from supplier invoices whose database status is transit.