@extends('layouts.master', ['title' => 'Clients']) @section('contents')

Client List

{{-- Show Messages --}}
@if (session()->has('success'))
@endif @if (session()->has('error'))
@endif
@forelse ($clients as $key => $client) @empty @endforelse
Sr No. Role Name/Email/Contact Created Date Recently Updated Date Status Action
{{ $loop->iteration }} {{ $client->user->role->role_name ?? null }} {{ $client->user->first_name }} {{ $client->user->last_name }} / {{ $client->user->email }} / {{ $client->user->phone }} {{ date('jS F, Y', strtotime($client->created_at)) }} {{ date('jS F, Y', strtotime($client->updated_at)) }} @if ($client->user->status == '1') {{ 'Active' }} @else {{ 'Inactive' }} @endif {{-- @if (auth()->user()->hasPermission('clients.edit')) --}} {{-- @endif --}} {{-- @if (auth()->user()->hasPermission('delete-user')) --}} {{-- @endif --}}
No Record Found
@endsection @section('script') @endsection