@extends('site.layout')
@php
use App\Support\SiteFormat;
$fuels = $board['fuels'];
$lowest = [];
foreach ($fuels as $fuel) {
$lowest[$fuel['id']] = collect($board['brands'])->min(fn ($b) => $b['prices'][$fuel['id']]['price'] ?? null);
}
$tableFuels = collect($fuels)->take(4);
$decimal = $siteLocale === 'en' ? '.' : ',';
$fuelCode = $selectedFuel['code'] ?? '';
$community = $board['community'];
$filterQuery = array_filter(['fuel' => $fuelCode, 'region' => $filters['region'], 'brand' => $filters['brand'], 'q' => $filters['q']]);
@endphp
@section('title', __('site.meta.home_title', ['in' => $countryIn]))
@section('description', __('site.meta.home_description'))
@push('head')
@endpush
@section('content')
{{-- Piyasa şeridi: yakıt başına ortalama, 30 günlük değişim, mini grafik --}}
@if ($board['summary'] !== [])
@endif
{{-- Harita çalışma alanı --}}
@if ($mapPoints !== [])
{{ __('site.home.legend_best') }}
{{ __('site.home.legend_crowd') }}
@else
{{ __('site.stations.empty') }}
@endif
{{-- Ketler ve maakonnad --}}
@if ($board['brands'] !== [] || $board['regions'] !== [])
@if ($board['brands'] !== [])
{{ __('site.home.chains_today') }}
{{ __('site.home.chains_note') }}
@endif
@if ($board['regions'] !== [])
@php $regionFuels = collect($fuels)->whereIn('code', ['gasoline_95', 'diesel'])->values(); @endphp
{{ __('site.regions.title') }}
{{ __('site.regions.lead') }}
| {{ __('site.station.region') }} |
|
@foreach ($regionFuels as $fuel)
{{ __('site.fuel_short.' . $fuel['code']) }} |
@endforeach
@foreach ($board['regions'] as $region)
| {{ $region['name'] }} |
{{ __('site.regions.stations', ['count' => $region['stations']]) }} |
@foreach ($regionFuels as $fuel)
{{ SiteFormat::price($region['prices'][$fuel['id']] ?? null) }} |
@endforeach
@endforeach
@endif
@endif
{{-- Fotoğrafla bildir --}}
@endsection