Payment History

@php($total = 0) @php($index = 0) @foreach ($paymenthistory->get() as $p) @php($total += $p->paid_amount) @php($index++) @endforeach
Action Description Received/Collected By Type Amount Discount
@can('money-receipt-destroy') @if ($index == 0)
@csrf
@elseif(auth()->user()->id == 1)
@csrf
@endif @endcan @if (checkSettings('print-invoice') == 'enable') @if (checkSettings('only-last-invoice-print') == 'enable') @if (auth()->user()->hasRole('Admin')) @elseif (auth()->user()->hasPermissionTo('print-invoice')) @if ($index == 0) @endif @endif @else @endif @endif

Id: {{ $p->id }}

Date: {{ $p->created_at }}
MR ID: {{ $p->money_receipt_number }}
DS: {{ $p->description }} @if ($p->user->name == "Bkash-Webhook")
Payment No: {{ $p->customerMsisdn }} @endif
R.By: {{ $p->user->name ?? 'Online Payment' }}
C.By: {{ $p->employee->name ?? '' }}
{{ $p->income->name ?? '' }} {{ $p->paid_amount }} {{ $p->discount_amount }}
Total Amount: {{ $total }} TK {{ $paymenthistory->sum('discount_amount') }}