@extends('layouts.front-layout') @section('title') Home @endsection @section('content')
@forelse($get_sliders as $slider)

{{ $slider->first_heading ?: '' }}

{{ $slider->second_heading ?: '' }}

{{ $slider->short_paragraph ?: '' }}

{!! $slider->description ?: '' !!}

Shop Now
@empty

Slider Not Found

@endforelse

Shop By Category

@forelse($get_categories as $category) @empty

Categories Not Found

@endforelse

{{ $pageData['Home']['serve_you_heading'] ?? '' }}

{!! $pageData['Home']['serve_you_description'] ?? '' !!}

Shop Now

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

{{ $pageData['About']['sub_heading'] ?? '' }}

{!! $pageData['About']['description'] ?? '' !!}

Contact us

Featured Products

View All Products
@forelse($get_products as $product)
@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

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

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

@empty

Products Not Found

@endforelse

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

@forelse($get_testimonials as $testimonial)
    @for ($i = 1; $i <= $testimonial->star_rated; $i++)
  • @endfor @for ($j = $testimonial->star_rated + 1; $j <= 5; $j++)
  • @endfor

{!! $testimonial->description ?: '' !!}

{{ $testimonial->user_name ?: '' }}

{{ $testimonial->owner_name ?: '' }}

@empty

Testimonial Not Found

@endforelse
@include('front.includes.home-sell-sec') @endsection