@php $json =json_encode($data->original); $no = 1; if ($from === 'null') { $tanggal = 'Semua'; }else{ $tanggal = date('d/m/Y',strtotime($from))." s/d ".date('d/m/Y',strtotime($to)); } $total = 0; @endphp
Laporan
{{$title}}

Periode : {{$tanggal}}

Jenis : {{$jenis}}

@foreach ($data->original as $item) @php $total = $total + $item->total; @endphp @endforeach
No No Faktur Tanggal Pembayaran Total
{{$no++}} {{$item->code}} {{date('d/m/Y',strtotime($item->created_at))}} {{$item->is_paid ? 'Cash' : 'Credit'}} {{number_format($item->total,0,',','.')}}
Total : {{number_format($total,0,',','.')}}

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