@extends('backend.layouts_backend.master2') @section('title') All Clients @endsection @section('content') {{-- header --}}

All Clients ({{ $clients_count ?? '0' }})

@if (Auth::user()->can('client-create')) @endif
{{-- end header --}} {{-- search form --}} @if (Auth::user()->can('search-clients-records'))
@csrf

Showing records of all clients registered 🚀


@endif {{-- end search form --}}
{{-- alert add item --}} @if (session('messagesave')) {{--
{{ session('message')}}
--}} @endif {{-- alert delete item --}} @if (session('messagedelete')) {{--
{{ session('messagedelete')}}
--}} @endif {{-- alert update item --}} @if (session('messageupdate')) @endif {{-- all clients --}} @if (!empty($clients))
@foreach ($clients as $key => $client) {{-- view details modal --}} {{-- end of view modal --}} @endforeach
#Id Client Name Client Code Image Status Registered On Created By Action
{{ $key + 1 ?? '' }} {{ $client->first_name ?? '' }} {{ $client->last_name ?? '' }} {{ $client->other_names ?? '' }} {{ $client->client_code ?? '' }} preview {{ get_status_message($client->client_status) ?? '' }} {{ short_date($client->created_at) ?? '' }} {{ get_user_fullname_temporary($client->created_by) ?? '' }}
@if (Auth::user()->can('client-show')) @endif @if (Auth::user()->can('client-edit')) @endif @if (Auth::user()->can('client-delete'))
@csrf @method('DELETE')
@endif


{{-- paginate --}}
{{ $clients->links('pagination::bootstrap-4') }}
@endif {{-- end all clients records --}} {{-- all clients --}}
@endsection @section('extra_scripts') {{-- search dynamic javascript --}} {{-- end of dynamic search javascript --}} @endsection