@php($count = 0) Download CSV
@if ($deactive_log_check == true) @endif @foreach ($list as $r) @if ($deactive_log_check == false) clients_status == 'deactive') class="deactive" @endif> {{-- // for date range search // --}} @php($count++) @else @if (isset($deactive_users[$r->id])) @php($count++) clients_status == 'deactive') class="deactive" @endif> @endif @endif @endforeach
ID User name Status Expire Bill Info Package POP Name Contact User Info Last deactive date
CID: {{ $r->id }} @if (checkAPI() == false) Log @endif Details Stock Return {{ $r->userid }}
{{-- {{ $r->password }} --}} @if (in_array('view-client-password', userPermissions())) {{ $r->password }} @endif
@foreach ($con_history as $con) @if ($r->id == $con->client_id) {{ $con->created_at }} @endif @endforeach
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->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

{{ $deactive_users[$r->id]['created_at'] }}
@if (isset($deactive_users[$r->id]['user_id']) && $deactive_users[$r->id]['user_id'] != 1) By : {{ $user_list[$deactive_users[$r->id]['user_id']] }} @endif
@if ($r->deleted_at != null) @else @endif
Total Deactive Client: {{ $count }}
{{--
{{ $list->links() }}
--}}