@extends('layouts.app') @section('title', __('common.contact').' | '.setting_text('store.name', 'Mandano 888')) @section('page', 'contact') @section('content')

{{ __('contact.title') }}

{{ __('contact.sub') }}

{{ __('contact.call') }}

{{ setting('store.phone', '') }}

{{ __('contact.email') }}

{{ setting('store.email', '') }}

{{ __('contact.whatsapp') }}

{{ __('contact.chat_now') }}

{{ __('contact.visit') }}

{{ setting_text('store.address', __('footer.address')) }}

{{ setting_text('store.hours', __('footer.hours')) }}

{{ __('contact.form_title') }}

{{ __('contact.form_sub') }}

@if (session('toast'))
{{ session('toast')['text'] }}
@endif
@csrf
@if ($branches->isNotEmpty()) @php $mapBranches = $branches->filter(fn ($branch) => $branch->hasLocation())->map(fn ($branch) => [ 'id' => $branch->id, 'name' => $branch->tr('name'), 'address' => $branch->tr('address'), 'phones' => $branch->phoneList(), 'whatsapp' => $branch->whatsapp, 'whatsapp_url' => $branch->whatsapp_url, 'hours' => $branch->tr('working_hours'), 'email' => $branch->email, 'lat' => (float) $branch->latitude, 'lng' => (float) $branch->longitude, ])->values(); @endphp

{{ __('contact.branches_title') }}

{{ __('contact.branches_sub') }}

@foreach ($branches as $branch)
@if ($branch->image_url) {{ $branch->tr('name') }} @else @endif
@php $openNow = $branch->isOpenNow(); @endphp

{{ $branch->tr('name') }}

{{ $branch->tr('address') }}

@if ($openNow === null) {{ __('contact.hours_unavailable') }} @else {{ $openNow ? __('contact.open_now') : __('contact.closed_now') }} @endif @if ($branch->tr('working_hours'))

{{ $branch->tr('working_hours') }}

@endif
@foreach ($branch->phoneList() as $phone) {{ $phone }} @endforeach @if ($branch->whatsapp_url) {{ $branch->whatsapp }} @endif @if ($branch->email) {{ $branch->email }} @endif
{{ __('contact.branch_view') }} @if ($branch->hasLocation() && $mapBranches->isNotEmpty()) {{ __('contact.branch_directions') }} ↗ @endif
@endforeach
@if ($mapBranches->isNotEmpty())

{{ __('contact.branch_map_title') }}

{{ __('contact.branch_map_help') }}

{{ __('contact.branch_map_hint') }}

@endif
@endif @endsection @push('head') @endpush @push('scripts') @endpush