@php use App\Support\SiteFormat; /** @var \App\Models\Station $station */ $prices = $station->current_prices ?? []; $compact = $compact ?? false; $shown = $highlightFuelId ? collect($fuels)->where('id', $highlightFuelId)->values() : collect($fuels)->whereIn('code', $compact ? ['gasoline_95', 'diesel'] : ['gasoline_95', 'gasoline_98', 'diesel'])->values(); $brandName = $station->countryBrand?->local_name ?: $station->countryBrand?->brand?->name; $distance = $station->getAttribute('distance_m'); $updated = collect($prices)->max('reported_at'); @endphp @unless ($compact)@endunless {{ $station->name }} @if ($brandName){{ $brandName }}@endif @if ($station->address){{ $station->address }}@endif @if ($distance !== null){{ __('site.stations.distance', ['km' => number_format($distance / 1000, 1)]) }}@endif @forelse ($shown as $fuel) {{ __('site.fuel_short.' . $fuel['code']) }} {{ SiteFormat::price($prices[$fuel['id']]['price'] ?? null) }} @empty {{ __('site.station.no_prices') }} @endforelse @include('site.partials.fav-button', ['id' => $station->id, 'slug' => $station->slug, 'size' => 'sm'])