@extends('layouts.front-layout') @section('title') Our Product @endsection @section('content') @php $heading = ""; $heading = request()->query('search') ?? $pageData['Product']['top_banner_title'] ; @endphp
img

{{ $heading }}

Stock Status

Top Rated Products
@foreach($topRatedProducts as $product)
{{ $product->product_name }}
{{ $product->product_name }}

${{ number_format($product->product_price, 2) }}

@endforeach
@forelse($get_products as $product)
img

{{ $product->product_name ?: '' }}

{!! \Illuminate\Support\Str::limit(strip_tags($product->description), 80, '...') !!}

${{ $product->product_price ?: '' }}
    @php $wishlist = \App\Models\Wishlist::where('product_id', $product->id) ->where('user_id', auth()->id()) ->first(); @endphp
  • @if(auth()->check()) @if(!$wishlist) @else @endif @else @endif
  • @if (Auth::check()) @if (Auth::user()->hasRole('admin')) @else @if ($product->stock > 0)
  • Add to Cart
  • @else Status:{{ $product->stock === 0 ? 'Out Of Stock' : '' }} @endif @endif @else @if ($product->stock > 0)
  • Add to Cart
  • @else Status:{{ $product->stock === 0 ? 'Out Of Stock' : '' }} @endif @endif
@empty

No Product Available

@endforelse
@endsection @section('script') @endsection