@extends('studio.layout') @section('content') @php $staffPreview = $draft ?? false; $art = route($staffPreview ? 'studio.preview-art' : 'artwork', ['id' => $design->id, 'file' => basename($design->artwork_path ?? '') ?: 'unavailable.webp']); $number = new \NumberFormatter($locale, \NumberFormatter::DECIMAL); $sizeLabel = $number->format((float) $design->width_cm).' × '.$number->format((float) $design->height_cm); $labels = [ 'garment' => __('studio.garment_labels'), 'color' => __('studio.color_labels'), 'placement' => __('studio.placement_labels'), ]; @endphp
@if ($staffPreview)

{{ __('studio.draft') }} · {{ __('studio.return_admin') }}

@else {{ $design->collection->text('name') }} @endif

{{ $title }}

{{ $description }}

{{ __('studio.dimensions') }} {{ $sizeLabel }} {{ __('studio.centimeters') }}

@if ($templates && $design->artwork_path) @php($first = $templates[0]) @php($anchor = reset($first['placements']))

{{ __('studio.preview_heading') }}

@if (count($templates) > 1) @endif
@for ($slot = 0; $slot < 2; $slot++) @endfor

{{ $design->illustrative || collect($templates)->contains('illustrative', true) ? __('studio.illustrative') : __('studio.preview_note') }}

@else
@if ($design->artwork_path) {{ $title }} @endif

{{ __('studio.no_preview') }}

@endif
@endsection