@extends('layouts.user-home') @section('content')
@foreach($sliders as $slid)

{{ $slid->s_title }}

{!! $slid->s_desc !!}

Explore Now
@endforeach
@foreach($productsall as $randprod)
{{ $randprod->brands->brand_name }}
{{ $randprod->product_name_en }}
QAR @if($randprod->offer_datas) @php $offer_details=$randprod->offer_datas; $offer_price=$offer_details['product_offer_amount']; $offer_percentage=$offer_details['product_offer_percentage']; @endphp {{$randprod->product_price}} {{sprintf("%.2f",$offer_price)}} @else {{$randprod->product_price}} @endif
@endforeach
@foreach($category as $catloop)
@foreach($productscatall as $prodvt) @if($prodvt->product_category == $catloop->category_id)
{{ $prodvt->brands->brand_name }}
{{ $prodvt->product_name_en }}
QAR @if($prodvt->offer_datas) @php $offer_details=$prodvt->offer_datas; $offer_price=$offer_details['product_offer_amount']; $offer_percentage=$offer_details['product_offer_percentage']; @endphp {{$prodvt->product_price}} {{sprintf("%.2f",$offer_price)}} @else {{$prodvt->product_price}} @endif
@endif @if($pri >= 4) @break @endif @endforeach @if($pri == 0)

"No Products Found"

@endif
@endforeach
@if(count($randcat)>0) @foreach($randcat as $catra)

{{ $catra->category_name }}

{{ $catra->category_description }} Shop Now
@endforeach @endif

Recommended Products

@foreach($productspopular as $mpop)
{{ $mpop->brands->brand_name }}
{{ $mpop->product_name_en }}
QAR @if($mpop->offer_datas) @php $offer_details=$mpop->offer_datas; $offer_price=$offer_details['product_offer_amount']; $offer_percentage=$offer_details['product_offer_percentage']; @endphp {{$mpop->product_price}} {{sprintf("%.2f",$offer_price)}} @else {{$mpop->product_price}} @endif
@endforeach
@if(count($productsrandonly)>0) @foreach($productsrandonly as $prordonly)

Ray-ban

{{ $prordonly->product_desc_en }}

Shop Now
@endforeach @endif

Popular Products

@foreach($productsrand as $mpopnew)
{{ $mpopnew->brands->brand_name }}
{{ $mpopnew->product_name_en }}
QAR @if($mpopnew->offer_datas) @php $offer_details=$mpopnew->offer_datas; $offer_price=$offer_details['product_offer_amount']; $offer_percentage=$offer_details['product_offer_percentage']; @endphp {{$mpopnew->product_price}} {{sprintf("%.2f",$offer_price)}} @else {{$mpopnew->product_price}} @endif
@endforeach
@endsection