@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)); } @endphp
Laporan {{$title}}
@foreach ($dataall as $list)

Tanggal : {{$tanggal}}

@foreach ($list as $detail) @foreach ($detail['items'] as $item) @php $jsonencode=json_encode($item); @endphp @if ($item->is_income) @foreach ($item->transaction as $detailitem) @endforeach @else @endif @if ($item->is_income) @else @endif @endforeach @endforeach
No Kode Deskripsi Debet Kredit
1 - Saldo Awal 0 -
{{$item->id+1}}{{$detailitem ? $detailitem->code : '-'}}-{{$item->cash_in_out_category->name}}{{number_format($item->amount,0,',','.')}} 00 {{number_format($item->amount,0,',','.')}}
Saldo Akhir {{count($dataall['data']) > 0? number_format($detail['cash'],0,',','.') : '-'}}
@endforeach

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