{{ __('Open Showcase') }}
@foreach ($metrics as $m)

{{ $m['label'] }}

{{ $m['value'] }}

{{ $m['sub'] }}
@endforeach

{{ __('Work') }}

{{ __('Newest first. Consent is recorded on the job, in its Showcase panel.') }}

@if ($jobs->isEmpty())
@if (trim($search) !== '') @else @endif
@else
@foreach ($jobs as $job) @php $cover = $service->cover($job); $counts = $contentCounts[$job->id] ?? ['published' => 0, 'planned' => 0]; $products = $job->lineItems->pluck('name')->filter()->unique()->take(3); @endphp
@if ($cover && $cover->is_image) {{ $cover->caption ?: $job->title }} @else @endif @if ($job->showcase_consent === true) {{ __('Cleared to show') }} @elseif ($job->showcase_consent === false) {{ __('Client declined') }} @else {{ __('Consent not recorded') }} @endif {{ trans_choice(':count file|:count files', $job->showcase_media_count, ['count' => $job->showcase_media_count]) }}

{{ $job->customer?->name ?? __('Client not recorded') }}

{{ $job->title ?: $job->job_number }}

{{ $products->isNotEmpty() ? $products->join(', ') : __('Products not listed') }}

{{ $job->job_number }} · {{ $job->completed_at ? __('Completed :date', ['date' => $job->completed_at->timezone(config('app.display_timezone'))->format('j M Y')]) : __('Not completed yet') }} @if ($counts['planned'] > 0) · {{ $counts['published'] > 0 ? trans_choice(':count case study published|:count case studies published', $counts['published'], ['count' => $counts['published']]) : __('Case study planned') }} @endif

@if ($job->showcase_consent === true) @endif @if ($canWrite && $job->showcase_consent !== false) {{ __('Plan a case study') }} @endif @if ($canOpenJobs) {{ $job->showcase_consent === null ? __('Record consent') : __('Open job') }} @endif
@endforeach
@endif @if ($jobs->hasPages())
{{ $jobs->links() }}
@endif
{{ __('Link to a pitch') }} @if ($pitchJob)

{{ __('Attach :work for :client to an open opportunity as proof of similar work. It appears on the opportunity\'s Files tab.', ['work' => $pitchJob->title ?: $pitchJob->job_number, 'client' => $pitchJob->customer?->name ?? __('a client')]) }}

@endif
@if ($showPitch && $opportunities->isEmpty())

{{ __('You have no open opportunities to attach it to.') }}

@endif
{{ __('Cancel') }} {{ __('Attach') }} {{ __('Attaching…') }}