@foreach($data as $item) @endforeach
Kode Tgl Pelanggan Total Diskon PPN Grand Total
{{$item->code ?? '-'}} {{$item->date}} Pelanggan : {{$item->customer ? $item->customer->name : '-'}}
Pengguna : {{$item->user ? $item->user->username : '-'}}
{{number_format($item->total ?? 0,2,',','.')}} {{number_format($item->discount ?? 0,2,',','.')}} @if($item->discount_type == "NOMINAL") *Rp @else % @endif {{number_format($item->tax ?? 0,2,',','.')}} {{number_format($item->grand_total ?? 0,2,',','.')}}