@extends('layouts.app') @section('title') {{$products[0]?->categories?->name }} @endsection @section('head') @endsection @section('content') {{--
Sort by
@forelse ($products as $prods )
{{$prods->name }}{{$prods->name }}
-{{number_format($prods->discount,0)}}%
{{$prods->name}}
{{moneyFormat($prods->sale_price)}} {{moneyFormat($prods->price)}}
Add to Cart
@empty
No Item found
@endforelse

Categories

--}}
background

Product Categories

{{--
@foreach($categories as $category)
@if($category->image_path) {{ $category->name }} @else Category @endif
{{ $category->name }}
View Products
@endforeach
--}}

Categories

{{ $currentCategory->name ?? 'All Products' }}

@forelse ($products as $product)
{{ $product->name }}

{{ $product->name }}

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

{{-- View Details --}}
@empty

No products found in this category.

@endforelse
@endsection