{{ isset($data) ? 'Edit Sales Invoice' : 'Create Sales Invoice' }}

is_packing) ? ($data->is_packing == 1 ? 'checked' : '') : 'checked' }}>

{{-- ================= DETAIL ITEMS ================= --}}
@if (!empty($details)) @foreach ($details as $item) @endforeach @else {{-- DEFAULT EMPTY ROW --}} @endif
Product Qty Price Discount Tax Subtotal
{{ $item->product_code }} - {{ $item->product_name }} {{ $item->price }} {{ $item->discount }} {{ $item->tax_amount }} {{ $item->subtotal }} @if ($item->flag_cancel == '1') Dibatalkan oleh Driver, Saat Kirim  @endif {{-- @endif --}}
Grand Total: {{ isset($data->subtotal) ? $data->subtotal : 0 }}
@include('web.general_ledger.list_general_ledger')
@if (isset($view_detail)) @else @if (isset($id)) @if ($data->post_date == '' && date('Y-m-d', strtotime($data->created_at)) > '2026-08-31')   {{-- --}} @endif @if ($data->status != 'PAID' && $data->status != 'PARTIAL-PAID' && $data->status != 'CANCELED') @endif @endif @if (!isset($id)) @endif @endif