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

Client List

{{-- Show Messages --}} @if (session()->has('success'))
@endif @if (session()->has('error'))
@endif {{-- Client List Table --}}
@forelse($clients as $client) @php $decision_maker = 'Not Available'; if (!empty($client->d_maker_name)) { $decision_maker = $client->d_maker_name; } if (!empty($client->d_maker_email)) { $decision_maker .= ' / ' . $client->d_maker_email; } if (!empty($client->d_maker_phone)) { $decision_maker .= ' / ' . $client->d_maker_phone; } @endphp @empty @endforelse
Client Id Client Name Department Name Address Decision Maker Added By Added On Action
{{ $client->id }} {{ $client->client_name }} {{ $client->department_name }} {{ $client->company_address }} {{ $decision_maker }} {{ $client->user ? $client->user->first_name . ' ' . $client->user->last_name : '' }} {{ date('jS F, Y', strtotime($client->created_at)) }}
No Record Found
{{-- Pagination --}}
{{ $clients->links() }}
@endsection @section('script') @endsection