{{ SettingModel::get('site_name') }} logo

{{ SettingModel::get('site_name') }}

{{ SettingModel::get('address') }}

LAPORAN SISWA

TP.{{ $data->tahun_ajaran }}

Nomor Induk Siswa (NIS)

{{ $data->nis }}

Nama

{{ $data->nama_siswa }}

Kelas

{{ $data->kelas->jenjang->nama_jenjang }} - {{ $data->kelas->nama_kelas }} {{ $data->kelas_pararel->nama_kelas_pararel }}

Jenis Kelamin

{{ $data->jenis_kelamin }}

NO HP

{{ $data->no_hp }}

Email

{{ $data->email }}

Orang Tua Wali

{{ $data->orang_tua_wali }}

Alamat

{{ $data->alamat }}

Kategori

{{ $data->kategori_siswa->nama_kategori_siswa }}

Status

{{ $data->status_siswa }}

Mulai Pembayaran

{{ $data->mulai_pembayaran }}

Wali Kelas

{{ $data->nama_wali_kelas }}

REKAPITULASI TRANSAKSI

@php $totalTanggungan = 0; $totalDibayar = 0; $totalKurang = 0; @endphp @foreach ($jenisPembayarans as $index => $jenisPembayaran) @php $item = $data->jenis_pembayaran_siswas ->where('jenis_pembayaran_id', $jenisPembayaran->id) ->first(); $nominalTagihans = $data->tagihans ->where('jenis_pembayaran_siswa_id', @$item->id) ->groupBy('total_tagihan'); @endphp @if (isset($item)) @if (count($nominalTagihans) <= 1) @if (@$jenisPembayaran->sifat_pembayaran == 'bulanan') @php if ($item) { $totalTanggungan += @$item->nominal * (12 - @$item->lewati); $totalDibayar += @$item->terbayar; $totalKurang += @$item->nominal * (12 - @$item->lewati) - @$item->terbayar; } @endphp @else @php if ($item) { $totalTanggungan += @$item->nominal; $totalDibayar += @$item->terbayar; $totalKurang += @$item->nominal - @$item->terbayar; } @endphp @endif @else @php $totalNominalTagihan = 0; $totalDibayar = 0; foreach ($nominalTagihans as $totalTagihan => $nominalTagihan) { $totalNominalTagihan += $totalTagihan * count($nominalTagihan); foreach ($nominalTagihan as $tagihan) { $totalDibayar += $details ->where('tagihan_id', $tagihan->id) ->sum('nominal_pembayaran'); } } @endphp @if (@$jenisPembayaran->sifat_pembayaran == 'bulanan') @else @endif @foreach ($nominalTagihans as $totalTagihan => $nominalTagihan) @php $terbayar = 0; foreach ($nominalTagihan as $tagihan) { $terbayar += $details ->where('tagihan_id', $tagihan->id) ->sum('nominal_pembayaran'); } @endphp @if (@$jenisPembayaran->sifat_pembayaran == 'bulanan') @php if ($item) { $totalTanggungan += @$totalTagihan * (count($nominalTagihan) - @$item->lewati); $totalDibayar += @$terbayar; $totalKurang += @$totalTagihan * (count($nominalTagihan) - @$item->lewati) - @$terbayar; } @endphp @else @php if ($item) { $totalTanggungan += @$totalTagihan; $totalDibayar += @$terbayar; $totalKurang += @$totalTagihan - @$terbayar; } @endphp @endif @endforeach @endif @endif @endforeach
# Tagihan Bulanan Tanggungan Dibayar Kurang
#{{ $loop->iteration }} {{ @$jenisPembayaran->nama_jenis_pembayaran }}{{ number_format(@$item->nominal) }} {{ number_format(@$item->nominal * (12 - @$item->lewati)) }} @if (@$item->lewati > 0) ( {{ 12 - @$item->lewati }} Bulan ) @endif {{ number_format(@$item->terbayar) }} {{ number_format(@$item->nominal * (12 - @$item->lewati) - @$item->terbayar) }} - {{ number_format(@$item->nominal) }} {{ number_format(@$item->terbayar) }} {{ number_format(@$item->nominal - @$item->terbayar) }}
#{{ $loop->iteration }} {{ @$jenisPembayaran->nama_jenis_pembayaran }} {{ number_format(@$item->nominal * (12 - count($nominalTagihans)) + $totalNominalTagihan) }} {{ number_format(@$item->nominal * (12 - @$item->lewati - count($nominalTagihans)) + $totalNominalTagihan) }} @if (@$item->lewati > 0) ( {{ 12 - @$item->lewati - count($nominalTagihans) }} Bulan ) @endif {{ number_format($totalDibayar) }} -- - - -
## {{ @$jenisPembayaran->nama_jenis_pembayaran }} ({{ count($nominalTagihan) }}x){{ number_format(@$totalTagihan) }} {{ number_format(@$totalTagihan * (count($nominalTagihan) - @$item->lewati)) }} @if (@$item->lewati > 0) ( {{ count($nominalTagihan) - @$item->lewati }} Bulan ) @endif {{ number_format(@$terbayar) }} {{ number_format(@$totalTagihan * (count($nominalTagihan) - @$item->lewati) - @$terbayar) }} - {{ number_format(@$totalTagihan) }} {{ number_format(@$terbayar) }} {{ number_format(@$totalTagihan - @$terbayar) }}
Total {{ number_format($totalTanggungan) }} {{ number_format($totalDibayar) }} {{ number_format($totalKurang) }}

RINCIAN TRANSAKSI

@foreach ($details as $detail) @endforeach
Tanggal Jenis Pembayaran Periode Jumlah Metode Penerima Keterangan
{{ $detail->pembayaran->tanggal_pembayaran }} {{ $detail->tagihan->jenis_pembayaran_siswa->jenis_pembayaran->nama_jenis_pembayaran }} ({{ number_format(@$detail->tagihan->total_tagihan ?? 0) }}) {{ $detail->tagihan->periode }} {{ number_format($detail->nominal_pembayaran) }} {{ $detail->pembayaran->metode_pembayaran }} {{ $detail->pembayaran->user->nama }} {{ $detail->keterangan }}
Total {{ number_format($details->sum('nominal_pembayaran')) }}