@extends('layouts.app') @section('content') @php $noteType = $noteType ?? 'credit'; $title = match($noteType) { 'credit' => 'Credit Notes', 'debit' => 'Debit Notes', 'refund' => 'Refund Notes', default => 'Notes' }; // ✅ Gunakan route universal berdasarkan prefix URL yang dinamik $routeCreate = route('note.create', ['note_type' => $noteType . '_note']); $labelNew = 'New ' . rtrim($title, 's'); @endphp
Manage and track all {{ strtolower($title) }} in the system
| {{ ucfirst($noteType) }} Note # | Company | Customer | Amount | Date | Status | Actions |
|---|---|---|---|---|---|---|
|
{{ $note->invoice_no }} UUID: {{ $note->uuid }} |
{{ $note->supplier_name }} TIN: {{ $note->supplier_tin }} |
{{ $note->customer_name }} {{ $note->customer_email }} |
RM {{ number_format($note->price, 2) }} | {{ \Carbon\Carbon::parse($note->issue_date)->format('d-m-Y') }} | @if ($note->submission_status == 'submitted') Submitted @else Failed @endif | View @if ($note->uuid != '') Cancel @endif |