@extends('layouts.app') @section('title', 'Collection Reports') @push('css') @endpush @section('content')

Reports Management

Transaction Details
Reset

RM {{ number_format($total, 2) }}

@forelse ($payments as $index => $payment) @if ($payment->ref_no) @else @endif @empty @endforelse
No. Invoice No. Invoice Date Account No. Account Name Transaction ID Transaction Date/Time Payment Type Site Item Amount (RM) Status  
{{ $payments->firstItem() + $index }} {{ $payment->invoice_no ?? '--' }} {{ $payment->invoiced_at?->format('d/m/Y') ?? '--' }} @if ($payment->payer?->user?->isCorporate()) C @endif {{ $payment->payer->account_no ?? '--' }} @if ($payment->payer?->user) {{ $payment->payer->name ?? '--' }} @if (is_null($payment->payer->name)) Please update customer info @endif @else -- @endif {{ $payment->ref_no ?? '--' }}{{ $payment->received_time?->format('d/m/Y \- H:i') ?? '--' }}--{{ $payment->type->label() ?? '--' }} {{ $payment->site->name ?? '--' }} @if (isset($payment->items))
    @foreach ($payment->items as $item ) @if(is_null($item->type))
  • {{ $item->card_no ?? '--' }} - {{ now()->month($item->month ?? now()->month)->format('M') ?? '-' }} {{ $item->year ?? '-' }}
  • @else
  • {{ $item->type ?? '--' }} - {{ $item->creditDebitNote->description }} {{ now()->month($item->month ?? now()->month)->format('M') ?? '-' }} {{ $item->year ?? '-' }}
  • @endif @endforeach
@endif
{{ Number::format($payment->amount, precision: 2) ?? 0 }} @if ($payment->isPaid()) Paid @else Unpaid @endif
No result
@endsection @push('js') @endpush