@extends('layouts.app') @php $isBranchPage = ! empty($branch); $hasBuilderHero = $isBranchPage && $blocks->contains(fn ($block) => $block->type === 'hero'); @endphp @section('title', $isBranchPage ? $branch->tr('name').' | '.setting_text('store.name', 'Mandano 888') : setting_text('store.name', 'Mandano 888').' — '.__('home.meta_suffix')) @section('page', $isBranchPage ? 'contact' : 'home') @section('content') @if ($isBranchPage && ! $hasBuilderHero) @include('branch.partials.hero', ['branch' => $branch]) @endif @foreach ($blocks as $block) @include('pages.block', ['block' => $block, 'builderPreview' => $builderPreview ?? false]) @endforeach @endsection