@extends('layouts.app') @section('content') {{-- HERO SECTION --}}

Shop

Programs and guides to elevate your performance

{{-- PRODUCTS GRID --}}
@php // Get WooCommerce products directly $args = array( 'post_type' => 'product', 'posts_per_page' => 12, 'paged' => get_query_var('paged') ? get_query_var('paged') : 1, 'orderby' => 'menu_order', 'order' => 'ASC' ); $products = new WP_Query($args); @endphp @if($products->have_posts()) {{-- Custom Pagination --}} @if($products->max_num_pages > 1)
@php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $pages = $products->max_num_pages; @endphp @if($paged > 1) Previous @endif @for($i = 1; $i <= $pages; $i++) {{ $i }} @endfor @if($paged < $pages) Next @endif
@endif @else

No products found

@endif
@endsection