{{ isset($data) ? 'Edit Credit Note' : 'Create Credit Note' }}

{{-- LEFT --}}
{{-- Return Date --}}
{{-- Customer --}}
{{-- Invoice (optional) --}}
{{-- RIGHT --}}
{{-- Return Type --}}
{{-- Refund amount --}}
{{-- Deposit amount --}}
{{-- Reason --}}

{{-- ================= ITEMS ================= --}}
@if(!empty($details)) @foreach($details as $d) @endforeach @else {{-- Row kosong pertama --}} @endif
Product Qty Affected Unit Price Disc Tax Action
{{ $d->product_code . ' - ' . $d->product_name }} {{ $d->unit_price }} {{ $d->discount }} {{ $d->tax_amount_invoice }}
Total Return: {{ $data->total_credit ?? 0 }}
@include('web.general_ledger.list_general_ledger')
@php $disabled = ''; @endphp @if (isset($id)) @if ($data->status == 'DRAFT') @else @php $disabled = 'disabled' @endphp @endif @endif