@extends('layouts.header') @section('content')
Background Image

Dashboard

Payment Details
@php $counter = 1 @endphp @foreach($payments as $payment) {{-- --}} @endforeach
Payment ID Sponsor Name Student Name Method Amount Received Date
{{ $counter++ }} {{ $payment->sponsor->fullName }} @foreach($payment->students as $student) {{ $student->student_name }}
@endforeach
{{ $payment->method }} ₹{{ number_format( $payment->amount , 2, '.', ',') }}{{ $payment->amount }}{{ $payment->created_at->format('d/m/Y') }}
Due Details
@php $counter = 1; @endphp @foreach($dueListsCollection->groupBy('id') as $payment) {{-- --}} {{-- --}} @endforeach
Payment ID Sponsor Name Student Name Method Amount Balance Amount Received Date
{{ $counter++ }} {{ $payment->first()['sponsor']['fullName'] }} @foreach($payment->pluck('students')->collapse()->unique('id') as $student) {{ $student['student_name'] }}
@endforeach
{{ $payment->first()['method'] }} ₹{{ number_format( $payment->first()['amount'] , 2, '.', ',') }} ₹{{ number_format( $payment->first()['balance'] , 2, '.', ',') }}{{ $payment->first()['amount'] }}{{ $payment->first()['balance'] }}{{ $payment->first()['created_at']->format('d/m/Y') }}
@endsection