@extends('layouts.app') @section('title', 'Credit Debit Note') @section('content')
| # | Invoice No. | Customer | Site Name | Type | Payment For | Description | Amount | Invoice Date | Transaction Date | Status | Approval Status | Category | Decided By | Decided Date | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $creditDebitNote->paymentItem->payment->invoice_no ?? '' }} | {{ $creditDebitNote->cardholder->name ?? '' }} | {{ $creditDebitNote->paymentItem->site->name ?? '' }} | {{ $creditDebitNote->type->name ?? '' }} | {{ $creditDebitNote->paymentItem->payment->payment_for ?? '' }} | {{ $creditDebitNote->description ?? '' }} | {{ $creditDebitNote->type->symbol() }} RM {{ $creditDebitNote->amount ?? '' }} | {{ $creditDebitNote->paymentItem->payment->invoiced_at?->format('d/m/Y') ?? '--' }} | {{ $creditDebitNote->paymentItem->payment->received_time?->format('d/m/Y \- H:i') ?? '--' }} | @if ($creditDebitNote->paymentItem->payment->isPaid()) Paid @else Unpaid @endif | @if ($creditDebitNote->status) {{ $creditDebitNote->status->label() }} @else Draft @endif | {{ $creditDebitNote->category?->label() ?? '-' }} | {{-- Who approved or rejected this note, and when. The outcome itself is the Approval Status badge above. --}}{{ $creditDebitNote->decider?->name ?? '-' }} | {{ $creditDebitNote->decided_at?->format('d/m/Y \- H:i') ?? '-' }} | {{-- Nothing here renders disabled: a control is either shown and usable, or not shown at all. The delete form holds only its own button, and the group is laid out inline so the controls sit on one row instead of stacking. --}}
@can('edit-credit-debit-note')
@endcan
{{-- A call to action, not a status indicator: the tick
invites a decision, so it retires once one is
recorded (approved or rejected). A decided note is
then read through the edit page. --}}
@if ($reviewsApprovals && ! $creditDebitNote->isDecided())
@endif
@can('delete-credit-debit-note')
@endcan
|
| No record found | |||||||||||||||