@extends('layouts.app', [ 'title' => 'Halaman Data Pelanggan' ]) @section('content')
| # | No Pelanggan | Status | Nama Pelanggan | Paket Internet | Aksi |
|---|---|---|---|---|---|
| {{ $loop->iteration }} | @if(!empty($client->kode_atv)) {{ $client->no_pelanggan }} @else {{ $client->no_pelanggan }} @endif | {{ $client->stats->nama_stats ?? '-' }} | {{ $client->name }} | @php $pkgId = $client->internet_package->id ?? 0; $badgeColor = 'bg-gray-100 text-gray-800'; if ($pkgId == 1) $badgeColor = 'bg-amber-100 text-amber-800'; elseif (in_array($pkgId, [2, 5])) $badgeColor = 'bg-cyan-100 text-cyan-800'; elseif (in_array($pkgId, [3, 6])) $badgeColor = 'bg-indigo-100 text-indigo-800'; elseif (in_array($pkgId, [4, 7])) $badgeColor = 'bg-emerald-100 text-emerald-800'; elseif (in_array($pkgId, [8, 9, 10, 11, 12])) $badgeColor = 'bg-red-100 text-red-800'; @endphp {{ $client->internet_package->name ?? '-' }} - {{ indonesian_currency($client->internet_package->price ?? 0) }} |