{{-- --}}

Payment History

@if(method_exists($list, 'total'))

Total Row: {{ $list->total() }} (Showing: {{ $list->count() }})

@else

Total Row {{ $list->count() ?? 0 }}

@endif @if(isset($totals))

Total Amount: {{ number_format($totals->total_paid_amount ?? 0, 2) }} TK

@endif

Page Amount: {{ number_format($list->sum('paid_amount'), 2) }} TK

{{-- @can('company_commission')

Total Company Miscellaneous Expense {{ $list->sum('paid_amount') - $list->sum('sub_manager_commission') - $list->sum('manager_commission') }} TK

@endcan @can('manager_commission')

Total Manager Miscellaneous Expense {{ $list->sum('manager_commission') }} TK

@endcan @can('sub_manager_commission')

Total Sub Manager Miscellaneous Expense {{ $list->sum('sub_manager_commission') }} TK

@endcan --}} @if(isset($totals))

Total Discount: {{ number_format($totals->total_discount_amount ?? 0, 2) }}

@endif

Page Discount: {{ number_format($list->sum('discount_amount'), 2) }}

@if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable') @if(isset($totals))

Total VAT Amount: {{ number_format($totals->total_vat_amount ?? 0, 2) }} TK

Total Reseller Commission: {{ number_format($totals->total_reseller_commission_amount ?? 0, 2) }} TK

@endif

Page VAT Amount: {{ number_format($list->sum('vat_amount'), 2) }} TK

Page Reseller Commission: {{ number_format($list->sum('reseller_commission_amount'), 2) }} TK

@endif

{{-- Pagination Links (upper section) --}} @if(method_exists($list, 'links'))
{{ $list->appends(request()->except('page'))->links() }}
Showing {{ $list->firstItem() ?? 0 }} to {{ $list->lastItem() ?? 0 }} of {{ $list->total() }} results
@endif
@if (getBillingType() == 'day_to_day') @endif @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable') @endif {{-- @can('company_commission') @endcan @can('manager_commission') @endcan @can('sub_manager_commission') @endcan --}} @if ($hideColumn == false) {{-- --}} @elseif ($hideColumn == true) @endif @php($totalDue = 0) @foreach ($list as $p) @if (getBillingType() == 'day_to_day') @endif @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable') @endif {{-- @can('company_commission') @endcan @can('manager_commission') @endcan @can('sub_manager_commission') @endcan --}} @if ($hideColumn == false) {{-- --}} @elseif ($hideColumn == true) @endif @endforeach {{-- Totals row --}} @if (getBillingType() == 'day_to_day') {{-- 17 columns before Amount in day_to_day mode, we keep 1 for "Total:" --}} @for ($i = 0; $i < 15; $i++) @endfor @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable') {{-- Reseller VAT % total not meaningful --}} {{-- Total VAT amount --}} {{-- Reseller commission % total not meaningful --}} {{-- Total reseller commission amount --}} @endif @if ($hideColumn == false) @endif @else {{-- 16 columns before Amount in normal mode, we keep 1 for "Total:" --}} @for ($i = 0; $i < 14; $i++) @endfor @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable') {{-- Reseller VAT % total not meaningful --}} {{-- Total VAT amount --}} {{-- Reseller commission % total not meaningful --}} {{-- Total reseller commission amount --}} @endif @if ($hideColumn == false) @endif @endif
#id Date Type CID C Name username ContactExpire DateReseller POP Area MR ID Entry BY Col By Package Description AmountReseller VAT % VAT Amount Reseller Comm. % Reseller Comm. AmtCompany Miscellaneous ExpenseManager Miscellaneous ExpenseSub Manager Miscellaneous ExpenseDiscountDue
{{ $p->id }} {{ date('d-M-Y h:i:s A', strtotime($p->created_at)) }} {{ $p->income->head->name ?? '' }} {{ $p->clients->id ?? '' }} {{ $p->clientsinfo->clients_name ?? '' }} {{ $p->clients->userid ?? '' }} '{{ $p->clientsinfo->contact_no ?? '' }} {{ $p->clients->expire_date }}{{ $p->clients->pop->reseller->name ?? '' }} {{ $p->clients->pop->popname ?? '' }} {{ $p->clients->clientsinfo->area ?? '' }} {{ $p->money_receipt_number }} {{ $p->user->name ?? '' }} {{ $p->employee->name ?? '' }} {{ $p->clients->packages->package_name ?? '' }} {{ $p->description ?? '' }} {{ $p->paid_amount }}{{ $p->reseller_vat_percentage ?? 0 }}% {{ $p->vat_amount ?? 0 }} {{ $p->reseller_commission_percentage ?? 0 }}% {{ $p->reseller_commission_amount ?? 0 }} {{ $p->paid_amount - $p->sub_manager_commission - $p->manager_commission }} {{ $p->manager_commission }} {{ $p->sub_manager_commission }} {{ $p->discount_amount }} {{ $p->clients->customerAccount->dueAmount > 0 ? $p->clients->customerAccount->dueAmount : 0 }} @php($totalDue+= ($p->clients->customerAccount->dueAmount > 0 ? $p->clients->customerAccount->dueAmount : 0) )
{{-- Pagination Links --}} @if(method_exists($list, 'links'))
{{ $list->appends(request()->except('page'))->links() }}
Showing {{ $list->firstItem() ?? 0 }} to {{ $list->lastItem() ?? 0 }} of {{ $list->total() }} results
@endif