Laporan
{{$title}}
@foreach($data->original as $list) @foreach($list as $item) @php $count = count($item['data']); @endphp @if($count > 0)
Nama Pelanggan : {{$item['name']}}
@foreach($item['data'] as $listitem) @php $i=1; @endphp @foreach($listitem->transaction_details as $details) @php $jsonencode = json_encode($listitem); $totalall = $details->custom_price * $details->qty; @endphp {{$i++}} @endforeach
No Faktur : {{$listitem->code}} Sales : {{$listitem->salesman->name}}
Tanggal Penjualan : {{date('d/m/Y',strtotime($listitem->created_at))}} {{-- Supplier : {{$listitem->customer->name}}
--}}
Pembayaran :{{$listitem->is_paid ? 'Cash' : 'Credit'}}
No Nama Barang Harga Barang Qty Total
{{$i}} {{$details->item ? $details->item->name : $details->item_name}} {{$details->item ? number_format($details->item->price,0,',','.') : number_format($details->custom_price,0,',','.')}} {{$details->qty}} {{number_format($totalall,0,',','.')}}
Grand Total : {{number_format($listitem->total,0,',','.')}}
@endforeach @endif @endforeach @endforeach

Dicetak Pada : {{date('d/m/Y')}}