Total Row: {{ $list->total() }} (Showing: {{ $list->count() }})
@elseTotal Row {{ $list->count() ?? 0 }}
@endif @if(isset($totals))Total Amount: {{ number_format($totals->total_paid_amount ?? 0, 2) }} TK
@endifPage 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) }}
@endifPage 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
@endifPage VAT Amount: {{ number_format($list->sum('vat_amount'), 2) }} TK
Page Reseller Commission: {{ number_format($list->sum('reseller_commission_amount'), 2) }} TK
@endif| #id | Date | Type | CID | C Name | username | Contact | @if (getBillingType() == 'day_to_day')Expire Date | @endifReseller | POP | Area | MR ID | Entry BY | Col By | Package | Description | Amount | @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable')Reseller VAT % | VAT Amount | Reseller Comm. % | Reseller Comm. Amt | @endif {{-- @can('company_commission')Company Miscellaneous Expense | @endcan @can('manager_commission')Manager Miscellaneous Expense | @endcan @can('sub_manager_commission')Sub Manager Miscellaneous Expense | @endcan --}} @if ($hideColumn == false)Discount | {{--Due | --}} @elseif ($hideColumn == true) @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $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 ?? '' }} | @if (getBillingType() == 'day_to_day'){{ $p->clients->expire_date }} | @endif{{ $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 }} | @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable'){{ $p->reseller_vat_percentage ?? 0 }}% | {{ $p->vat_amount ?? 0 }} | {{ $p->reseller_commission_percentage ?? 0 }}% | {{ $p->reseller_commission_amount ?? 0 }} | @endif {{-- @can('company_commission'){{ $p->paid_amount - $p->sub_manager_commission - $p->manager_commission }} | @endcan @can('manager_commission'){{ $p->manager_commission }} | @endcan @can('sub_manager_commission'){{ $p->sub_manager_commission }} | @endcan --}} @if ($hideColumn == false){{ $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) ) | --}} @elseif ($hideColumn == true) @endif
| @endfor | Total: | {{ $list->sum('paid_amount') }} TK | @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable') {{-- Reseller VAT % total not meaningful --}}{{-- Total VAT amount --}} | {{ $list->sum('vat_amount') }} TK | {{-- Reseller commission % total not meaningful --}}{{-- Total reseller commission amount --}} | {{ $list->sum('reseller_commission_amount') }} TK | @endif @if ($hideColumn == false){{ $list->sum('discount_amount') }} TK | @endif||||||||||||||||||
| @endfor | Total: | {{ $list->sum('paid_amount') }} TK | @if (globalPermission('commission_from_manager_pop') && checkSettings('vat_deduct_from_payment_for_commission_calculation') === 'enable') {{-- Reseller VAT % total not meaningful --}}{{-- Total VAT amount --}} | {{ $list->sum('vat_amount') }} TK | {{-- Reseller commission % total not meaningful --}}{{-- Total reseller commission amount --}} | {{ $list->sum('reseller_commission_amount') }} TK | @endif @if ($hideColumn == false){{ $list->sum('discount_amount') }} TK | @endif