@extends('layouts.app') @section('title', 'Students Due List') @section('content')
@if($students) @php $amount = 0; @endphp @foreach ($students as $item) @php $amount += $item->studentdueamount($item->id); @endphp @endforeach
# Student ID Roll Name Class Session Group Year Section Due Amount
{{ $loop->iteration }} {{ optional($item->user)->uid }} {{ optional($item->user)->roll }} {{ optional($item->user)->name }} {{ optional($item->classtype)->name }} {{ optional($item->session)->name }} {{ optional($item->group)->name }} {{ optional($item->classyear)->name }} {{ optional($item->section)->name }} {{ $item->studentdueamount($item->id); }}
Total {{ number_format($amount,2) }}
@else

No Student Found

@endif
@include('admin.components.common') @endsection