Anons79 Mini Shell

Directory : /home/proudlyafrican/www/resources/views/general/
Upload File :
Current File : /home/proudlyafrican/www/resources/views/general/categorywise_products.blade.php

@extends('general.head')
@section('middle')


<head>
    <title>@section('title', 'Categorywise Products-')Ckgroceries</title>
    <meta name="keywords" content="CKgroceries, online shoping, Best e-commerce site, online groceresie products" />
</head>

<div class="page-head_agile_info_w3l">

</div>
<!-- //banner-2 -->
<!-- page -->
<div class="services-breadcrumb">
    <div class="agile_inner_breadcrumb">
        <div class="container">
            <ul class="w3_short">
                <li>
                    <a href="{{ url('/') }}">Home</a>
                    <i>|</i>
                </li>
                <li>Categorywise Products</li>
            </ul>
        </div>
    </div>
</div>
<!-- //page -->
<!-- Single Page -->
<div class="banner-bootom-w3-agileits">
    <div class="container">


        <style>
            p {
                margin: 0;
                letter-spacing: 1px;
                font-size: 16px;
                line-height: 1.9;
                color: #000000;
                text-align: justify;
            }
        </style>
        <div >
            @if(isset($categories))
            <h3 class="heading-tittle">{{ $categories[0]->name }}</h3>
              <div class="container">
                  <div class="row">
                      <div class="col-md-1">

                      </div>
                      <div class="col-md-10">
                          <br>
                          <span>
                               <?php echo  $categories[0]->description; ?>
                          </span>

                          <br>
                      </div>

                  </div>
              </div>


            @endif

            <h4 class="heading-tittle" style="color: #FF5722;font-size: 22px; font-weight: bold; margin-left: 100px; margin-bottom: 30px;">
                <span>{{ $product_counts }} Products</span>
            </h4>

            <div class="row">
                @foreach($products as $arrival)
                <div class="col-md-3 col-xs-6 col-sm-6 khan" style="margin-top: 30px">
                    <div class="men-pro-item simpleCart_shelfItem">
                        <div class="men-thumb-item">
                            <img class="cat_image" src="{{ url('public/uploads/products') }}/{{ $arrival->image_name }}" alt="">
                            <div class="men-cart-pro">
                                <div class="inner-men-cart-pro">
                                    @php
                                    $check = DB::table('product_rates')->where('product_id',$arrival->product_id)->get();
                                    @endphp
                                    @if(count($check)>0)
                                    <a href="{{ url('product_detail') }}/{{ $arrival->product_id }}/{{ $check[0]->rate_id }}" class="link-product-add-cart">Quick View</a>
                                    @else
                                    @endif

                                </div>
                            </div>
                            <span class="product-new-top">New</span>
                        </div>
                        <div class="item-info-product ">
                            <h4>
                                <a href="single.html">{{ $arrival->name }}</a>
                            </h4>

                            @php
                            $check = DB::table('product_rates')->where('product_id',$arrival->product_id)->get();
                            @endphp
                            @if(count($check)>0)
                            <div class="product--size">
                                @foreach($check as $size)
                    <span class="active"><a href="{{ url('product_detail') }}/{{ $size->product_id }}/{{ $size->rate_id }}"  onMouseOver="this.style.color='black'"
                                            onMouseOut="this.style.color='white'"  style="color: white; ">{{ $size->quantity }}{{ $size->unit }}</a></span>
                                @endforeach
                            </div>
                            @else
                            @endif

                            <div class="snipcart-details top_brand_home_details item_add single-item hvr-outline-out">

                                @php
                                $check = DB::table('product_rates')->where('product_id',$arrival->product_id)->get();
                                @endphp
                                @if(count($check)>0)
                                <a  href="{{ url('product_detail') }}/{{ $arrival->product_id }}/{{ $check[0]->rate_id }}"  style="color: #fff;background: #1accfd;text-decoration: none;position: relative;border: none;border-radius: 0; width: 100%;text-transform: uppercase;padding: 7px; outline: none;letter-spacing: 1px;font-weight: 600;" name="submit" value="View Detail" class="button mycolor"><i class="glyphicon glyphicon-eye-open"></i><span class="hidden-xs"></span></a>

                                @if(count($check)>1)

                                <button style="" onclick="showoptions('<?php echo $arrival->product_id;  ?>','<?php echo $check[0]->rate_id;  ?>')" class="btn btn-primary mybtn">Choose Options</button>
                                @else
                                <a onclick="addtocart('<?php echo $check[0]->product_id; ?>', '<?php echo $check[0]->quantity; ?>', '<?php echo $check[0]->unit; ?>', '<?php echo $check[0]->amount; ?>')"
                                   style="color: #fff; background: #1accfd; text-decoration: none; position: relative; border: none; border-radius: 0; width: 100%; text-transform: uppercase; padding: 7px; outline: none; letter-spacing: 1px; font-weight: 600;"
                                   name="submit" value="Add to cart" class="button mycolor">
                                    <i class="glyphicon glyphicon-shopping-cart"></i>
                                    <span class="hidden-xs"></span>
                                </a>
                                @endif



                                @else
                                @endif



                            </div>

                        </div>
                    </div>
                </div>
                @endforeach
            </div>


            <div class="clearfix"></div>
        </div>

    </div>
</div>


<script>
    function showoptions(product_id,rate_id){
        $('#modalmaindiv').html('');
        $.get("{{ url('ajax_product_detail') }}"+"/"+product_id + "/" + rate_id, function (data, status) {
            $('#loader').hide();
            $('#exampleModal').modal('show');
            $("#modalmaindiv").html(data.html);
        });
    }
</script>

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>




@endsection

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]