@extends('welcome') @section('title', __('index.seo_home_title', ['company' => config('app.name')])) @section('meta_description', __('index.default_meta_description')) @section('content')
@if($heroBanners->count()) @foreach($heroBanners as $banner) @php $fullTitle = $banner->text(1); // Ex: Natural Fruits $titleParts = explode(' ', $fullTitle, 2); $titleFirst = $titleParts[0] ?? ''; $titleSecond = $titleParts[1] ?? ''; $buttonLink = $banner->ban_link ? (Str::startsWith($banner->ban_link, ['http://','https://']) ? $banner->ban_link : route($banner->ban_link)) : '#'; @endphp
shape {{ $banner->text(2) }}

icon {{ $titleFirst }} @if($titleSecond) {{ $titleSecond }} @endif @if($banner->text(4)) {{ $banner->text(4) }} @endif

@if($banner->text(3)) {{ $banner->text(3) }} @endif
Hero Image
shape
shape
shape
@endforeach @endif
shape
Icon{{ __('index.meal_types_title') }}

{{ __('index.meal_types_subtitle') }}

@foreach($typeMeals as $typeMeal) @php $count = (int) ($typeMeal->products_count ?? 0); $countPadded = str_pad((string) $count, 2, '0', STR_PAD_LEFT); $labelCount = __('index.productsLabel', ['count' => $countPadded]); @endphp @endforeach
Icon{{ __('index.menu') }}

{{ $latestMenu->title() }}

@if($fitBanner) {{ $fitBanner->text(1) }} @endif
Why
shape{{ __('index.menu_fit') }}
@if($latestMenu) @php $index = 1; @endphp @foreach($latestMenu->dishes->where('dsh_type', 0) as $dish)
F{{ $index }}

{{ $dish->title }}

@if($dish->hasInformation()) Information Informação nutricional @endif

@php $index++; @endphp @endforeach @endif
shape{{ __('index.menu_vegetarian') }}
@if($latestMenu) @php $index = 1; @endphp @foreach($latestMenu->dishes->where('dsh_type', 1) as $dish)
V{{ $index }}

{{ $dish->title }}

@if($dish->hasInformation()) Information Informação nutricional @endif

@php $index++; @endphp @endforeach @endif
@if($vegBanner) {{ $vegBanner->text(1) }} @endif
Why
Icon

{{ $numberOfPacks }}

{{ __('index.healthy_packs') }}

Icon

14+

{{ __('index.dedicated_team') }}

Icon

{{ $ordersDelivered }}+

{{ __('index.orders_delivered') }}

Icon

100%

{{ __('index.fresh_products') }}

@if($testimonials->count())
{{ $secBanner->text(1) }}
shape
Icon {{ __('index.testimonials') }}

{{ __('index.customer_feedback') }}

@foreach($testimonials as $testimonial)

{!! $testimonial->text !!}

Avatar

{{ $testimonial->tes_author }}

{{ __('index.customer_label') }} {{-- Stars --}}
@for($i = 1; $i <= 5; $i++) @endfor
@endforeach
@endif
shape{{ __('index.choose_your_pack') }}

{{ __('index.discover_perfect_pack') }}

@foreach($packs as $pack)
{{ $pack->title }}
{{-- Aqui substituímos autor/data pelos tipos de refeição --}}
@foreach($pack->typeMeals as $typeMeal) {{ $typeMeal->description }} @if($loop->iteration % 2 === 0 && !$loop->last)
@endif @endforeach

{{ $pack->title }}

{{ __('index.view_pack') }}
@endforeach
@endsection @include('welcome.partials.dish-info-modal') @push('scripts') @endpush