@extends('welcome') @section('title', __('typemeal.seo_title', ['type' => $typeMeal->description()])) @section('meta_description', __('typemeal.meta_description', ['type' => $typeMeal->description()])) @section('content')

{{ $typeMeal->description() }}

@php $hasPack60 = $products->contains(function($product) { return $product->pro_id == 152; // ou outra lógica para identificar pack 60 }); @endphp @if($hasPack60)

{{ __('typemeal.pack_60_info') }}

@endif
Icon {{ strtoupper(__('typemeal.available_packs')) }}

{{ $typeMeal->description() }}

@if($typeMeal->typ_img)
{{ $typeMeal->description() }}
@endif

{{ __('typemeal.select_pack_for_size', ['size' => $typeMeal->description()]) }}

@forelse($products as $product) @php $pivot = $product->typeMeals ->firstWhere('typ_id', $typeMeal->typ_id)?->pivot; $price = $pivot->ptm_price ?? null; $boxes = $pivot->ptm_boxes ?? null; $imageUrl = $product->pro_img ? asset('images/product/' . $product->pro_img) : asset('assets/img/icon/category_card_1.svg'); $packDescription = $product->title; $locale = app()->getLocale(); $infoField = "pro_info_{$locale}"; $packInfo = $product->$infoField ?? ''; $productUrl = route('menu.dishes', [ 'category' => $product->category->cat_slug, 'product' => $product->pro_slug, 'typeMeal' => $typeMeal->typ_slug, ]); @endphp
{{ $packDescription }} @if($product->pro_highlight) {{ __('typemeal.highlight') }} @endif
@if($boxes)
{{ $boxes }} {{ __('typemeal.meals') }}
@endif

{{ $packDescription }}

{{ $product->category?->description() ?? __('typemeal.pack') }}

@if($price) {{ number_format($price, 2, ',', ' ') }} @else {{ __('typemeal.price_upon_request') }} @endif
@empty

{{ __('typemeal.no_packs_available') }}

{{ __('typemeal.no_packs_message', ['size' => $typeMeal->description()]) }}

{{ __('typemeal.view_all_packs') }}
@endforelse
@endsection @push('styles') @endpush