@extends('layouts.app') @section('title', $product->name) @push('styles') @endpush @section('content')
{{ $product->name }}
@if($product->images->count() > 1)
@endif
{{ $product->category?->name }}

{{ $product->name }}

@money($product->current_price) SKU: {{ $product->sku }} {{ $product->stock_quantity > 0 ? 'In stock' : 'Out of stock' }}
{!! $product->description !!}
@if($product->width_cm || $product->height_cm || $product->depth_cm)
Size: @if($product->width_cm) W {{ rtrim(rtrim(number_format((float) $product->width_cm, 2, '.', ''), '0'), '.') }}cm @endif @if($product->height_cm) · H {{ rtrim(rtrim(number_format((float) $product->height_cm, 2, '.', ''), '0'), '.') }}cm @endif @if($product->depth_cm) · D {{ rtrim(rtrim(number_format((float) $product->depth_cm, 2, '.', ''), '0'), '.') }}cm @endif
@endif @if ($product->is_live_stock)
Live animal shipping notice: ensure someone is available to receive livestock deliveries promptly and review the DOA and shipping policy before ordering.
@endif @if ($product->allow_backorders)
Backorder notice: there is no confirmed delivery date yet. We will keep you updated weekly, and if you want to cancel at any time just let us know.
@endif @if (! $product->is_returnable)
Return policy: this item cannot be returned once dispatched unless it is faulty. Livestock and plants also cannot be refused once they have been in a tank.
@endif
@csrf
@if ($product->isStarterKit()) @php($kitProducts = $product->starterKitProducts()) @php($kitContentsTotal = $product->starterKitContentsTotal()) @php($kitSavingsAmount = $product->starterKitSavingsAmount())

What's Included

This kit groups together the products below so customers can buy the setup as one bundle.

Contents total: @money($kitContentsTotal)
@if($kitSavingsAmount > 0)
Save @money($kitSavingsAmount)
@endif @if(filled($product->meta['kit_savings_text'] ?? null))
{{ $product->meta['kit_savings_text'] }}
@endif
@if($kitProducts->isNotEmpty())
@foreach($kitProducts as $kitProduct)
{{ $kitProduct->category?->name }}
{{ $kitProduct->name }}
{{ strip_tags((string) $kitProduct->short_description) }}
@money($kitProduct->current_price)
@endforeach
@else
No kit items have been linked to this starter kit yet.
@endif
@endif

Care notes

{!! $product->care_notes ?: 'Care notes can be managed per product in the admin panel.' !!}

Compatibility notes

{!! $product->compatibility_notes ?: ($product->isShrimpType() ? 'Keep shrimp with conservative tank mates and stable parameters.' : 'Review temperament, space, and tank mate suitability before mixing species.') !!}

Shipping notes

{!! $product->shipping_notes ?: 'Courier and tracking information appears during checkout and in the customer account area.' !!}
@if ($product->isShrimpType())

Shrimp parameter profile

pH
{{ $product->ph_min }} - {{ $product->ph_max }}
GH
{{ $product->gh_min }} - {{ $product->gh_max }}
KH
{{ $product->kh_min }} - {{ $product->kh_max }}
TDS
{{ $product->tds_min }} - {{ $product->tds_max }}
Temperature
{{ $product->temperature_min }} - {{ $product->temperature_max }} °C
@if($product->difficulty_level)
Difficulty
{{ $product->difficulty_level }}
@endif

Suitability calculator

@csrf
Fish currently kept Open to choose tank mates
@foreach ($fishSpecies as $fish)
@endforeach
Snails currently kept Open to choose snail species
@foreach ($snailSpecies as $snail)
@endforeach
@if (session('compatibility_result')) @php($result = session('compatibility_result'))
{{ $result['status'] }} ({{ $result['score'] }}%)
{{ $result['summary'] }}
@if (!empty($result['warnings']))
Warnings
    @foreach ($result['warnings'] as $warning)
  • {{ $warning }}
  • @endforeach
@endif
@foreach ($result['checks'] as $label => $check)
{{ $label }}
Input: {{ $check['value'] }}
Target: {{ $check['min'] }} - {{ $check['max'] }}
{{ $check['inRange'] ? 'In range' : 'Out of range' }}
@endforeach
@if ($result['fishWarnings'])

Fish compatibility notes

@foreach ($result['fishWarnings'] as $warning)
{{ $warning['fish'] }} - {{ str_replace('_', ' ', $warning['level']) }}
{{ $warning['notes'] }}
@endforeach
@endif @if ($result['snailWarnings'])

Snail compatibility notes

@foreach ($result['snailWarnings'] as $warning)
{{ $warning['snail'] }} - {{ str_replace('_', ' ', $warning['level']) }}
{{ $warning['notes'] }}
@endforeach
@endif @endif
@endif @if($relatedProducts->count())

Related products

@foreach($relatedProducts as $related) @endforeach
@endif
@endsection @push('scripts') @endpush