@extends('layouts.app') @section('content')
@include('partials.job-header', [ 'job' => $translatorJob, 'type' => 'translator-jobs' ])
@if ($unmatchedAgents->isNotEmpty()) {{ Form::label('unmatchedAgentsSelect', 'Search agent by name:', [ 'class' => 'big-label d-block mb-3' ]) }} {{ Form::open([ 'route' => ['translator-jobs.matched.store', $translatorJob] ]) }} {{ Form::select('agent_id', $unmatchedAgents, null, [ 'class' => 'input input--select form__input', 'id' => 'unmatchedAgentsSelect', 'placeholder' => 'Select an agent...', ]) }} {{ Form::close() }} @else

There are no other matched agents for this job

@endif

List of notified agents

@forelse ($matchedAgents as $matchedAgent) @can('assign', $translatorJob) @endcan @empty @endforelse
Name Amount Description Status
{{ $matchedAgent->agent->user->getFullName() }} {{ optional($matchedAgent->latestQuote())->cost ? '£' . $matchedAgent->latestQuote()->cost : '...' }} {{ optional($matchedAgent->latestQuote())->cost_description ? $matchedAgent->latestQuote()->cost_description : '...' }} {{ $matchedAgent->status }} @if ($matchedAgent->cancellation) Agent Cancellation @endif @if ($matchedAgent->canBeAssigned()) {{ Form::open([ 'method' => 'PUT', 'route' => [ 'translator-jobs.matched.update', $translatorJob->id, $matchedAgent->id ], 'class' => 'd-inline-block' ]) }} {{ Form::submit('Assign', [ 'class' => 'btn btn--secondary btn--small' ]) }} {{ Form::close() }} @endif @if ($matchedAgent->canBeCancelled()) {{ Form::open([ 'method' => 'DELETE', 'route' => [ 'translator-jobs.matched.destroy', $translatorJob->id, $matchedAgent->id ], 'class' => 'd-inline-block' ]) }} {{ Form::submit('Cancel', [ 'class' => 'btn btn--delete btn--small', 'onclick' => "return confirm('Are you sure you want to cancel this job?')" ]) }} {{ Form::close() }} @endif
No agents have been notified for this job.
@endsection