@extends('layouts.front-layout') @section('title') Our Product @endsection @section('content') @php $heading = ""; $heading = request()->query('search') ?? $pageData['Product']['top_banner_title'] ; @endphp {{ $heading }} @forelse($get_categories as $category) {{ $category->category_name ?: '' }} {{ $category->product_count }} Products @empty Category Data Not Available @endforelse Stock Status On Sale In Stock Submit Top Rated Products @foreach($topRatedProducts as $product) {{ $product->product_name }} ${{ number_format($product->product_price, 2) }} @endforeach Home / Shop Default Sorting Sort by Latest Sort by Price: Low to High Sort by Price: High to Low @forelse($get_products as $product) {{ $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 @php $sort = request('sort', ''); $inStock = request('in_stock') ? 'on' : ''; $totalPages = $get_products->lastPage(); $currentPage = $get_products->currentPage(); $maxPagesToShow = 10; $additionalPagesToShow = 10; $startPage = max(1, $currentPage - 2); $endPage = min($totalPages, $currentPage + $additionalPagesToShow); @endphp @if ($get_products->onFirstPage()) Previous @else Previous @endif @if($get_products->count() > 0) Show Pages: @if($startPage > 1) 1 @if($startPage > 2) ... @endif @endif @for($page = $startPage; $page <= $endPage; $page++) {{ $page }} @endfor @if($endPage < $totalPages) @if($endPage < $totalPages - 1) ... @endif {{ $totalPages }} @endif @endif @if ($get_products->hasMorePages()) Next @else Next @endif Please Login × You need to log in to add items to your wishlist. Login Now @endsection @section('script') @endsection
${{ number_format($product->product_price, 2) }}
You need to log in to add items to your wishlist.