@extends('layouts.app') @section('title', $category->name) @section('content')
@php($typeLabels = [ 'shrimp' => 'Shrimp', 'neocaridina' => 'Neocaridina', 'caridina' => 'Caridina', 'snails' => 'Snails', 'plants' => 'Plants', 'aquariums' => 'Aquariums', 'accessories' => 'Accessories', 'food' => 'Food', 'treatments' => 'Treatments', 'decor' => 'Decor', 'spares' => 'Spares', ])

{{ $category->name }}

{{ $category->description }}

@if($category->is_featured)
Featured category
@endif
Filter products

Browse categories
@foreach($categories as $browseCategory) @php($browseCategoryLabel = $browseCategory->slug === 'health-nutrition' ? 'Feeds' : $browseCategory->name) {!! str_repeat('   ', (int) ($browseCategory->browse_depth ?? 0)) !!}{{ $browseCategoryLabel }} @endforeach
@forelse ($products as $product)
{{ $product->name }}
{{ $product->category?->name }}
{{ $product->name }}

{{ strip_tags((string) $product->short_description) }}

{{ $product->stock_quantity > 0 ? 'In stock' : 'Out of stock' }} @if($product->is_live_stock) ยท Livestock @endif
@money($product->current_price) View product
@empty
No products matched your filters in this category.
@endforelse
{{ $products->links() }}
@endsection