@php $urlFor = function (string $slug) { return $slug === 'home' ? url('/') : url('/' . $slug); }; $isActive = function (string $slug) use ($currentPageSlug) { return $currentPageSlug === $slug ? 'current' : ''; }; @endphp Open hours: {{ $contact['from_time'] ?? '00:00' }} - {{ $contact['to_time'] ?? '00:00' }} @if(!empty($contact['facebook_url'])) @endif @if(!empty($contact['google_url'])) @endif @if(!empty($contact['twitter_url'])) @endif @if(!empty($contact['linkedin_url'])) @endif @if(!empty($contact['instagram_url'])) @endif @foreach(($pageNav ?? []) as $p) @php $slug = $p['page']; $label = $p['title'] ?? \Illuminate\Support\Str::title(str_replace('-', ' ', $slug)); @endphp {{ e($label) }} @endforeach @foreach(($pageNav ?? []) as $p) @php $slug = $p['page']; $label = $p['title'] ?? \Illuminate\Support\Str::title(str_replace('-', ' ', $slug)); @endphp {{ e($label) }} @endforeach