@php $primary = $setting?->primary_color ?: '#124a61'; $accent = $setting?->accent_color ?: '#2e86ab'; $company = $setting?->company_name ?: __('Print Shop'); $logo = $setting?->logoSrc(); $money = fn ($n) => ($request->currency_code ?: 'USD') . ' ' . number_format((float) $n, 2); // The customer-facing journey, which differs by lane: a counter job is // printed and collected, a quote-lane enquiry is priced and sent. // 'cancelled' is handled separately below. $isQuoteLane = $request->isQuoteLane(); $flow = $isQuoteLane ? [ 'new' => __('Received'), 'quoting' => __('Being priced'), 'quoted' => __('Quote sent'), 'converted' => __('Accepted'), ] : [ 'new' => __('Received'), 'printing' => __('Printing'), 'ready' => __('Ready for collection'), 'completed' => __('Collected'), ]; $order = array_keys($flow); $currentIndex = array_search($request->status, $order, true); $currentIndex = $currentIndex === false ? 0 : $currentIndex; $cancelled = $request->status === 'cancelled'; @endphp {{-- Polls while there is anything left to happen. Fifteen seconds is chosen against the counter, not against the server: a customer waiting outside for a job that takes four minutes should not find out a quarter of an hour late, and a job that is already collected stops polling entirely ($live). --}}
{{ $company }}
{{ $request->intakeService?->name ?: __('Print request') }}
{{ __('Reference') }} {{ $request->reference }}
{{ __('No payment yet') }}
{{ __('We are pricing this now and will send you a quote. Nothing is booked in, and you owe nothing, until you accept it.') }}
{{ __('We will confirm your EcoCash payment shortly.') }}
@endif{{ __('You have :amt in saved change', ['amt' => $money($credit)]) }}
{{ __('Use it on your next print. Mention your phone number at the counter.') }}
{{ __('Keep this page to check your status. Screenshot the reference for the counter.') }}
{{ $isQuoteLane ? __('We keep your artwork while we work on your quote.') : __('Your uploaded files are automatically deleted 24 hours after submission.') }}