@extends('layouts.app') @section('title', match(current_locale()) { 'en' => 'Stores', 'ru' => 'Магазины', default => 'Satış nöqtələri', }) @push('styles') @endpush @section('content')

BERNESSO

@switch(current_locale()) @case('en') Stores @break @case('ru') Магазины @break @default Satış nöqtələri @endswitch

@switch(current_locale()) @case('en') Find BERNESSO stores and partner sales points on the live map. @break @case('ru') Найдите магазины и точки продаж BERNESSO на интерактивной карте. @break @default BERNESSO mağazalarını və satış nöqtələrini canlı xəritədə tapın. @endswitch

@if($stores->isEmpty())
Satış nöqtəsi hələ əlavə olunmayıb.
@else
@foreach($stores as $store)
{{ $store->name }} @if($store->city) {{ $store->city }} @endif {{ $store->address }} @if($store->phone) {{ $store->phone }} @endif @if($store->work_hours) {{ $store->work_hours }} @endif @if($store->map_url) Xəritədə aç @endif
@endforeach
@endif
@if($stores->isNotEmpty()) @php $storesForMap = $stores->map(function ($store) { return [ 'id' => $store->id, 'name' => $store->name, 'city' => $store->city, 'address' => $store->address, 'phone' => $store->phone, 'work_hours' => $store->work_hours, 'map_url' => $store->map_url, 'lat' => (float) $store->latitude, 'lng' => (float) $store->longitude, ]; })->values(); @endphp @endif @endsection