@php $brand = $this->brandName; $customer = $this->customer; $billing = $this->billing; $package = $this->package; $due = (float) ($billing->due_amount ?? 0); @endphp

{{ Str::upper($brand) }}

{{-- ---------- Find the account ---------- --}} @if ($screen === 'find')

Pay your internet bill

Enter your account number or the phone number on your account.

@if ($error)
{{ $error }}
@endif
☏
{{-- ---------- Confirm and pay ---------- --}} @elseif ($screen === 'confirm' && $customer)

{{ $customer->customer_name ?: 'Your account' }}

{{ $customer->customer_unique_id }}

@if ($error)
{{ $error }}
@endif
📶 YOUR PLAN {{ $package?->package ?: 'Internet' }} @if ($due > 0) Outstanding balance @elseif ($billing?->auto_disable_date) Paid up to {{ \Carbon\Carbon::parse($billing->auto_disable_date)->format('j M Y') }} @else Paid up @endif KSH {{ number_format($due > 0 ? $due : (float) ($package->price ?? 0)) }}
💳
☏

You'll get a payment prompt on your phone. Enter your M-Pesa PIN to authorise. Paying your full balance keeps you connected for another 30 days.

{{-- ---------- Waiting for the PIN prompt ---------- --}} @elseif ($screen === 'waiting')
Check your phone

Enter your M-Pesa PIN to authorise Ksh {{ number_format((float) $amount) }}.

Do not close this page.

{{-- ---------- Done ---------- --}} @elseif ($screen === 'done')
✓
Payment received

@if ($billing && (float) $billing->due_amount > 0) Thank you. Ksh {{ number_format((float) $billing->due_amount) }} is still outstanding. @elseif ($billing?->auto_disable_date) Thank you. You are paid up to {{ \Carbon\Carbon::parse($billing->auto_disable_date)->format('j M Y') }}. @else Thank you. @endif

{{-- A line cut off for non-payment is switched back on as part of settling, but a router that was unreachable at that moment leaves it to the nightly sweep — so promise a few minutes rather than "immediately". --}}

If your connection was suspended it will come back within a few minutes. Restart your router if it does not.

@endif

Powered by {{ \App\Models\MainSiteData::getValue('site_name') ?: 'Bilipoa' }}