{{-- This is all Customer Page --}} @extends('layouts.vertical', ['title' => 'All Clients']) @push('head-script') @endpush @push('head-scriptTwo') @endpush @section('content')

All Customers

{{-- @can('add-customer') --}} Add Customer {{-- @endcan --}}
@if (session('msg')) @endif @foreach ($all_customers as $customer) @php $registered_by = App\Models\User::where('id', $customer->created_by)->first(); @endphp @endforeach
No. Name Username Phone Location Registered By Date Options
{{ $loop->iteration }} {{ $customer->first_name }} {{ $customer->last_name }}
{{ $customer->username ?? 'NOT AVAILABLE' }} {{ $customer->phone_number }} {{ $customer->region->name }} {{ $registered_by->fname }} {{ $registered_by->lname }} {{ $customer->created_at->format('d-M-Y') }} @can('view-customer-info') @endcan @can('delete-customer') @endcan @can('resend-credentials') @endcan
@endsection