@php($totalDue = 0) @foreach ($list as $p) {{-- --}} @endforeach
#id Date Type C Name username Expire Date POP MR ID Entry BY Col By Package Description Amount Discount
{{ $p->id }} @php(printf('CID%04d', $p->clients->id)) {{-- Invoice --}} Invoice {{ date('d-M-Y h:i:s A', strtotime($p->created_at)) }} {{ $p->income->head->name ?? '' }} {{ $p->clientsinfo->clients_name ?? '' }} {{ $p->clients->userid ?? '' }} {{ \Carbon\Carbon::parse($p->clients->expire_date)->format('d-M-Y') }} {{ $p->clients->pop->popname ?? '' }} {{ $p->money_receipt_number }} {{ $p->user->name ?? '' }} {{ $p->employee->name ?? '' }} {{ $p->clients->packages->package_name ?? '' }} {{ $p->description ?? '' }} {{ $p->paid_amount }} {{ $p->discount_amount }}