@if ($category->image && theme('show_category_image_banner', true))
{{ $category->name }}

{{ $category->name }}

@if ($category->description) @endif
@endif
@if (!$category->image || !theme('show_category_image_banner', true))

{{ $category->name }}

@if ($category->description)
{!! $category->description !!}
@endif
@endif
Categories
@if (count($childCategories) >= 1)
@foreach ($childCategories as $index => $childCategory) @php $hasImage = !empty($childCategory->image); @endphp
@if ($hasImage)
{{ $childCategory->name }}
@endif

{{ $childCategory->name }}

@if(theme('show_category_description', true) && $childCategory->description)
{!! $childCategory->description !!}
@endif
@endforeach
@endif
@foreach ($products as $index => $product) @php // Check if product is available $isAvailable = ($product->stock !== 0) && $product->price()->available; @endphp
@if(theme('small_images', false))
@if ($product->image)
{{ $product->name }} @if (!$isAvailable)
@endif
@endif

{{ $product->name }}

{{ $product->price() }}

@if($product->stock !== null)
@endif
@if ($isAvailable && theme('direct_checkout', false)) {{ __('product.add_to_cart') }} @elseif ($isAvailable) {{ __('general.view') }} @else @endif
@else @if ($product->image)
{{ $product->name }} @if (!$isAvailable)
@endif
@endif

{{ $product->name }}

@if(theme('direct_checkout', false) && $product->description)
{!! $product->description !!}
@endif

{{ $product->price() }}

@if($product->stock !== null)
{{ $product->stock }} in stock
@endif
@if ($isAvailable && theme('direct_checkout', false)) {{ __('product.add_to_cart') }} @elseif ($isAvailable) {{ __('general.view') }} @else @endif
@endif
@endforeach