Dashboard
| 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') }} |
| 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') }} |