@extends('layouts.school') @section('title', 'Outstanding Balances') @section('header', 'Outstanding by Class') @section('content')
@forelse ($byClass as $row) @php $share = collect($byClass)->sum('outstanding') > 0 ? round($row['outstanding'] / collect($byClass)->sum('outstanding') * 100) : 0; @endphp @empty @endforelse
Class Students Invoiced Outstanding Share
{{ $row['class'] }} {{ $row['students'] }} ₦{{ number_format($row['outstanding'], 0) }}
Nothing outstanding.
@endsection