{{-- Author By : zulfazdliabuas@gmail.com | Date : 2026 --}} @push('styles') @endpush
@php $viewer = auth()->user(); $canManageCustomers = $viewer?->hasAnyRole(['admin', 'ao', 'spv']) ?? false; @endphp

Customers

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
@if($canManageCustomers) @endif Export Excel
@forelse($customers as $customer) @empty @endforelse
No Customer Type ID / TIN Contact Usage Actions
{{ $loop->index + 1 }} @if($canManageCustomers) {{ $customer->name }} @else
{{ $customer->name }}
@endif @if($customer->attention_to)
Attention: {{ $customer->attention_to }}
@endif
{{ ucfirst($customer->customer_type) }}
{{ $customer->ic_passport ?: '-' }}
TIN: {{ $customer->tin_no ?: '-' }}
{{ $customer->email ?: '-' }}
{{ $customer->phone ?: '-' }}
@if($customer->fax_no)
Fax: {{ $customer->fax_no }}
@endif
{{ $customer->subscriptions_count }} subscription(s)
@if($canManageCustomers)
@csrf @method('delete')
@endif
No customers.
@if($canManageCustomers) @foreach($customers as $customer) @endforeach @endif @push('scripts') @endpush