@forelse($categories as $category)
@empty
@endforelse
{{$category->category_name}}
@php $title = 'Home Page '.$category->category_name @endphp
@if($advertisement = \App\Models\Advertisement::Active()->where('title', 'LIKE', $title)->first())
@if($advertisement->description != '')
@endif
@endif
@forelse ($category->homeProducts() as $product)
@empty
Date Added:
{{ date('d F Y', strtotime($product->publish_date))}}
Licence:
{{$product->subcategory->subcategory_name}}
Category:
{{$product->category->category_name}}
Price:
{{setPriceFormat($product->price)}}
No products for this category.
@endforelse