@php $primary = $setting?->primary_color ?: '#124a61'; $accent = $setting?->accent_color ?: '#2e86ab'; $companyName = $setting?->company_name ?: $job->team?->name; $logoUrl = $setting?->logoSrc(); $dims = [ 'rating_quality' => __('Quality'), 'rating_turnaround' => __('Turnaround'), 'rating_service' => __('Service'), ]; $awaiting = $proofs->filter->awaitsClientDecision(); // Livewire exposes public properties to the view; pull the three ratings into // one map so the star loop can read them by key without variable-variables. $current = [ 'rating_quality' => $rating_quality, 'rating_turnaround' => $rating_turnaround, 'rating_service' => $rating_service, ]; @endphp
{{-- Branded header --}}
@if ($logoUrl) {{ $companyName }} @endif

{{ $companyName }}

{{ __('Your order') }}

{{ $job->job_number }}

{{ $job->title }}

@if ($qualityAssured) {{ __('Quality Assured') }} @endif
@if ($banner)
{{ $banner }}
@endif {{-- ===================== PROOFS AWAITING SIGN-OFF ===================== --}} @if ($awaiting->isNotEmpty())

{{ trans_choice('{1}Please check this proof|[2,*]Please check these proofs', $awaiting->count()) }}

{{ __('We will not go to print until you are happy.') }}

@foreach ($awaiting as $proof)
{{ $proof->extension_label }} {{ $proof->original_name }} {{ __('Tap to open') }} · {{ $proof->human_size }} @if ($changesFor === $proof->id)
@error('changesComment')

{{ $message }}

@enderror
@else
@endif
@endforeach
@endif {{-- ============================== PROGRESS ============================== --}}

{{ __('Progress') }}

    @foreach ($journey as $step)
  1. @if ($step['state'] === 'done') @else @endif @unless ($loop->last) @endunless

    {{ $step['label'] }}

    {{ $step['date'] ? $step['date']->format('M j, Y') : ($step['state'] === 'current' ? __('In progress') : __('Pending')) }}

  2. @endforeach
{{-- ============================ YOUR ORDER ============================ --}} @if ($job->lineItems->isNotEmpty())

{{ __('Your order') }}

    @foreach ($job->lineItems as $line)
  • {{ $line->product?->name ?? $line->name }} {{ rtrim(rtrim(number_format((float) $line->qty, 2), '0'), '.') }}
  • @endforeach
@endif {{-- ============================== ARTWORK ============================== --}}

{{ __('Your artwork') }}

{{ $canUpload ? __('Send us the files for this order. You can add more at any time while we are working.') : __('These are the files you sent us for this order.') }}

@if ($canUpload)
{{-- Straight to the camera on a phone, for a site photo or a sign to match. --}}
@endif @if ($myFiles->isNotEmpty()) @elseif (! $canUpload)

{{ __('No files were sent through this page.') }}

@endif
{{-- ====================== PROOFS ALREADY ANSWERED ====================== --}} @php $answered = $proofs->reject->awaitsClientDecision(); @endphp @if ($answered->isNotEmpty())

{{ __('Proofs') }}

    @foreach ($answered as $proof)
  • {{ $proof->original_name }} @if ($proof->proof_status === \App\Models\JobAttachment::PROOF_APPROVED) {{ __('You approved this') }} @else {{ __('Changes requested') }} @endif
    @if ($proof->proof_comment)

    {{ $proof->proof_comment }}

    @endif
  • @endforeach
@endif {{-- ============================ CERTIFICATE ============================ --}} @if ($qualityAssured) @endif {{-- ============================== FEEDBACK ============================== --}} @if ($canRate)

{{ __('How did we do?') }}

@if ($feedback?->submitted_at)

{{ __('Thank you, you rated this order on :date.', ['date' => $feedback->submitted_at->format('M j, Y')]) }}

@foreach ($dims as $key => $label)
{{ $label }}
{{ $feedback->{$key} ? str_repeat('★', (int) $feedback->{$key}).str_repeat('☆', 5 - (int) $feedback->{$key}) : '—' }}
@endforeach
@if ($feedback->comment)
{{ $feedback->comment }}
@endif @if ($reviewOffer)

{{ __('If you have a moment, a Google review helps other people find us.') }}

@elseif ($reviewWithheld)

{{ __('We are sorry this was not what you hoped for. Someone from the team will follow up.') }}

@endif @else

{{ __('Your rating goes straight to our management team. It takes a minute.') }}

@foreach ($dims as $key => $label)
@foreach (range(1, 5) as $n) @endforeach
@endforeach
@error('comment')

{{ $message }}

@enderror
@endif
@endif

{{ __('This page is private to you. Keep the link to check back at any time.') }}