@extends('layout.app') @php use Carbon\Carbon; @endphp @section('content') {{-- @dd($list) --}} @foreach ($list as $r)
@if (checkSettings('profilePicture') == 'enable')
@if ($r->profilePicture != null) No Image @else
@endif
@endif
@if (checkSettings('show-traffice') == 'enable' && $r->client_approval != 'pending') Show Speed @endif
{{--
--}}
@if ($customer_account > 0) @can('mac-customer_destroy')
@method('DELETE') @csrf
@endcan @endif

Service Information

@if (!$r->isStatic) @else @endif @if (!$r->isStatic) @endif @if ($r->sub_package_name != null && $r->subreseller == 'yes') @else @endif
Pop Name {{ $r->popname }} Billing Cycle {{ $r->billing_cycle }}
User Name {{ $r->userid }} IP Address {{ $r->ip_address }} Password {{ $r->password }}
Package Name {{ $r->sub_package_name }} @can('show-mother-package')
{{ $r->package_name }} @endcan
{{ $r->package_name }}Expired Date {{ $r->expire_date ?? '' }}
Enable MAC {{ $r->mac ?? '' }} Slug {{ $r->slug ?? '' }}
@if (checkSettings('profilePicture') == 'enable') No Image No Image @endif

Personal Information

Client Name {{ $r->clients_name }} Date Of Birth @if ($r->dob) {{ date('d-M-Y', strtotime($r->dob)) }} @endif
Contact No {{ $r->contact_no ?? '' }} Email {{ $r->email ?? '' }}
Father Name {{ $r->father_name ?? '' }} Mother Name {{ $r->mother_name ?? '' }}
National ID {{ $r->national_id ?? '' }} Passport No {{ $r->passport_no ?? '' }}
@if (checkSettings('profilePicture') == 'enable') No Image No Image @endif

Address

Road No {{ $r->road_no ?? '' }} Road Name {{ $r->road_name ?? '' }}
Flat/Level No {{ $r->flat_no ?? '' }} Building No {{ $r->building_no ?? '' }}
Building Name {{ $r->building_name ?? '' }} Block/Sector {{ $r->block_sector ?? '' }}
Latitude {{ $r->client_latitude ?? '' }} Longitude {{ $r->client_longitude ?? '' }}
Area {{ $r->area ?? '' }}

Connection Info

@if ($r->bill_generate == 'yes') @endif @if (auth()->user()->hasRole('Reseller Admin')) @elseif(auth()->user()->hasRole('Sub Reseller')) @else @if ($r->marketed_by == 0) @else @php $m = App\Models\ClientReferer::where( 'id', $r->marketed_by, )->first(); @endphp {{-- --}} @endif @endif
Cable type {{ $r->cable_type ?? '' }} Cable Length(Meter) {{ $r->required_cable ?? '' }}
Cable ID {{ $r->cable_id ?? '' }} Cable Type(CAT5/CAT6) {{ $r->cat_type ?? '' }}
Cable(CAT-5/CAT-6) Length(Meter) {{ $r->cat_length ?? '' }} ONU MAC/Pon No/Serial No {{ $r->onu_serial ?? '' }}
OLT No {{ $r->olt_pon }} OLT Card Slot Number {{ $r->olt_no }}
PON Module Port No {{ $r->pon_port }} Box {{ $r->box }}
Connection Date : CD: {{ date('d-M-Y h:i:sa', strtotime($r->created_at)) }}
@if ($r->joinDate) JD: {{ date('d-M-Y', strtotime($r->joinDate)) }} @endif
Marketed ByNo Marketing{{ $m->firstname ?? '' }} {{ $m->lastname ?? '' }}{{ $r->clientReferer->firstname ?? '' }}
Remarks {{ $r->remarks ?? '' }} {{-- @can('new-customer-approve') @endcan --}} @php($permissions = userPermissions()) @if (checkSettings('local-user-first-approve') == 'enable') @if (in_array('local-user-first-approve', $permissions)) @if ($r->first_approval == 'Pending')
@csrf @method('post')
@endif @elseif (in_array('new-customer-approve', $permissions)) @if ($r->client_approval == 'pending')
@csrf @method('post')
@endif @endif @else @if (in_array('new-customer-approve', $permissions)) @if ($r->client_approval == 'pending')
@csrf @method('post')
@endif @endif @endif
{{-- @if ($customer_account > 0) @can('mac-customer_destroy')
@method('DELETE') @csrf
@endcan @endif --}}
@if (checkSettings('show-traffice') == 'enable' && $r->client_approval != 'pending')

Last session details


Last Link Up Time: {{ $bandwidthUsage ? parseDate($bandwidthUsage['last-link-up-time']) : '-1' }}
Last Logout Time: {{ $lastLogoutTime ? parseDate($lastLogoutTime) : '-1' }}
Download: {{ number_format(($bandwidthUsage ? $bandwidthUsage['tx-byte'] : 0) / 1073741824, 2, '.', '') }} GB
Upload: {{ number_format(($bandwidthUsage ? $bandwidthUsage['rx-byte'] : 0) / 1073741824, 2, '.', '') }} GB
@endif
@if (globalPermission('onu_information_laser')) @can('onu_information_laser')
ONU Information
OLT: {{ $onuInfo->oltaddress ?? '-' }} - {{ $onuInfo->oltName ?? '-' }} ONU Id: {{ $onuInfo->onuid ?? '-' }}
Power(Laser): {{ $onuInfo->laser ?? '-' }} Update: {{ isset($onuInfo->updated_at) ? Carbon::parse($onuInfo->updated_at)->format('d-m-Y h:i A') : '-' }}
PON ID, Vlan: {{ $onuInfo->interface ?? '-' }}, {{ $onuInfo->Vlan ?? '-' }} Device Mac: {{ strtoupper(implode(':', str_split($onuInfo->mac ?? null, 2))) ?? '-' }}
@endcan @endif @endforeach @endsection @section('ajax') @endsection