@if(method_exists($list, 'total')) Total Row: {{ $list->total() }} (Showing: {{ $list->count() }}) @else Total Row: {{ $list->count() }} @endif @if(isset($totals)) | Total Amount: {{ number_format($totals->total_paid_amount ?? 0, 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 (auth()->user()->id == 1) @endif @php($totalOtc = 0 ) @php($totalOtcDiscount = 0 ) @foreach ($list as $p) @if (auth()->user()->id == 1) @endif @php($totalOtc += $p->paid_amount) @php($totalOtcDiscount += $p->discount_amount) @endforeach
#id Date Username Name Paid DiscountOTC
{{ $p->id }} {{ date('d-M-Y h:i:s A', strtotime($p->created_at)) }} {{ $p->clients->userid ?? '' }} {{ $p->clientsinfo->clients_name ?? '' }} {{ $p->paid_amount }} {{ $p->discount_amount }}{{ $p->clientsinfo->otc ?? '' }}
Total {{ number_format($totalOtc, 2, '.', '') }} {{ number_format($totalOtcDiscount, 2, '.', '') }}
{{-- 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