@extends('layouts.app') @section('content')
@forelse($categories as $category)

{{$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)
Date Added: {{ date('d F Y', strtotime($product->publish_date))}}
Licence: {{$product->subcategory->subcategory_name}}
Category: {{$product->category->category_name}}
Price: {{setPriceFormat($product->price)}}
@empty

No products for this category.

@endforelse
@empty @endforelse
{!! $landing_page->page1_content !!}
{!! $landing_page->page2_content !!}
{!! $landing_page->page3_content !!}
@endsection @push('js') @endpush