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

Tanggal : {{$tanggal}}

@foreach ($dataall as $item) @php $no=1; @endphp @php $grandtotal = 0; @endphp @foreach ($item as $datalist) @foreach ($datalist['data'] as $itemlist) @php $total = $itemlist->total; $grandtotal = $grandtotal + $total; @endphp @endforeach @endforeach
No Faktur Tanggal Status Total
{{$no++}} {{$itemlist->code}} {{date('d/m/Y',strtotime($itemlist->created_at))}} {{$itemlist->status}} {{number_format($itemlist->total,0,',','.')}}
Total : {{number_format($grandtotal,0,',','.')}}
@endforeach

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