{{ __('ui.attraction_profile_title') }}
{{ $translation?->description ?: $translation?->summary ?: __('ui.attraction_description_empty') }}
@extends('layouts.app') @push('head') @endpush @php $park = $attraction->park; $translation = $attraction->translations->firstWhere('locale', app()->getLocale()) ?? $attraction->translations->firstWhere('locale', 'en'); $attractionName = $translation?->name ?: $attraction->official_name; $parkTranslation = $park->translations->firstWhere('locale', app()->getLocale()) ?? $park->translations->firstWhere('locale', 'en'); $parkName = $parkTranslation?->name ?: $park->official_name; $zoneTranslation = $attraction->zone?->translations?->firstWhere('locale', app()->getLocale()) ?? $attraction->zone?->translations?->firstWhere('locale', 'en'); $zoneName = $zoneTranslation?->name ?: $attraction->zone?->official_name; $live = $attraction->liveStatus; $liveFresh = (bool) ($liveInsight['is_fresh'] ?? false); $liveStatus = $liveInsight['status'] ?? 'unknown'; $displayWait = $liveInsight['display_wait_minutes'] ?? null; $waitKind = $liveInsight['wait_kind'] ?? 'unavailable'; $waitTrend = $liveInsight['trend'] ?? 'unknown'; $waitTrendDelta = $liveInsight['trend_delta_minutes'] ?? null; $singleRiderWait = $liveInsight['single_rider_wait_minutes'] ?? null; $liveObservedAt = $liveInsight['source_observed_at'] ?? $live?->fetched_at; $liveOpen = in_array($liveStatus, ['open', 'operating'], true); $liveClosed = in_array($liveStatus, ['down', 'closed', 'refurbishment'], true); $liveStatusLabel = match ($liveStatus) { 'open', 'operating' => __('ui.live_status_open'), 'down' => __('ui.live_status_down'), 'closed' => __('ui.live_status_closed'), 'refurbishment' => __('ui.live_status_refurbishment'), default => __('ui.live_status_unknown'), }; $typeLabel = ucfirst(str_replace('_', ' ', $attraction->attraction_type ?: 'attraction')); $catalogStatusLabel = ucfirst(str_replace('_', ' ', $attraction->status ?: __('ui.attraction_unknown'))); $parkLocation = collect([$park->city, $park->country?->official_name])->filter()->join(' · '); @endphp @section('title', $attractionName.' — Coaster World') @if($bannerUrl) @push('head') @endpush @endif @section('content') @if(session('community_photo_status') === 'submitted')
{{ $translation?->description ?: $translation?->summary ?: __('ui.attraction_description_empty') }}