@php $search_key = $data['search_key']; $brands = $data['brands']; $colors = $data['color']; $sizes = $data['sizes']; $categories = $data['category']; $total_count = $data['total_count']; $product_list = $data['product_list']; $cart_array = $data['cart_array']; @endphp @if (count($product_list) > 0) @php $catname = $product_list[0]['category_name']; $category_banner = '/uploads/category_banner/' . $product_list[0]['category_banner']; $search_description = $product_list[0]['category_description']; $searchlink = $product_list[0]['category_url']; $searchtext = $product_list[0]['category_url_txt']; @endphp @else @php $category_banner = '/uploads/category_banner/default.jpeg'; $catname = 'Product Not Found'; $search_description = 'Product you have searched for is not found'; $searchlink = '/'; $searchtext = 'Back to Home'; @endphp @if ($search_key == 'search') @php $search_description = 'Product you have searched for is not found'; @endphp @else @php $search_description = 'Product you have searched for is not found'; @endphp @endif @endif @php $split = $data['max_amnt'] / 4; @endphp @extends('layouts.user-inner') @section('content')
  • Home
  • {{ $search_key }}

Offer

{{ $catname }}

{{ $search_description }}
{{ $searchtext }}

Categories

    @foreach ($categories as $category)
  • category_link) {{ 'checked' }} @endif id="categ{{ $category['category_id'] }}" /> {{ $category->category_name }}{{ \App\Models\productModel::where(['product_category' => $category['category_id'], 'product_status' => 0, 'product_active_status' => 0, 'parent_product_id' => 0])->count() }}
  • @endforeach
@if (count($brands) != 0)

Product Brand

    @foreach ($brands as $brnd)
  • {{ $brnd['brand_name'] }}{{ \App\Models\productModel::where(['product_brand' => $brnd['brand_id'], 'product_status' => 0, 'product_active_status' => 0, 'parent_product_id' => 0])->count() }}
  • @endforeach
@endif @if (count($data['product_list']) != 0) @endif
@if (count($data['product_list']) != 0)
SORT BY
@endif @if (count($data['product_list']) > 0)
@foreach ($product_list as $prolist)
{{ $prolist->brands->brand_name }}
{{ $prolist->product_name_en }}
QAR @if ($prolist->offer_datas) @php $offer_details = $prolist->offer_datas; $offer_price = $offer_details['product_offer_amount']; $offer_percentage = $offer_details['product_offer_percentage']; @endphp {{ $prolist->product_price }} {{ number_format($offer_price, 2, '.', '') }} @else {{ $prolist->product_price }} @endif
@endforeach
@else

" No Products Found "

@endif
@push('custom-scripts') @endpush @endsection