@extends('layout.app') @php use Carbon\Carbon; @endphp @section('content') {{-- @dd($list) --}} @foreach ($list as $r)
@if (checkSettings('profilePicture') == 'enable')
@if ($r->profilePicture != null) @if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'customer_profile_picture/' . $r->customer_profile_picture, ); @endphp No Image @else No Image @endif @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
@can('show-service-information')

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 ?? '' }}
@endcan @can('show-personal-information')
@if (checkSettings('profilePicture') == 'enable') @if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'customer_agrement/' . $r->customer_agrement, ); @endphp No Image @else No Image @endif @if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'profilePicture/' . $r->profilePicture, ); @endphp No Image @else No Image @endif @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 ?? '' }}
@endcan @can('show-address-information')
@if (checkSettings('profilePicture') == 'enable') @if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url('picture/' . $r->picture); @endphp No Image @else No Image @endif @if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'client_door/' . $r->client_door, ); @endphp No Image @else No Image @endif @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 ?? '' }}
@endcan @can('show-connection-information')

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 @if (globalPermission('manage-line-man')) @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 }}
Remote Access : {{ $r->remote_access == 'Yes' ? 'Yes' : 'No' }} Remote Access Username : {{ $r->remote_access_username ?? '' }} Remote Access Password : {{ $r->remote_access_password ?? '' }} Remote Access Port : {{ $r->remote_access_port ?? '' }}
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
Created By : @php $user = App\Models\User::where( 'id', $r->created_by, )->first(); @endphp {{ $user->name ?? '' }} -- {{ $user->mobile_number ?? '' }}
Source Name : @php $source = App\Models\ClientSource::where( 'id', $r->source_name, )->first(); @endphp {{ $source->name ?? '' }} Marketed ByNo Marketing{{ $m->firstname ?? '' }} {{ $m->lastname ?? '' }}{{ $r->clientReferer->firstname ?? '' }}
Line Man : {{ $r->line_man_id ? App\Models\Employee::where('id', $r->line_man_id)->first()->name : 'No Line Man' }}
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 --}}
@endcan
@if (checkSettings('show-traffice') == 'enable' && $r->client_approval != 'pending')
Session Details
Last Link Up Time
{{ $bandwidthUsage ? parseDate($bandwidthUsage['last-link-up-time']) : '-1' }}
Last Logout Time
{{ $lastLogoutTime ? parseDate($lastLogoutTime) : '-1' }}
Client Mac Address
{{ $activeClientInfo ? $activeClientInfo['caller-id'] : '-1' }}
Vendor Name
{{ $vendorName ?? '-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') @isset($onuInfo->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))) ?? '-' }}
@endisset @endcan @endif @endforeach @endsection @section('ajax') @endsection