@extends('layout.app') @php use Carbon\Carbon; @endphp @push('styles') @endpush @section('content') @foreach ($list as $r)
@if (checkSettings('profilePicture') == 'enable' && $r->customer_profile_picture) @if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'customer_profile_picture/' . $r->customer_profile_picture, ); @endphp Profile @else Profile @endif @else
👤
@endif

{{ $r->clients_name }}

@if ($r->client_approval == 'approved') Active @else Pending @endif {{ $r->userid }} - Marketing Employee: {{ $r->marketing_employee_name ?? 'N/A' }} {{ $r->marketing_employee_phone ?? '' }}
Package {{ $r->package_name }}
Expire Date {{ $r->expire_date ?? 'N/A' }}
Contact {{ $r->contact_no }}
Pop {{ $r->popname }}
Back @if (checkSettings('show-traffice') == 'enable' && $r->client_approval != 'pending') @endif @if ($customer_account > 0) @can('mac-customer_destroy')
@method('DELETE') @csrf
@endcan @endif
@can('show-service-information')

Service Information

Pop Name
{{ $r->popname }}
Billing Cycle
{{ $r->billing_cycle }}
@if (!$r->isStatic)
Username
{{ $r->userid }}
Password
{{ $r->password }}
@else
IP Address
{{ $r->ip_address }}
@endif
Package
{{ $r->package_name }}
Expire Date
{{ $r->expire_date ?? 'N/A' }}
@if (globalPermission('free-day-to-create-customer'))
Free Day to Create Customer
{{ $r->free_day_to_create_customer ?? 'N/A' }}
@endif @if ($r->mac)
MAC Address
{{ $r->mac }}
@endif
@endcan @can('show-personal-information')

Personal Information

@if (checkSettings('profilePicture') == 'enable') @endif
Full Name
{{ $r->clients_name }}
Date of Birth
@if ($r->dob) {{ date('d-M-Y', strtotime($r->dob)) }} @else N/A @endif
Contact
{{ $r->contact_no ?? 'N/A' }}
Email
{{ $r->email ?? 'N/A' }}
Occupation
{{ $r->occupation ?? 'N/A' }}
Company Name
{{ $r->company_name ?? 'N/A' }}
Designation
{{ $r->designation ?? 'N/A' }}
Father's Name
{{ $r->father_name ?? 'N/A' }}
Mother's Name
{{ $r->mother_name ?? 'N/A' }}
National ID
{{ $r->national_id ?? 'N/A' }}
Passport No
{{ $r->passport_no ?? 'N/A' }}
@endcan @can('show-address-information')

Address Information

@if (checkSettings('profilePicture') == 'enable') @endif
Road Name
{{ $r->road_name ?? 'N/A' }}
Road No
{{ $r->road_no ?? 'N/A' }}
Building Name
{{ $r->building_name ?? 'N/A' }}
Building No
{{ $r->building_no ?? 'N/A' }}
Flat/Level No
{{ $r->flat_no ?? 'N/A' }}
Block/Sector
{{ $r->block_sector ?? 'N/A' }}
Area
{{ $r->area ?? 'N/A' }}
Coordinates
{{ $r->client_latitude ?? 'N/A' }}, {{ $r->client_longitude ?? 'N/A' }}
@endcan @can('show-connection-information')

Connection Information

Connection Date
{{ date('d-M-Y h:i A', strtotime($r->created_at)) }} @if ($r->joinDate)
Join: {{ date('d-M-Y', strtotime($r->joinDate)) }} @endif
Created By
@php $user = App\Models\User::withTrashed()->where('id', $r->created_by)->first(); @endphp {{ $user->name ?? 'N/A' }} @if ($user)
{{ $user->mobile_number ?? '' }} @endif
@if ($r->bill_generate == 'yes')
Cable Type
{{ $r->cable_type ?? 'N/A' }}
Cable Length
{{ $r->required_cable ?? 'N/A' }} m
Cable ID
{{ $r->cable_id ?? 'N/A' }}
ONU Serial
{{ $r->onu_serial ?? 'N/A' }}
OLT No
{{ $r->olt_pon ?? 'N/A' }}
OLT Card Slot
{{ $r->olt_no ?? 'N/A' }}
PON Port
{{ $r->pon_port ?? 'N/A' }}
@endif
Remote Access
{{ $r->remote_access == 'Yes' ? 'Enabled' : 'Disabled' }}
@if ($r->remote_access == 'Yes')
Remote Username
{{ $r->remote_access_username ?? 'N/A' }}
Remote Password
{{ $r->remote_access_password ?? 'N/A' }}
Remote Port
{{ $r->remote_access_port ?? 'N/A' }}
@endif @if ($r->remarks)
Remarks
{{ $r->remarks }}
@endif
@endcan
@if (checkSettings('show-traffice') == 'enable' && $r->client_approval != 'pending')
Session Details
Last Link Up
{{ $bandwidthUsage ? parseDate($bandwidthUsage['last-link-up-time']) : 'N/A' }}
Last Logout
{{ $lastLogoutTime ? parseDate($lastLogoutTime) : 'N/A' }}
Client MAC
{{ $activeClientInfo ? $activeClientInfo['caller-id'] : 'N/A' }}
Vendor
{{ $vendorName ?? 'N/A' }}
{{ number_format(($bandwidthUsage ? $bandwidthUsage['tx-byte'] : 0) / 1073741824, 2) }}
GB Downloaded
{{ number_format(($bandwidthUsage ? $bandwidthUsage['rx-byte'] : 0) / 1073741824, 2) }}
GB Uploaded
@endif @php($permissions = userPermissions()) @if (checkSettings('local-user-first-approve') == 'enable') @if (in_array('local-user-first-approve', $permissions) && $r->first_approval == 'Pending')
@csrf
@elseif (in_array('new-customer-approve', $permissions) && $r->client_approval == 'pending')
@csrf
@endif @else @if (in_array('new-customer-approve', $permissions) && $r->client_approval == 'pending')
@csrf
@endif @endif @if (globalPermission('onu_information_laser')) @can('onu_information_laser') @isset($onuInfo->laser)
ONU Information
OLT
{{ $onuInfo->oltaddress ?? 'N/A' }} - {{ $onuInfo->oltName ?? 'N/A' }}
Power (Laser)
{{ $onuInfo->laser ?? 'N/A' }}
PON ID / VLAN
{{ $onuInfo->interface ?? 'N/A' }} / {{ $onuInfo->Vlan ?? 'N/A' }}
Device MAC
{{ strtoupper(implode(':', str_split($onuInfo->mac ?? '', 2))) ?: 'N/A' }}
Last Update
{{ isset($onuInfo->updated_at) ? Carbon::parse($onuInfo->updated_at)->format('d-m-Y h:i A') : 'N/A' }}
@endisset @endcan @endif
@endforeach @endsection @push('js') @endpush @section('ajax') @endsection