@extends('layouts.app') @section('content') @include('clients.partials.nav') @include('clients.partials.filter')
@forelse ($clients as $client) @empty @endforelse
Client Name Company Name Email Contact Number Active Jobs
{{ $client->user->getFullName() }} {{ $client->organisation->company->name ?? 'N/A' }} {{ $client->user->email }} {{ $client->contact_number }} {{ $client->interpreterJobs->count() + $client->translatorJobs->count() }} {{ Form::open([ 'route' => [ 'clients.archived.update', $client->id ], 'method' => 'PUT', 'class' => 'd-inline-block' ]) }} {{ Form::close() }} @if ($client->organisation) Edit @else Edit @endif Login As {{ $client->show_agents ? 'Disallow Agents' : 'Allow Agents' }}
There are no active clients
{{ $clients->appends(request()->all())->links() }} @includeWhen(!auth()->user()->hasRole('agent'), 'partials.cancel-modal') @endsection