{{$sekolahInfo->nama_sekolah}}

{{$sekolahInfo->alamat}} {{$sekolahInfo->kota}}

No. Telpon : {{$sekolahInfo->no_telp}}

{{--

Invoice: #{{ $penjualan->invoice }}

{{ $penjualan->created_at->format('d-m-Y H:i:s') }}

--}}

@if (!empty($jenisPembayaranTipe))
Jenis Pembayaran {{$data->first()->jenis_pembayaran->nama_pembayaran}}
Tahun Pelajaran {{$data->first()->jenis_pembayaran->tahunajaran->tahun_ajaran}}
Nominal Rp. {{ number_format($data->first()->jenis_pembayaran->harga)}}
Tipe {{ ($jenisPembayaranTipe === "bulanan") ? 'Bulanan' : 'Angsuran/Bebas'}}
Kelas {{ ($namaKelas == "") ? 'Semua Kelas' : $namaKelas }}
{{--

--}} @else

Dicetak Tanggal : {{ date("d-m-Y") }}

@endif
@if ($jenisPembayaranTipe === 'bulanan') @foreach ($bulan as $item) @endforeach @else @endif @php $grandTotal = 0; $totalBayar = 0; @endphp @forelse ($data as $row) @if ($jenisPembayaranTipe !== 'bulanan') @endif @php $total = 0; @endphp @foreach ($row->tagihan_detail as $item) @endforeach @php $grandTotal = $grandTotal + $total; @endphp @if ($jenisPembayaranTipe === 'bulanan') @endif @empty @endforelse @if ($jenisPembayaranTipe === 'bulanan') @else {{-- --}} @endif
# Nis Nama Kelas{{$item}}TotalTotal Bayar Sisa Keterangan
{{ $loop->iteration }} {{$row->siswa->nis}} {{$row->siswa->nama_lengkap}} {{$row->siswa->kelas->nama_kelas}} @if ($row->tagihan_detail[0]->total_bayar != 0) {{-- @else --}} {{ number_format($row->tagihan_detail[0]->total_bayar) }} @php $totalBayar = $totalBayar + $row->tagihan_detail[0]->total_bayar @endphp @endif @if ($row->tagihan_detail[0]->sisa != 0) {{ number_format($row->tagihan_detail[0]->sisa) }} @endif @if ($item->status === 'Lunas') Lunas @php $total = $total + $data->first()->jenis_pembayaran->harga; @endphp @endif @if ($item->status === 'Belum Lunas') - @endif {{number_format($total)}}
Tidak ada data
Total {{number_format($grandTotal)}}
Total {{number_format($totalBayar)}}