@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'))
{{-- alert add item --}}
@if (session('messagesave'))
{{--
{{ session('message')}}
--}}
{{ session('messagesave') }}
@endif
{{-- alert delete item --}}
@if (session('messagedelete'))
{{ session('messagedelete') }}
{{--
{{ session('messagedelete')}}
--}}
@endif
{{-- alert update item --}}
@if (session('messageupdate'))
{{ session('messageupdate') }}
@endif
{{-- all clients --}}
@if (!empty($clients))
#Id |
Client Name |
Client Code |
Image |
Status |
Registered On |
Created By |
Action |
@foreach ($clients as $key => $client)
{{ $key + 1 ?? '' }} |
{{ $client->first_name ?? '' }} {{ $client->last_name ?? '' }}
{{ $client->other_names ?? '' }} |
{{ $client->client_code ?? '' }} |
|
{{ 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'))
@endif
|
{{-- view details modal --}}
{{-- end of view modal --}}
@endforeach
{{-- 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