@php $faktur = $data->original; if ($from === 'null') { $tanggal = 'semua'; }else { $tanggal = date('d/m/Y',strtotime($from))." s/d ".date('d/m/Y',strtotime($to)); } @endphp
{{$title}}

Periode : {{$tanggal}}

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

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