{{-- 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') --}}
{{-- Public Sector --}} Add Customer
{{-- @endcan --}}
@if (session('msg')) @endif
@foreach ($customers as $customer) @php $registered_by = App\Models\User::where('id', $customer->created_by)->first(); @endphp @endforeach
No. Name Phone Location Registered By Date Options
{{ $loop->iteration }} {{ $customer->first_name }} {{ $customer->last_name }}
{{ $customer->phone_number }} {{ $customer->region->name }} {{ $registered_by->fname }} {{ $registered_by->lname }} {{ $customer->created_at->format('d/m/Y') }} @can('delete-customer') @endcan
@can('view-freelancer-customers')
@foreach ($freelancer_customers as $index => $customers) @if ($customers->isEmpty()) @else @foreach ($customers as $customer) @php $registered_by = App\Models\User::find($customer->created_by); @endphp @endforeach @endif @endforeach
No. Name Phone Location Registered By Date Options
No Customers Found
{{ $loop->iteration }} {{ $customer->first_name }} {{ $customer->last_name }}
{{ $customer->phone_number }} {{ $customer->region->name }} {{ $registered_by->fname }} {{ $registered_by->lname }} {{ $customer->created_at->format('d/m/Y') }} Edit Delete
@endcan
@endsection