@php
    $template = 'template' . $site_configurations->template_id;
@endphp

@extends('frontend.app')
@section('title','New Product')
@section('content')
    <!--============ Contact Us Area Start ============-->
    <section class="new_arrival_product section_padding">
        <div class="container">
            <div class="row">
                <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                    <div class="section_title text-center">
                        <h2>New Product</h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="container section_top_space">
            <div class="row gy-2 gx-2 gy-lg-3 gx-lg-3">
                @forelse ($products as $product)
                    <div class="{{$site_configurations->card_row}} col-xl-3 col-lg-4 col-md-4 col-sm-6 col-6">
                        @include("frontend.components.product_content.$template", ['product' => $product])
                    </div>
                    @empty
                    <p>No Product</p>
                @endforelse
            </div>
        </div>
    </section>
@endsection