@extends('includes.layouts.admin') @section('page-title') Agents List @endsection @section('content')

Agents List

{{-- --}}
{{--   --}}
{{-- --}} Clear  
@forelse ($users as $index => $user) @empty @endforelse
Serial No Name Agent Id Email Phone Number Joining Date Status Activate/Deactivate Details
{{ $index+$users->firstItem() }} {{ Str::title($user->name) }} {{ $user->agent_id }} {{ $user->email }} {{ ($user->country_code ? $user->country_code . "-" : '') . $user->phone }} {{ date('d-m-Y', strtotime($user->created_at)) }} @if ($user->status == 1) Active @else Inactive @endif
status ? 'checked' : '' }} id="customSwitch{{ $user->id }}" data-user="Agent " data-route="{{ route('admin.agent.updateStatus', $user->id) }}" >
No Record Found.
@if ($users->hasPages()) @endif
@if (Session::has('success'))
{{ Session::get('success') }}
@endif
@endsection @section('scripts') @include('admin.commonScript.script') @endsection