@extends('user.layouts') @section('title', 'All Agents') @section('header') {{-- ========================================================= DATATABLE CSS ========================================================== --}} @endsection @section('content')
| SN | NAME | PHONE NO | AGENT CODE | TYPE | BUSINESS | STATUS | {{-- Registration date & time --}}REGISTERED ON | ACTION |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- ================================================= NAME ================================================== --}}
{{ $initial }}
{{ $user->name ?? '-' }} {{ $user->phone_number ?? '-' }} |
{{-- =================================================
PHONE
================================================== --}}
{{ $user->phone_number ?? '-' }} | {{-- ================================================= AGENT CODE ================================================== --}}{{ $user->agent_code ?? '-' }} | {{-- ================================================= REGISTRATION TYPE ================================================== --}}@if ($isSelfRegistration) Self registration @else Agent registration @endif | {{-- ================================================= BUSINESS ================================================== --}}@if (!$hasBusiness) Not Registered @else View Business {{-- Hidden searchable text --}} Registered @endif | {{-- ================================================= ACCOUNT STATUS ================================================== --}}@if ($isBlocked) Blocked @else Active @endif | @php $registeredAt = $user->created_at ? $user->created_at->copy()->timezone('Asia/Kolkata') : null; @endphp
@if ($registeredAt)
{{ $registeredAt->format('d-m-Y') }}
{{ $registeredAt->format('h:i A') }} IST
|
{{-- =================================================
ACTION
================================================== --}}
@if ($isBlocked) Unblock @else Block @endif |