Payment History

@isset($client_id) Download PDF @endisset
@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 ? date('d-M-Y h:i A', strtotime($p->created_at)) : '' }}
@if ($p->extend_to_date) Extend: {{ $p->extend_from_date ? date('d-M-Y', strtotime($p->extend_from_date)) : 'N/A' }} → {{ date('d-M-Y', strtotime($p->extend_to_date)) }}
@endif MR ID: {{ $p->money_receipt_number }}
DS: {{ $p->description }} @if(isset($p->user)) @if ($p->user->name == "Bkash-Webhook")
Payment No: {{ $p->customerMsisdn ?? '' }} @endif @endif
E.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') }}