@extends('template.main-template') @section('content')
@foreach ($globalproductAttr as $attr) @switch($attr->type) @case('color') {{--
  • --}} @component('template.components.filters.colors', ['variation' => $attr, 'options' => $attr->options]) @endcomponent @break @case('select') @component('template.components.filters.select', ['variation' => $attr, 'options' => $attr->options]) @endcomponent @break @default @endswitch @endforeach
    @foreach ($products as $key => $product)
    @component('template.components.products.product_loop', ['product' => $product]) @endcomponent
    @endforeach @csrf
    {{-- Paginação manual sem Bootstrap --}} @if ($products->lastPage() > 1)
    @endif
    @endsection @push('javascript') @endpush