@extends('layouts.app') @section('content')

Customers Payment List

@include('customer.menu')
@include('customer.tab')
@forelse ($payments as $payment) @empty @endforelse
# 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
@method('DELETE') @csrf @if(! $payment->isPaid()) @endif
No record found
{{ $payments->links() }}
@endsection @push('css') @endpush @push('js') @endpush