@extends('site.layout')
@php
use App\Support\SiteFormat;
$brandName = $station->countryBrand?->local_name ?: $station->countryBrand?->brand?->name;
$brandSlug = $station->countryBrand?->brand?->slug;
$report = session('report');
$hours = $station->opening_hours;
$hoursText = is_array($hours) ? ($hours['raw'] ?? implode(', ', array_filter($hours, 'is_string'))) : $hours;
$amenities = collect($station->amenities ?? [])->filter(fn ($a) => is_string($a) && ! is_numeric($a))->values();
$quoted = collect($stationFuels)->filter(fn ($f) => $f['quote'] !== null);
@endphp
@section('title', __('site.meta.station_title', ['name' => $station->name]))
@section('description', __('site.meta.station_description', ['name' => $station->name, 'brand' => $brandName ?? '', 'address' => $station->address ?? '']))
@push('head')
@endpush
@section('content')
@if ($brandName){{ $brandName }}@endif
@if ($station->address){{ $station->address }}@endif
@if ($rating)
@include('site.partials.stars', ['value' => $rating['avg']]) {{ str_replace('.', $siteLocale === 'en' ? '.' : ',', (string) $rating['avg']) }} {{ trans_choice('site.review.count', $rating['count'], ['count' => $rating['count']]) }}
@else
{{ __('site.review.write') }}
@endif
@if ($hoursText)
{{ $hoursText === '24H' ? __('site.station.open_24h') : $hoursText }}
@endif
@if ($station->phone)
{{ $station->phone }}
@endif
{{ $station->name }}
{{ __('site.unit') }} · {{ __('site.board.note') }}
@endif{{ __('site.station.history_lead') }}
{{ __('site.review.lead') }}
{{ __('site.auth.login') }} · {{ __('site.review.login_hint') }}
@endauth @if ($reviews->isEmpty()){{ __('site.review.empty') }}
@else{{ $review->body }}
@endif{{ __('site.report.form_lead') }}
@if ($errors->hasAny(['photo', 'prices', 'prices.*', 'website']))