@extends('web.layouts.container')

@section('content')
    <section class="products-sec products-pg">
        <div class="container">
            <div class="inner-sec">
                <div class="heading-sec mb-5 wow fadeInDown"  >
                    <h5 class="subtitle">{{__('products.our_products')}}</h5>
                    <h2 class="title">{{__('products.special_products')}}</h2>
                </div>
                <div class="row pt-5">
                    @if(count($products))
                        @foreach($products as $product)
                            <div class="col-md-6 col-lg-4">
                                <a href="{{route('product.show', $product->id)}}">
                                    <div class="prod_card wow fadeInUp"  >
                                        <div class="img-box">
                                            <img src="{{asset(array_random($product->images))}}" alt=""/>
                                        </div>
                                        <div class="card-body">
                                            <h6 class="title">{{$product->name}}</h6>
                                            <p class="p">{{wordLimit($product->description, 7)}}</p>
                                        </div>
                                    </div>
                                </a>
                            </div>
                        @endforeach
                    @endif
                </div>
            </div>
        </div>
    </section>
@endsection

@section('inner_js')

@endsection
