@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
| #id |
Date |
Username |
Name |
Paid |
Discount |
@if (auth()->user()->id == 1)
OTC |
@endif
@php($totalOtc = 0 )
@php($totalOtcDiscount = 0 )
@foreach ($list as $p)
| {{ $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 }} |
@if (auth()->user()->id == 1)
{{ $p->clientsinfo->otc ?? '' }} |
@endif
@php($totalOtc += $p->paid_amount)
@php($totalOtcDiscount += $p->discount_amount)
@endforeach
| 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