@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
{{ $client->user->getFullName() }} {{ $client->organisation->company->name ?? 'N/A' }} {{ $client->user->email }} {{ $client->contact_number }} {{ Form::open([ 'route' => [ 'clients.destroy', $client->id ], 'method' => 'DELETE', 'class' => 'd-inline-block' ]) }} {{ Form::close() }} {{ Form::open([ 'route' => [ 'clients.archived.destroy', $client->id ], 'method' => 'DELETE', 'class' => 'd-inline-block' ]) }} {{ Form::close() }} View
There are no archived clients
{{ $clients->links() }} @includeWhen(!auth()->user()->hasRole('agent'), 'partials.cancel-modal') @endsection