Laporan
{{$title}}
@php if ($from === 'null') { $tgl = 'Semua'; }else{ $tgl = date('d/m/Y',strtotime($from)).' s/d '.date('d/m/Y',strtotime($to)); } @endphp

Periode : {{$tgl}}

@foreach($data->original as $list) @foreach($list as $item) @php $count = count($item['data']); @endphp
Nama Sales : {{$item['name']}}
@if($count > 0) @foreach($item['data'] as $listitem) @php $i=1; @endphp @foreach($listitem->transaction_details as $details) @php $jsonencode = json_encode($details); $totalall = $details->custom_price * $details->qty; @endphp {{$i++}} @endforeach
No Faktur : {{$listitem->code}} Pelanggan : {{$listitem->customer->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 @else

Belum Ada Data Transaksi

@endif @endforeach @endforeach {{-- {{$jsonencode}} --}}

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