@php $totalCustomers = $customers->count(); $totalUmum = $customers->where('member_type', 'umum')->count(); $totalInstansi = $customers->where('member_type', 'studio')->count(); $memberTypeLabel = 'Semua'; if (request('member_type') === 'umum') { $memberTypeLabel = 'Umum'; } elseif (request('member_type') === 'studio') { $memberTypeLabel = 'Instansi'; } $shopName = $shopName ?? \App\Models\Setting::getShopName(); $shopAddress = $shopAddress ?? \App\Models\Setting::getShopAddress(); $shopLogo = $shopLogo ?? \App\Models\Setting::getShopLogo(); @endphp
@if($shopLogo ?? false) {{ $shopName }} @endif

{{ $shopName }}

@if($shopAddress)

{{ $shopAddress }}

@endif

DAFTAR INSTANSI / PELANGGAN

Pencarian: {{ request('search') ?: 'Semua' }} | Jenis: {{ $memberTypeLabel }}
Total Data
{{ number_format($totalCustomers) }}
Umum
{{ number_format($totalUmum) }}
Instansi
{{ number_format($totalInstansi) }}
@forelse($customers as $index => $customer) @empty @endforelse
No Instansi / Pelanggan Jenis No. HP Kontak / PIC NPWP Email Alamat
{{ $index + 1 }} {{ $customer->name }} @if($customer->member_type === 'studio') Instansi @else Umum @endif {{ $customer->phone ?? '-' }} {{ $customer->contact_person ?? '-' }} {{ $customer->npwp ?? '-' }} {{ $customer->email ?? '-' }} {{ $customer->address ?? '-' }}
Tidak ada data pelanggan