@extends('site.layout')
@php use App\Support\SiteFormat; @endphp
@section('title', __('site.brand.title', ['name' => $brandName]))
@section('description', __('site.brand.description', ['name' => $brandName, 'count' => $stations->count(), 'in' => $countryIn]))
@section('content')
{{ mb_strtoupper(mb_substr($brandName, 0, 1)) }}
{{ $brandName }}
{{ __('site.brand.stations', ['count' => $stations->count()]) }}@if ($byRegion->count() > 1) · {{ $byRegion->count() }} {{ __('site.station.region') }}@endif
@if ($chain)
@foreach ($fuels as $fuel)
@php $q = $chain['prices'][$fuel['id']] ?? null; @endphp
@if ($q)
{{ $fuel['label'] }}
{{ SiteFormat::price($q['price']) }}
@if (abs($q['max'] - $q['min']) > 0.0005){{ SiteFormat::price($q['min']) }} – {{ SiteFormat::price($q['max']) }}@else{{ __('site.brand.chain_price') }}@endif
@endif
@endforeach
{{ __('site.unit') }} · {{ __('site.board.note') }}
@endif
@foreach ($byRegion as $regionName => $group)
{{ $regionName }} {{ __('site.regions.stations', ['count' => $group->count()]) }}
@foreach ($group as $station)
@include('site.partials.station-card', ['station' => $station, 'fuels' => $fuels, 'highlightFuelId' => null])
@endforeach
@endforeach
@if ($mapPoints !== [])
@include('site.partials.map', ['points' => $mapPoints, 'zoom' => 7])
@endif
@endsection