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

Tanggal : {{$tanggal}}

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

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