@extends('layouts.app') @section('content')

{{$biodata[0]->siswa_name}}

{{-- dd($biodata[0]->psb_id) --}}
Card image cap
{{$biodata[0]->siswa_name}} - Kelas {{$biodata[0]->class_name}}

{{$biodata[0]->siswa_address}}

Tempat Tanggal Lahir

{{$biodata[0]->siswa_birth_place}}, {{date('d-m-Y',strtotime($biodata[0]->siswa_birth_date))}}


NIK

{{$biodata[0]->siswa_nik}}


No. Telepon

{{$biodata[0]->siswa_nohp}}

Tagihan Biaya Lain-lain
@if (empty($tagihan[0])) @else
@foreach($biayalain as $index => $bl) @php $tagihans = \DB::table('m_tagihan') ->select(\DB::raw("siswa_id, biaya_lain_id, sum(CAST(tagihan_jumlah as int )) as jumlah, sum(CAST(tagihan_masuk as int )) as masuk, sum(CAST(tagihan_sisa as int )) as sisa")) ->where([['siswa_id', $bl->siswa_id],['biaya_lain_id', $bl->biaya_lain_id]]) ->whereNotNull('biaya_lain_id') ->groupBy('siswa_id', 'biaya_lain_id') ->get(); @endphp @foreach($tagihans as $key => $tag) @endforeach @endforeach
Siswa ID Biaya ID Item Tagihann Biaya Sisa Status
{{$bl->siswa_id}} {{$bl->biaya_lain_id}} {{-- Rp {{number_format($tagihan[0]->jumlah)}} --}} {{$bl->biaya_lain_name}} Rp {{number_format($tag->jumlah)}} Rp {{number_format($tag->sisa)}} @if($tag->sisa>0)
Belum Lunas
@else
Lunas
@endif
@endif
@endsection @section('js') @endsection