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

{{ $pageData['Product']['heading'] ?? '' }}

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
{{ $get_products->appends(request()->query())->links() }}
{{ $get_products->appends(request()->query())->links() }}
@include('front.includes.home-sell-sec') @endsection