@extends('layouts.app')
@section('content')
@php
$carousels = $carousels ?? collect();
$products = $products ?? collect();
$featured = $products->get('featured', collect());
@endphp
{{-- ------- carousel topo ------- --}}
@forelse ($carousels as $key => $carousel)
 }})
@php
$positionClass = match ($carousel->position) {
'left' => 'text-start',
'center' => 'text-center',
default => 'text-end',
};
@endphp
@empty
Nenhum banner cadastrado.
@endforelse
{{-- ------- produtos em destaque ------- --}}
@if ($featured->isNotEmpty())
Produtos em Destaque
@foreach ($featured as $product)
{{ \Illuminate\Support\Str::limit($product->name, 25) }}
{{ \Illuminate\Support\Str::limit($product->description, 50) }}
Ver Detalhes
@endforeach
@endif
{{-- ------- demais seções ------- --}}
@foreach ($products as $section => $items)
@continue($section === 'featured')
{{-- ------- marquee ------- --}}
@if ($section === 'carousel')
Produtos
@foreach ($items as $product)
@endforeach
@foreach ($items as $product)
@endforeach
@continue
@endif
{{-- ------- categoria circle 3 ------- --}}
@if ($section === 'circle_3')
Categorias
@foreach ($items as $product)
@if ($product->image)
 }})
@endif
{{ \Illuminate\Support\Str::limit($product->name, 20) }}
@endforeach
@continue
@endif
{{-- ------- grid padrão ------- --}}
{{ ucfirst(str_replace('_', ' ', $section)) }}
@php
$colsMap = [
'grid_1' => 12,
'grid_2' => 6,
'grid_3' => 4,
'grid_4' => 3,
];
$colSize = $colsMap[$section] ?? 4;
$col = "col-12 col-md-$colSize";
$imageClass = match ($section) {
'grid_1' => 'img-grid-1',
default => 'img-grid-default',
};
@endphp
@foreach ($items as $product)
@if ($product->image)
 }})
@else
Sem imagem
@endif
{{ \Illuminate\Support\Str::limit($product->name, 50) }}
@endforeach
@endforeach
@endsection@extends('layouts.app')
@section('content')
@php
$carousels = $carousels ?? collect();
$products = $products ?? collect();
$featured = $products->get('featured', collect());
@endphp
{{-- ------- carousel topo ------- --}}
@forelse ($carousels as $key => $carousel)
 }})
@php
$positionClass = match ($carousel->position) {
'left' => 'text-start',
'center' => 'text-center',
default => 'text-end',
};
@endphp
@empty
Nenhum banner cadastrado.
@endforelse
{{-- ------- produtos em destaque ------- --}}
@if ($featured->isNotEmpty())
Produtos em Destaque
@foreach ($featured as $product)
{{ \Illuminate\Support\Str::limit($product->name, 25) }}
{{ \Illuminate\Support\Str::limit($product->description, 50) }}
Ver Detalhes
@endforeach
@endif
{{-- ------- demais seções ------- --}}
@foreach ($products as $section => $items)
@continue($section === 'featured')
{{-- ------- marquee ------- --}}
@if ($section === 'carousel')
Produtos
@foreach ($items as $product)
@endforeach
@foreach ($items as $product)
@endforeach
@continue
@endif
{{-- ------- categoria circle 3 ------- --}}
@if ($section === 'circle_3')
Categorias
@foreach ($items as $product)
@if ($product->image)
 }})
@endif
{{ \Illuminate\Support\Str::limit($product->name, 20) }}
@endforeach
@continue
@endif
{{-- ------- grid padrão ------- --}}
{{ ucfirst(str_replace('_', ' ', $section)) }}
@php
$colsMap = [
'grid_1' => 12,
'grid_2' => 6,
'grid_3' => 4,
'grid_4' => 3,
];
$colSize = $colsMap[$section] ?? 4;
$col = "col-12 col-md-$colSize";
$imageClass = match ($section) {
'grid_1' => 'img-grid-1',
default => 'img-grid-default',
};
@endphp
@foreach ($items as $product)
@if ($product->image)
 }})
@else
Sem imagem
@endif
{{ \Illuminate\Support\Str::limit($product->name, 50) }}
@endforeach
@endforeach
@endsection@extends('layouts.app')
@section('content')
@php
$carousels = $carousels ?? collect();
$products = $products ?? collect();
$featured = $products->get('featured', collect());
@endphp
{{-- ------- carousel topo ------- --}}
@forelse ($carousels as $key => $carousel)
 }})
@php
$positionClass = match ($carousel->position) {
'left' => 'text-start',
'center' => 'text-center',
default => 'text-end',
};
@endphp
@empty
Nenhum banner cadastrado.
@endforelse
{{-- ------- produtos em destaque ------- --}}
@if ($featured->isNotEmpty())
Produtos em Destaque
@foreach ($featured as $product)
{{ \Illuminate\Support\Str::limit($product->name, 25) }}
{{ \Illuminate\Support\Str::limit($product->description, 50) }}
Ver Detalhes
@endforeach
@endif
{{-- ------- demais seções ------- --}}
@foreach ($products as $section => $items)
@continue($section === 'featured')
{{-- ------- marquee ------- --}}
@if ($section === 'carousel')
Produtos
@foreach ($items as $product)
@endforeach
@foreach ($items as $product)
@endforeach
@continue
@endif
{{-- ------- categoria circle 3 ------- --}}
@if ($section === 'circle_3')
Categorias
@foreach ($items as $product)
@if ($product->image)
 }})
@endif
{{ \Illuminate\Support\Str::limit($product->name, 20) }}
@endforeach
@continue
@endif
{{-- ------- grid padrão ------- --}}
{{ ucfirst(str_replace('_', ' ', $section)) }}
@php
$colsMap = [
'grid_1' => 12,
'grid_2' => 6,
'grid_3' => 4,
'grid_4' => 3,
];
$colSize = $colsMap[$section] ?? 4;
$col = "col-12 col-md-$colSize";
$imageClass = match ($section) {
'grid_1' => 'img-grid-1',
default => 'img-grid-default',
};
@endphp
@foreach ($items as $product)
@if ($product->image)
 }})
@else
Sem imagem
@endif
{{ \Illuminate\Support\Str::limit($product->name, 50) }}
@endforeach
@endforeach
@endsection@extends('layouts.app')
@section('content')
@php
$carousels = $carousels ?? collect();
$products = $products ?? collect();
$featured = $products->get('featured', collect());
@endphp
{{-- ------- carousel topo ------- --}}
@forelse ($carousels as $key => $carousel)
 }})
@php
$positionClass = match ($carousel->position) {
'left' => 'text-start',
'center' => 'text-center',
default => 'text-end',
};
@endphp
@empty
Nenhum banner cadastrado.
@endforelse
{{-- ------- produtos em destaque ------- --}}
@if ($featured->isNotEmpty())
Produtos em Destaque
@foreach ($featured as $product)
{{ \Illuminate\Support\Str::limit($product->name, 25) }}
{{ \Illuminate\Support\Str::limit($product->description, 50) }}
Ver Detalhes
@endforeach
@endif
{{-- ------- demais seções ------- --}}
@foreach ($products as $section => $items)
@continue($section === 'featured')
{{-- ------- marquee ------- --}}
@if ($section === 'carousel')
Produtos
@foreach ($items as $product)
@endforeach
@foreach ($items as $product)
@endforeach
@continue
@endif
{{-- ------- categoria circle 3 ------- --}}
@if ($section === 'circle_3')
Categorias
@foreach ($items as $product)
@if ($product->image)
 }})
@endif
{{ \Illuminate\Support\Str::limit($product->name, 20) }}
@endforeach
@continue
@endif
{{-- ------- grid padrão ------- --}}
{{ ucfirst(str_replace('_', ' ', $section)) }}
@php
$colsMap = [
'grid_1' => 12,
'grid_2' => 6,
'grid_3' => 4,
'grid_4' => 3,
];
$colSize = $colsMap[$section] ?? 4;
$col = "col-12 col-md-$colSize";
$imageClass = match ($section) {
'grid_1' => 'img-grid-1',
default => 'img-grid-default',
};
@endphp
@foreach ($items as $product)
@if ($product->image)
 }})
@else
Sem imagem
@endif
{{ \Illuminate\Support\Str::limit($product->name, 50) }}
@endforeach
@endforeach
@endsection@extends('layouts.app')
@section('content')
@php
$carousels = $carousels ?? collect();
$products = $products ?? collect();
$featured = $products->get('featured', collect());
@endphp
{{-- ------- carousel topo ------- --}}
@forelse ($carousels as $key => $carousel)
 }})
@php
$positionClass = match ($carousel->position) {
'left' => 'text-start',
'center' => 'text-center',
default => 'text-end',
};
@endphp
@empty
Nenhum banner cadastrado.
@endforelse
{{-- ------- produtos em destaque ------- --}}
@if ($featured->isNotEmpty())
Produtos em Destaque
@foreach ($featured as $product)
{{ \Illuminate\Support\Str::limit($product->name, 25) }}
{{ \Illuminate\Support\Str::limit($product->description, 50) }}
Ver Detalhes
@endforeach
@endif
{{-- ------- demais seções ------- --}}
@foreach ($products as $section => $items)
@continue($section === 'featured')
{{-- ------- marquee ------- --}}
@if ($section === 'carousel')
Produtos
@foreach ($items as $product)
@endforeach
@foreach ($items as $product)
@endforeach
@continue
@endif
{{-- ------- categoria circle 3 ------- --}}
@if ($section === 'circle_3')
Categorias
@foreach ($items as $product)
@if ($product->image)
 }})
@endif
{{ \Illuminate\Support\Str::limit($product->name, 20) }}
@endforeach
@continue
@endif
{{-- ------- grid padrão ------- --}}
{{ ucfirst(str_replace('_', ' ', $section)) }}
@php
$colsMap = [
'grid_1' => 12,
'grid_2' => 6,
'grid_3' => 4,
'grid_4' => 3,
];
$colSize = $colsMap[$section] ?? 4;
$col = "col-12 col-md-$colSize";
$imageClass = match ($section) {
'grid_1' => 'img-grid-1',
default => 'img-grid-default',
};
@endphp
@foreach ($items as $product)
@if ($product->image)
 }})
@else
Sem imagem
@endif
{{ \Illuminate\Support\Str::limit($product->name, 50) }}
@endforeach
@endforeach
@endsection@extends('layouts.app')
@section('content')
@php
$carousels = $carousels ?? collect();
$products = $products ?? collect();
$featured = $products->get('featured', collect());
@endphp
{{-- ------- carousel topo ------- --}}
@forelse ($carousels as $key => $carousel)
 }})
@php
$positionClass = match ($carousel->position) {
'left' => 'text-start',
'center' => 'text-center',
default => 'text-end',
};
@endphp
@empty
Nenhum banner cadastrado.
@endforelse
{{-- ------- produtos em destaque ------- --}}
@if ($featured->isNotEmpty())
Produtos em Destaque
@foreach ($featured as $product)
{{ \Illuminate\Support\Str::limit($product->name, 25) }}
{{ \Illuminate\Support\Str::limit($product->description, 50) }}
Ver Detalhes
@endforeach
@endif
{{-- ------- demais seções ------- --}}
@foreach ($products as $section => $items)
@continue($section === 'featured')
{{-- ------- marquee ------- --}}
@if ($section === 'carousel')
Produtos
@foreach ($items as $product)
@endforeach
@foreach ($items as $product)
@endforeach
@continue
@endif
{{-- ------- categoria circle 3 ------- --}}
@if ($section === 'circle_3')
Categorias
@foreach ($items as $product)
@if ($product->image)
 }})
@endif
{{ \Illuminate\Support\Str::limit($product->name, 20) }}
@endforeach
@continue
@endif
{{-- ------- grid padrão ------- --}}
{{ ucfirst(str_replace('_', ' ', $section)) }}
@php
$colsMap = [
'grid_1' => 12,
'grid_2' => 6,
'grid_3' => 4,
'grid_4' => 3,
];
$colSize = $colsMap[$section] ?? 4;
$col = "col-12 col-md-$colSize";
$imageClass = match ($section) {
'grid_1' => 'img-grid-1',
default => 'img-grid-default',
};
@endphp
@foreach ($items as $product)
@if ($product->image)
 }})
@else
Sem imagem
@endif
{{ \Illuminate\Support\Str::limit($product->name, 50) }}
@endforeach
@endforeach
@endsection@extends('layouts.app')
@section('content')
@php
$carousels = $carousels ?? collect();
$products = $products ?? collect();
$featured = $products->get('featured', collect());
@endphp
{{-- ------- carousel topo ------- --}}
@forelse ($carousels as $key => $carousel)
 }})
@php
$positionClass = match ($carousel->position) {
'left' => 'text-start',
'center' => 'text-center',
default => 'text-end',
};
@endphp
@empty
Nenhum banner cadastrado.
@endforelse
{{-- ------- produtos em destaque ------- --}}
@if ($featured->isNotEmpty())
Produtos em Destaque
@foreach ($featured as $product)
{{ \Illuminate\Support\Str::limit($product->name, 25) }}
{{ \Illuminate\Support\Str::limit($product->description, 50) }}
Ver Detalhes
@endforeach
@endif
{{-- ------- demais seções ------- --}}
@foreach ($products as $section => $items)
@continue($section === 'featured')
{{-- ------- marquee ------- --}}
@if ($section === 'carousel')
Produtos
@foreach ($items as $product)
@endforeach
@foreach ($items as $product)
@endforeach
@continue
@endif
{{-- ------- categoria circle 3 ------- --}}
@if ($section === 'circle_3')
Categorias
@foreach ($items as $product)
@if ($product->image)
 }})
@endif
{{ \Illuminate\Support\Str::limit($product->name, 20) }}
@endforeach
@continue
@endif
{{-- ------- grid padrão ------- --}}
{{ ucfirst(str_replace('_', ' ', $section)) }}
@php
$colsMap = [
'grid_1' => 12,
'grid_2' => 6,
'grid_3' => 4,
'grid_4' => 3,
];
$colSize = $colsMap[$section] ?? 4;
$col = "col-12 col-md-$colSize";
$imageClass = match ($section) {
'grid_1' => 'img-grid-1',
default => 'img-grid-default',
};
@endphp
@foreach ($items as $product)
@if ($product->image)
 }})
@else
Sem imagem
@endif
{{ \Illuminate\Support\Str::limit($product->name, 50) }}
@endforeach
@endforeach
@endsection
Server Error