@include('admin.pages.reports.print.header')
| {{ __('Payment Date') }} | {{ __('Billing Month') }} | {{ __('Teacher Name') }} | {{ __('Payment Type') }} | {{__('Group')}} / {{__('Subject')}} | {{ __('Status') }} | {{ __('Amount') }} | {{ __('Discounted') }} | {{ __('Bonus') }} | {{ __('Paid') }} | {{ __('Total') }} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($record['payment_date'])->format('Y-m-d') }} | {{ $record['transaction']['billing_month'] }} | {{ $teacher->name }} | {{ __($record['payment_type']) }} | {{ $record['group']['name']??'' }} / {{ $record['subject']['name']??'' }} | {{ $record['payment_status']['name'] }} | {{ number_format($record['amount'], 2) }} | {{ number_format($record['discounted'], 2) }} | {{ number_format($record['bonus'], 2) }} | {{ number_format($record['paid'], 2) }} | {{ number_format($record['total'], 2) }} |
| {{__('Total')}} | {{number_format(collect($data)->sum('amount'), 2)}} | {{number_format(collect($data)->sum('discounted'), 2)}} | {{number_format(collect($data)->sum('bonus'), 2)}} | {{number_format(collect($data)->sum('paid'), 2)}} | {{number_format(collect($data)->sum('total'), 2)}} | |||||