@if ($type == 'interpreter-jobs') Interpreter job: {{ $job->toLanguage->name }} @else Translator job: {{ $job->toLanguage->name }} - {{ $job->fromLanguage->name }} @endif
{{ $job->reference }}

@unlessrole('agent')
{{ $job->statusName }} @if ($job->cancellation) Agent Cancellation @endif
@if ($job->canBeCompleted()) {{ Form::open([ 'method' => 'PUT', 'route' => ["$type.complete", $job], 'onsubmit' => 'return confirm("Are you sure you want to complete this job?")', 'class' => 'd-inline-block', ]) }} {{ Form::submit('Complete', ['class' => 'btn btn--primary px-4']) }} {{ Form::close() }} {{-- @elseif ($job->canBeCancelled()) --}} @role('client') @includeWhen($job->canBeCancelled(), 'partials.cancel-button', [ 'isWithin24Hours' => json_encode($job->isWithin24Hours()), 'route' => route("$type.cancel", $job->id), 'class' => 'btn btn--cancel w-50', ]) @else {{ Form::open(['route' => ["$type.cancel", $job->id], 'class' => 'w-50']) }} {{ Form::submit('Cancel', [ 'class' => 'btn btn--cancel w-100', 'onclick' => "return confirm('Are you sure you want to cancel this job?')", ]) }} {{ Form::close() }} @endrole @endif
@else
{{ $job->getStatusForAgent() ?? $job->statusName }} @if ($job->cancellation) Agent Cancellation @endif
@if ($job->matchedLoggedInAgent()->status == 'matched') @if ($type == 'translator-jobs' || ($type == 'interpreter-jobs' && $job->requiresQuote())) id) }}"> Quote Job @else {{ Form::open(['route' => ['interpreter-jobs.matched.update', $job->id], 'method' => 'PUT', 'class' => 'd-inline-block w-50']) }} {{ Form::close() }} @endif @endif
@endunlessrole
@include('partials.cancel-modal') @include('partials.message-modal')