@extends('admin.layouts.dashboard') @section('title', 'Member Due List') @section('content') @php $ttl_subs = 0; $ttl_disc = 0; $ttl_paid = 0; $ttl_due = 0; $rowCount = count($transaction_details); @endphp
@if ($rowCount === 0) @else
@foreach ($transaction_details as $val) @php $ttl_subs += $val->amt_total; $ttl_disc += $val->dis_total; $ttl_paid += $val->ttl_paid; $ttl_due += $val->ttl_due; @endphp @endforeach
SL Name Contact Admission Discount Paid Due
{{ $loop->iteration }} {{ ucwords($val->fullname) }} {{ $val->phone_number ?: '—' }} {{ $val->amt_total }} {{ $val->dis_total }} {{ $val->ttl_paid }} {{ $val->ttl_due }}
Total {{ number_format($ttl_subs, 2) }} {{ number_format($ttl_disc, 2) }} {{ number_format($ttl_paid, 2) }} {{ number_format($ttl_due, 2) }}
@endif
@endsection