@if(!$customer)

Customer Profile Not Found

Your PPPoE account is active, but it is not linked to a customer profile. Please contact support to complete your profile.

@else {{-- Review system banner alerts --}} @if(session()->has('review_success'))
{{ session('review_success') }}
@endif @if(session()->has('review_error'))
{{ session('review_error') }}
@endif {{-- Persistent Review Prompt on Dashboard --}} @if(!$existingReview)

Help Us Improve!

Share your experience and give us a review to improve our service.

@elseif($existingReview && $existingReview->edit_count < 2)

Your Feedback is Valuable

You have already submitted a review. You can edit it up to 2 times (Remaining edits: {{ 2 - $existingReview->edit_count }}).

@endif

Welcome, {{ $customer->customer_name }}!

Manage your connection, view detailed billing records, and settle invoices online securely.

A/C: {{ $customer->customer_unique_id }} @if($connectionStatus === 'checking...') Line: Checking... @elseif($connectionStatus === 'online') Line: Online @elseif($connectionStatus === 'offline') Line: Offline @else Line: Unknown @endif @if($dueAmount > 0) {{-- Credit-card icon --}} {{-- Pulsing red dot --}} @endif
Current Package {{ $customer->pppUser?->profile ?? 'N/A' }} @if($customer->package?->speed) Speed: {{ $customer->package->speed }} @endif
Monthly cost Ksh {{ number_format($billing->monthly_rent ?? 0, 2) }} Billing: {{ ucfirst($billing->billing_type ?? 'Prepaid') }}
Current Due Ksh {{ number_format($dueAmount, 2) }} @if($dueAmount > 0) Unpaid Balance @else No Arrears @endif

Profile Details


Full Name {{ $customer->customer_name ?? 'N/A' }}
PPPoE Username {{ $customer->pppUser?->username ?? 'N/A' }}
@if($customer->parents_name)
Father's Name {{ $customer->parents_name }}
@endif @if($customer->contact_person)
Contact Person {{ $customer->contact_person }}
@endif
Contact Mobile {{ $customer->mobile ?? 'N/A' }}
Email Address {{ $customer->email ?? 'N/A' }}
Connection Date {{ $customer->connection_date ? \Carbon\Carbon::parse($customer->connection_date)->format('d M, Y') : 'N/A' }}
@if($customer->pppUser?->router_name)
MikroTik Router {{ $customer->pppUser->router_name }}
@endif
Billing Address @php $addrParts = []; if ($customer->customerAddress) { foreach ($customer->customerAddress as $addr) { $parts = array_filter([$addr->input_type_text, $addr->input_type_dropdown, $addr->input_type_textarea]); $addrParts[] = implode(', ', $parts); } } $addressString = implode(' | ', $addrParts); @endphp {{ $addressString ?: 'N/A' }}

Recent Payments


@if(empty($recentPayments) || $recentPayments->isEmpty())
No payment history found.
@else
@foreach($recentPayments as $payment) @endforeach
Date Invoice No Method Amount
{{ \Carbon\Carbon::parse($payment->collection_date)->format('d M, Y') }} {{ $payment->invoice_no ?? 'N/A' }} {{ $payment->payment_method ?? 'Cash' }} Ksh {{ number_format($payment->collection_amount, 2) }}
@endif

Account Status


Next Expiration Date {{ $billing->auto_disable_date ? \Carbon\Carbon::parse($billing->auto_disable_date)->format('d F, Y') : 'N/A' }}
@php $daysLeft = $this->getDaysUntilExpiry(); @endphp @if($daysLeft !== null)
Remaining Validity {{ $daysLeft }} Days Left
@endif @if($dueAmount > 0)
Payment Outstanding! Please clear your outstanding balance of Ksh {{ number_format($dueAmount, 2) }} to maintain uninterrupted service.
@else
Account is in Good Standing All due amounts are cleared. Thank you for being with us!
@endif

Billing Breakdown


Monthly Plan Rent Ksh {{ number_format($billing->monthly_rent ?? 0, 2) }}
Previous Outstanding Due Ksh {{ number_format($billing->previous_due ?? 0, 2) }}
Additional Charges Ksh {{ number_format($billing->additional_charge ?? 0, 2) }}
Government Tax / VAT Ksh {{ number_format($billing->vat ?? 0, 2) }}
@if(($billing->discount ?? 0) > 0)
Discount Applied - Ksh {{ number_format($billing->discount, 2) }}
@endif @if(($billing->advance ?? 0) > 0)
Advance Balance - Ksh {{ number_format($billing->advance, 2) }}
@endif
Net Balance Due Ksh {{ number_format($dueAmount, 2) }}
@endif {{-- Custom Review Popup Modal --}} @if($showReviewModal)

{{ $existingReview ? 'Update Your Review' : 'We value your opinion!' }}

{{ __('Tell us how we can improve our service.') }}

{{-- Star Rating --}}
@for($i = 1; $i <= 5; $i++) @endfor
{{-- Comment Box --}}
@error('reviewComment') {{ $message }} @enderror
{{-- Actions --}}
@endif {{-- Javascript timer for 30 minutes review prompt --}} @if($timerRemainingMs > 0) @endif