@extends('layouts.app') @section('title', 'Consolidation & Freight') @push('styles') @endpush @section('content')
{{ $payments->count() }} for your warehouse.
| Payment | Customer | Shipments | Amount | Payment Status | Status | |
|---|---|---|---|---|---|---|
|
{{ $payment->tracking_number ?: ('#' . $payment->id) }}
Suite {{ $payment->suite_number ?: 'N/A' }}
|
{{ $payment->kuser->name ?? 'N/A' }} |
@forelse($payment->warehousePaymentShipments as $paymentShipment)
@php
$linkedShipment = $paymentShipment->shipment;
$itemCount = 0;
if ($linkedShipment) {
$itemCount = $linkedShipment->items->count();
if ($itemCount === 0 && $linkedShipment->item_name) {
$itemCount = 1;
}
}
$itemLabel = $itemCount === 1 ? '1 item' : $itemCount . ' items';
@endphp
@if($linkedShipment && $linkedShipment->id)
{{ $linkedShipment->tracking_number ?? 'N/A' }}
@else
{{ optional($linkedShipment)->tracking_number ?? 'N/A' }}
@endif
{{ $itemLabel }}
@empty
No shipment
@endforelse
|
₹{{ number_format($payment->amount, 2) }}
@if($payment->additionalAmounts->count() > 0 || $payment->additionalServices->count() > 0)
Additional charges
@endif
|
{{ $badgeLabel }}
{{ $payment->paid_at ? $payment->paid_at->format('d M Y, h:i A') : $payment->created_at->format('d M Y, h:i A') }}
|
{{ $displayStatus ?: 'N/A' }} |