@extends('layouts.app') @section('content')
| # | Invoice No. | Payment For | Invoice Month | Payment Date | Amount | Status | Category | |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $payment->invoice_no ?? '' }} | {{ $payment->payment_for ?? '' }} | {{ $payment->invoiced_at ? $payment->invoiced_at->addMonth()->format('m/Y') : '-' }} | {{ $payment->received_time?->format('d/m/Y') ?? '-' }} | RM {{ $payment->amount ?? '-' }} | {{ $payment->status->label() }} @if ($payment->status == 'Success') Success @elseif ($payment->status == 'Fail') Fail @else @endif | @foreach ($payment->creditDebitNoteItems as $item) @if ($item->creditDebitNote) {{ $item->creditDebitNote->category->label() }} @endif @endforeach | |
| No record found | ||||||||