@if (checkSettings('largeFontInBillsheet') == 'enable') @else @endif
@php $siteInfo = siteinfo(); @endphp @if (!empty($siteInfo))
{{ $siteInfo->name }}

{{ $siteInfo->name }}

@endif
{{--
--}}
{{-- request()->type!='' && --}} @if (request()->type != 'all') @foreach ($poplist as $pop) @if (request()->search == 'pop') @if ($pop->id == request()->type)

View Customer Billing Information Of: {{ $pop->popname }} ( {{ date('M-Y') }} )

@endif @endif @endforeach @foreach ($reseller as $r) @if (request()->search == 'resellers') @if ($r->id == request()->type)

View Customer Billing Information Of: {{ $r->name }} ( {{ date('M-Y') }} )

@endif @endif @endforeach @if (request()->search == 'area')

View Customer Billing Information Of: {{ request()->type }} ( {{ date('M-Y') }} )

@endif
{{-- --}} @php($total = 0) @foreach ($list as $r) @php($r->dueAmount > 0 ? ($total += $r->dueAmount) : 0) @if ($due == 'yes' && $r->dueAmount > 0) {{-- --}} @endif @if ($due == 'no' && $r->dueAmount == 0) {{-- --}} @endif @endforeach @if ($due == 'yes') @endif
ID User name Name Contact Joining Date Address Zone/POP Package Type Bill Date Previous Due Due AmountTotal Dues
@php(printf('CID%04d', $r->id)) {{ $r->userid }} {{ $r->clients_name ?? '' }} {{ $r->contact_no ?? '' }} {{ date('d-M-Y', strtotime($r->joinDate)) }} @if (!empty($r->area)) Area : {{ $r->area ?? '' }}. @endif @if (!empty($r->block_sector)) Block/Sector : {{ $r->block_sector ?? '' }}. @endif @if (!empty($r->road_name)) R Name : {{ $r->road_name ?? '' }}. @endif @if (!empty($r->road_no)) R No : {{ $r->road_no ?? '' }}. @endif @if (!empty($r->building_name)) B Name : {{ $r->building_name ?? '' }}. @endif @if (!empty($r->building_no)) B No : {{ $r->building_no ?? '' }}. @endif @if (!empty($r->flat_no)) F No : {{ $r->flat_no ?? '' }}. @endif @if (!empty($r->owner_name)) H O : {{ $r->owner_name ?? '' }}. @endif @if (!empty($r->box)) Box : {{ $r->box ?? '' }} @endif {{ $r->popname }} {{ $r->package_name }} {{ $r->billing_type }} @if ($r->billing_type == 'new') {{ date('d-M-Y', strtotime($r->created_at)) }} @else {{ date('d-M-Y', strtotime($r->due_date)) }} @endif @if ($r->dueAmount - $r->package_rate > 0) {{ $r->dueAmount - $r->package_rate }} @else {{ 0 }} @endif {{ $r->dueAmount }} {{ $r->dueAmount - $r->totalPaid }}
@php(printf('CID%04d', $r->id)) {{ $r->userid }} {{ $r->clients_name ?? '' }} {{ $r->contact_no ?? '' }} {{ date('d-M-Y', strtotime($r->joinDate)) }} @if (!empty($r->area)) Area : {{ $r->area ?? '' }}. @endif @if (!empty($r->block_sector)) Block/Sector : {{ $r->block_sector ?? '' }}. @endif @if (!empty($r->road_name)) R Name : {{ $r->road_name ?? '' }}. @endif @if (!empty($r->road_no)) R No : {{ $r->road_no ?? '' }}. @endif @if (!empty($r->building_name)) B Name : {{ $r->building_name ?? '' }}. @endif @if (!empty($r->building_no)) B No : {{ $r->building_no ?? '' }}. @endif @if (!empty($r->flat_no)) F No : {{ $r->flat_no ?? '' }}. @endif @if (!empty($r->owner_name)) H O : {{ $r->owner_name ?? '' }}. @endif @if (!empty($r->box)) Box : {{ $r->box ?? '' }} @endif {{ $r->popname }} {{ $r->package_name }} {{ $r->billing_type }} @if ($r->billing_type == 'new') {{ date('d-M-Y', strtotime($r->created_at)) }} @else {{ date('d-M-Y', strtotime($r->due_date)) }} @endif @if ($r->dueAmount - $r->package_rate > 0) {{ $r->dueAmount - $r->package_rate }} @else {{ 0 }} @endif {{ $r->dueAmount }} {{ $r->dueAmount - $r->totalPaid }}
Total Due Amount BDT {{ $total }}
@else @foreach ($poplist as $pop)

View Customer Billing Information Of: {{ $pop->popname }} ( {{ date('M-Y') }} )


{{-- --}} @php($total = 0) @foreach ($list as $r) @if ($r->pop_id == $pop->id) {{-- {{dd($r)}} --}} {{-- @php($total += $r->dueAmount) --}} @php($r->dueAmount > 0 ? ($total += $r->dueAmount) : 0) {{-- {{dd($r)}} --}} @if ($due == 'yes' && $r->dueAmount > 0) {{-- --}} @endif @if ($due == 'no' && $r->dueAmount == 0) {{-- --}} @endif @endif @endforeach @if ($due == 'yes') @endif
ID User name Name Contact Address Zone/POP Package Type Bill Date Previous Due Due AmountTotal Dues
@php(printf('CID%04d', $r->id)) {{ $r->userid }} {{ $r->clients_name ?? '' }} {{ $r->contact_no ?? '' }} @if (!empty($r->area)) Area : {{ $r->area ?? '' }}. @endif @if (!empty($r->block_sector)) Block/Sector : {{ $r->block_sector ?? '' }}. @endif @if (!empty($r->road_name)) R Name : {{ $r->road_name ?? '' }}. @endif @if (!empty($r->road_no)) R No : {{ $r->road_no ?? '' }}. @endif @if (!empty($r->building_name)) B Name : {{ $r->building_name ?? '' }}. @endif @if (!empty($r->building_no)) B No : {{ $r->building_no ?? '' }}. @endif @if (!empty($r->flat_no)) F No : {{ $r->flat_no ?? '' }}. @endif @if (!empty($r->owner_name)) H O : {{ $r->owner_name ?? '' }}. @endif @if (!empty($r->box)) Box : {{ $r->box ?? '' }} @endif {{ $r->popname }} {{ $r->package_name }} {{ $r->billing_type }} @if ($r->billing_type == 'new') {{ date('d-M-Y', strtotime($r->created_at)) }} @else {{ date('d-M-Y', strtotime($r->due_date)) }} @endif @if ($r->dueAmount - $r->package_rate > 0) {{ $r->dueAmount - $r->package_rate }} @else {{ 0 }} @endif {{ $r->dueAmount }} {{ $r->dueAmount - $r->totalPaid }}
@php(printf('CID%04d', $r->id)) {{ $r->userid }} {{ $r->clients_name ?? '' }} {{ $r->contact_no ?? '' }} @if (!empty($r->area)) Area : {{ $r->area ?? '' }}. @endif @if (!empty($r->block_sector)) Block/Sector : {{ $r->block_sector ?? '' }}. @endif @if (!empty($r->road_name)) R Name : {{ $r->road_name ?? '' }}. @endif @if (!empty($r->road_no)) R No : {{ $r->road_no ?? '' }}. @endif @if (!empty($r->building_name)) B Name : {{ $r->building_name ?? '' }}. @endif @if (!empty($r->building_no)) B No : {{ $r->building_no ?? '' }}. @endif @if (!empty($r->flat_no)) F No : {{ $r->flat_no ?? '' }}. @endif @if (!empty($r->owner_name)) H O : {{ $r->owner_name ?? '' }}. @endif @if (!empty($r->box)) Box : {{ $r->box ?? '' }} @endif {{ $r->popname }} {{ $r->package_name }} {{ $r->billing_type }} @if ($r->billing_type == 'new') {{ date('d-M-Y', strtotime($r->created_at)) }} @else {{ date('d-M-Y', strtotime($r->due_date)) }} @endif @if ($r->dueAmount - $r->package_rate > 0) {{ $r->dueAmount - $r->package_rate }} @else {{ 0 }} @endif {{ $r->dueAmount }} {{ $r->dueAmount - $r->totalPaid }}
Total Due Amount BDT {{ $total }}
@endforeach @endif