@extends('layouts.app') @section('title', 'Student Ledger') @section('content')

Student Information

Student ID {{ $studentuser->uid }} Name {{ $studentuser->name }}
Mobile {{ $studentuser->mobile }} Email {{ $studentuser->email }}

Fee Category

{{ $payable }}

Total Waiver

{{ $waiver }}

Total Improvment Due

{{ $improvment }}

Total Document Due

{{ $documentdue }}

Total Other Due

{{ $settlement }}

Total Paid

{{ $paidamount }}

Total Due

{{ $dueamount }}

Class History
@if ($students) @foreach ($students as $item) @endforeach
Action # Class Session Group Year Section Status
Show {{ $loop->iteration }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ optional($item->section)->name }}
{{ $item->status }}
@else

No Student Found

@endif
Payment History
@php $historytotal = 0; @endphp @foreach ($studentuser->students as $student) @foreach ($student->paymenthistories as $item) @php $historytotal += $item->amount; @endphp @endforeach @endforeach
# UID Name Class Session Group Year Amount Transaction No Payment Method Date
{{ $loop->iteration }} {{ optional($item->studentuser)->uid }} {{ optional($item->studentuser)->name }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ number_format($item->amount, 2) }} {{ $item->receipt }} {{ optional($item->paymentmethod)->name }} {{ $item->created_at->format('d-m-Y') }}
Total {{ number_format($historytotal, 2) }}
Waivers History
@foreach ($studentuser->students as $student) @foreach ($student->waivers as $item) @endforeach @endforeach
Action # UID Name Class Session Group Year Amount Created Created By Status
{{ $loop->iteration }} {{ optional($item->studentuser)->uid }} {{ optional($item->studentuser)->name }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ $item->amount }} {{ $item->created_at->format('d-m-Y') }} {{ optional($item->user)->name }}
{{ $item->status }}
Total {{ number_format($student->waivers->sum('amount'), 2) }}
Exam Improvement Due History
@foreach ($studentuser->students as $student) @foreach ($student->examimprovementdue as $item) @endforeach @endforeach
Action # UID Name Class Session Group Year Amount Created Created By Status
{{ $loop->iteration }} {{ optional($item->studentuser)->uid }} {{ optional($item->studentuser)->name }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ $item->amount }} {{ $item->created_at->format('d-m-Y') }} {{ optional($item->user)->name }}
{{ $item->status }}
Settlement History
@foreach ($studentuser->students as $student) @foreach ($student->settlementdue as $item) @endforeach @endforeach
Action # UID Name Class Session Group Year Amount Type Created Created By Status
{{ $loop->iteration }} {{ optional($item->studentuser)->uid }} {{ optional($item->studentuser)->name }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ $item->amount }} {{ $item->type }} {{ $item->created_at->format('d-m-Y') }} {{ optional($item->user)->name }}
{{ $item->status }}
Document Due History
@foreach ($studentuser->students as $student) @foreach ($student->examimprovementdue as $item) @endforeach @endforeach
Action # UID Name Class Session Group Year Type Amount Created At Created By Status
{{ $loop->iteration }} {{ optional($item->studentuser)->uid }} {{ optional($item->studentuser)->name }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ optional($item->documenttype)->name }} {{ $item->amount }} {{ $item->created_at->format('d-m-Y') }} {{ optional($item->user)->name }}
{{ $item->status }}
@endsection @include('admin.components.toster') @include('admin.components.tosterjs')