@extends('layouts.front-layout') @section('title') Category products @endsection @section('content')

Shop

Featured Products

@forelse($get_products as $products)
@if (Auth::check()) @if (Auth::user()->hasRole('vendor') || Auth::user()->hasRole('admin')) {{-- If the user is a vendor or admin, do not show the "Add to Cart" button --}} @else Add To cart @endif @else Add To cart @endif

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

$ {{ $products->price ?: '' }}

@empty

Products Not Found

@endforelse

loading more ….

@endsection