@extends('landing.layout') @section('content')

Cek Tagihan — {{ $company->name }}

{{-- Search Form --}}
@if(request('search')) @isset($customer) {{-- Customer Info Card --}}

Nama

{{ $customer->name }}

No. HP

{{ $customer->phone }}

Alamat

{{ $customer->address }}

Paket

{{ $customer->package->name ?? '-' }}

Status

@if($customer->status === 'active') Active @elseif($customer->status === 'suspended') Suspended @elseif($customer->status === 'isolated') Isolated @endif
{{-- Invoices Table --}} @isset($invoices) @if($invoices->count())
@foreach($invoices as $invoice) @endforeach
No. Invoice Periode Total Status Jatuh Tempo
{{ $invoice->invoice_number }} {{ $invoice->billing_period }} Rp {{ number_format($invoice->total_amount, 0, ',', '.') }} @if($invoice->status === 'paid') Paid @elseif($invoice->status === 'unpaid') Unpaid @elseif($invoice->status === 'overdue') Overdue @endif {{ \Carbon\Carbon::parse($invoice->due_date)->format('d M Y') }}
@else

Tidak ada tagihan ditemukan.

@endif @endisset @else

Pelanggan tidak ditemukan. Pastikan nomor HP atau ID yang dimasukkan sudah benar.

@endisset @endif

Untuk pembayaran, silakan hubungi kantor kami atau gunakan payment gateway yang tersedia.

@endsection