@php $total = $deactiveCount + $deleteCount; @endphp Total Client: {{ $total }}
@foreach ($deactive as $r) clients_status == 'deactive') class="deactive" @endif> @endforeach @foreach ($delete as $r) clients_status == 'deactive') class="deactive" @endif> @endforeach {{-- --}}
ID User name Status Expire Bill Info Package POP Name Contact User Info
CID: {{ $r->id }} @if (checkAPI() == false) Log @endif Details {{ $r->userid }}
{{-- {{ $r->password }} --}}
BD: {{ date('d-M-Y', strtotime($r->expire_date)) }}
PD: {{ \Carbon\Carbon::parse($r->expire_date)->addDay($r->payment_dadeline)->format('d-M-Y') }}

B Cycle: {{ $r->billing_cycle }}
@if (isset($r->pop->bill_generate) && $r->pop->bill_generate == 'yes') B Amount: @role('Sub Reseller') @if ($r->pop->subreseller == 'yes') {{ $r->subpack->rate ?? 0 }} @else {{ $r->packages->package_rate }} @endif @else {{ $r->packages->package_rate }} @endrole
OTC : {{ $r->clientsinfo->otc ?? 0 }}
@if (isset($r->clientsinfo->otc_due)) @if ($r->clientsinfo->otc_due > 0) OTC Due: {{ $r->clientsinfo->otc_due ?? 0 }} @endif @endif @endif

@if ($r->pop->bill_generate == 'yes')

Due: {{ $r->customerAccount->dueAmount ?? 0 }}

@endif
@can('show-sub-package') {{ $r->subpack->name ?? '' }} @endcan @can('show-mother-package') {{ $r->packages->package_name ?? '' }} @endcan {{ $r->pop->popname ?? '' }} {{ $r->clientsinfo->clients_name ?? '' }} {{ $r->clientsinfo->contact_no ?? '' }}

@if ($r->clientsinfo->flat_no) Flat No: {{ $r->clientsinfo->flat_no ?? '' }}, @endif @if ($r->clientsinfo->building_name) Building Name: {{ $r->clientsinfo->building_name ?? '' }},
@endif @if ($r->clientsinfo->road_no) Road No: {{ $r->clientsinfo->road_no ?? '' }},
@endif @if ($r->clientsinfo->block_sector) Block/Sector: {{ $r->clientsinfo->block_sector ?? '' }}, @endif @if ($r->clientsinfo->area) Area : {{ $r->clientsinfo->area ?? '' }},
@endif @if ($r->clientsinfo->box) Box : {{ $r->clientsinfo->box ?? '' }},
@endif @if ($r->clientsinfo->client_latitude) Latitude : {{ $r->clientsinfo->client_latitude ?? '' }},
@endif @if ($r->clientsinfo->client_longitude) Longitude : {{ $r->clientsinfo->client_longitude ?? '' }} @endif

@if ($r->deleted_at != null) @else @endif
CID: {{ $r->id }} @if (checkAPI() == false) Log @endif Details {{ $r->userid }}
{{-- {{ $r->password }} --}}
BD: {{ date('d-M-Y', strtotime($r->expire_date)) }}
PD: {{ \Carbon\Carbon::parse($r->expire_date)->addDay($r->payment_dadeline)->format('d-M-Y') }}

B Cycle: {{ $r->billing_cycle }}
@if (isset($r->pop->bill_generate) && $r->pop->bill_generate == 'yes') B Amount: @role('Sub Reseller') @if ($r->pop->subreseller == 'yes') {{ $r->subpack->rate ?? 0 }} @else {{ $r->packages->package_rate }} @endif @else {{ $r->packages->package_rate }} @endrole
OTC : {{ $r->clientsinfo->otc ?? 0 }}
@if (isset($r->clientsinfo->otc_due)) @if ($r->clientsinfo->otc_due > 0) OTC Due: {{ $r->clientsinfo->otc_due ?? 0 }} @endif @endif @endif

@if ($r->pop->bill_generate == 'yes')

Due: {{ $r->customerAccount->dueAmount ?? 0 }}

@endif
@can('show-sub-package') {{ $r->subpack->name ?? '' }} @endcan @can('show-mother-package') {{ $r->packages->package_name ?? '' }} @endcan {{ $r->pop->popname ?? '' }} {{ $r->clientsinfo->clients_name ?? '' }} {{ $r->clientsinfo->contact_no ?? '' }}

@if ($r->clientsinfo->flat_no) Flat No: {{ $r->clientsinfo->flat_no ?? '' }}, @endif @if ($r->clientsinfo->building_name) Building Name: {{ $r->clientsinfo->building_name ?? '' }},
@endif @if ($r->clientsinfo->road_no) Road No: {{ $r->clientsinfo->road_no ?? '' }},
@endif @if ($r->clientsinfo->block_sector) Block/Sector: {{ $r->clientsinfo->block_sector ?? '' }}, @endif @if ($r->clientsinfo->area) Area : {{ $r->clientsinfo->area ?? '' }},
@endif @if ($r->clientsinfo->box) Box : {{ $r->clientsinfo->box ?? '' }},
@endif @if ($r->clientsinfo->client_latitude) Latitude : {{ $r->clientsinfo->client_latitude ?? '' }},
@endif @if ($r->clientsinfo->client_longitude) Longitude : {{ $r->clientsinfo->client_longitude ?? '' }} @endif

@if ($r->deleted_at != null) @else @endif
Total Deactive Client: {{$count}}