@extends('layouts.app') @section('title', 'Status Update') @push('styles') @endpush @section('content')
{{ $paymentGroups->count() }} payment{{ $paymentGroups->count() === 1 ? '' : 's' }} ready for a status update.
No payment processed received shipments found.
| Payment | Customer | Received shipments | Amount | Payment Status | Status | Updated | |
|---|---|---|---|---|---|---|---|
|
{{ $payment->tracking_number ?: ('#' . $payment->id) }}
Suite {{ $payment->suite_number ?: 'N/A' }}
|
{{ $payment->kuser->name ?? 'Not linked' }}
@php
$listedShipment = $payment->warehousePaymentShipments->map->shipment->filter()->first();
$listedAddress = optional(optional($listedShipment)->virtualAddress)->formattedDeliveryAddress();
@endphp
@if($listedAddress)
{{ $listedAddress }}
@endif
|
{{ $shipmentLabel }} · {{ $itemLabel }}
@foreach($payment->warehousePaymentShipments as $paymentShipment)
@php
$linkedShipment = $paymentShipment->shipment;
$lineCount = 0;
if ($linkedShipment) {
$lineCount = $linkedShipment->items->count();
if ($lineCount === 0 && $linkedShipment->item_name) {
$lineCount = 1;
}
}
$lineLabel = $lineCount === 1 ? '1 item' : $lineCount . ' items';
@endphp
{{ optional($linkedShipment)->tracking_number ?: 'N/A' }}
{{ $lineLabel }}
@endforeach
|
@php $paymentFigures = $payment->shippingFigures(); @endphp @include('wuser.partials.shipping-figures', [ 'figureStyle' => 'stack', 'notaxShipping' => $paymentFigures['notax'], 'gstAmount' => $paymentFigures['gst'], 'shippingTotal' => $paymentFigures['shipping'], ]) | {{ $badgeLabel }} |
{{ $currentDisplayStatus ?: 'N/A' }}
@if($statusUpdatedBy)
Updated by
@if($statusUpdatedBy === 'partner' && $partnerInfo)
{{ $partnerInfo->name }}
@elseif($statusUpdatedBy === 'wuser' && $wuserInfo)
{{ $wuserInfo->name }}
@elseif($statusUpdatedBy === 'mms')
MMS Sync
@else
{{ ucfirst($statusUpdatedBy) }}
@endif
@endif
|
{{ $updatedAt ? $updatedAt->format('d M Y, h:i A') : 'N/A' }} |