@extends('layouts.app') @section('title', 'Shrimp Suitability Calculator') @push('styles') @endpush @section('content')

Shrimp Suitability Calculator

Enter your tank parameters once and we will check them against all visible shrimp currently in stock or available to backorder.

@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
Reset
@if($results !== null) @php($recommended = $results->filter(fn ($result) => $result['evaluation']['score'] >= 55)) @if($recommended->isEmpty())
No currently available shrimp look suitable for these inputs. You can still review the closest matches below.
@else
{{ $recommended->count() }} shrimp option{{ $recommended->count() === 1 ? '' : 's' }} look potentially suitable or borderline for this setup.
@endif
@forelse($results as $result) @php($product = $result['product']) @php($evaluation = $result['evaluation'])
{{ $product->category?->name }}

{{ $product->name }}

@money($product->current_price) · {{ $product->stock_quantity > 0 ? 'In stock' : 'Backorder available' }}
{{ $evaluation['status'] }}
Score: {{ $evaluation['score'] }}%

{{ $evaluation['summary'] }}

@if (!empty($evaluation['warnings']))
    @foreach ($evaluation['warnings'] as $warning)
  • {{ $warning }}
  • @endforeach
@endif
@foreach ($evaluation['checks'] as $label => $check)
{{ $label }}
Input: {{ $check['value'] }}
Target: {{ $check['min'] }} - {{ $check['max'] }}
{{ $check['inRange'] ? 'In range' : 'Out of range' }}
@endforeach
@if (!empty($evaluation['snailWarnings']))

Snail compatibility notes

@foreach ($evaluation['snailWarnings'] as $warning)
{{ $warning['snail'] }} - {{ str_replace('_', ' ', $warning['level']) }}
{{ $warning['notes'] }}
@endforeach
@endif
@empty
No shrimp products are currently available to check.
@endforelse
@endif
@endsection