@extends('layouts.app') @section('content') @include('agents.partials.nav') @include('agents.partials.filter')
@forelse ($agents as $agent) @empty @endforelse
Agent Name Agent type Email Contact Number Languages No. of DNAs No. of Late Arrivals
{{ $agent->user->getFullName() }} {{ $agent->getAgentType() }} {{ $agent->user->email }} {{ $agent->contact_number }} {{ implode(', ', $agent->languages->pluck('name')->all()) }} 0 0 {{ Form::open([ 'route' => [ 'agents.destroy', $agent->id ], 'method' => 'DELETE', 'class' => 'd-inline-block' ]) }} {{ Form::close() }} {{ Form::open([ 'route' => [ 'agents.archived.destroy', $agent->id ], 'method' => 'DELETE', 'class' => 'd-inline-block' ]) }} {{ Form::close() }} View
There are no archived agents
{{ $agents->links() }} @endsection