@extends('admin.layouts.admin') @section('title', 'Recetas') @php $fmt = fn ($v) => $v !== null ? rtrim(rtrim(number_format((float) $v, 3, ',', '.'), '0'), ',') : null; $statusBadge = ['published' => 'badge-active', 'draft' => 'badge-paused', 'pending' => 'badge-warn', 'rejected' => 'badge-warn']; @endphp @section('content')
Todas las recetas del catálogo.
| Imagen | Receta | Fermento | Categoría | Rinde | Ingr. | Lotes | Estado | Acciones |
|---|---|---|---|---|---|---|---|---|
|
@if($recipe->image_url)
|
{{ $recipe->name }}
@if($recipe->is_official)
oficial
@endif
{{ $recipe->slug }}
|
{{ $recipe->guide?->name ?? '—' }} | @if($recipe->guide?->category) {{ $recipe->guide->category->name }} @else — @endif | @if($recipe->base_yield_value){{ $fmt($recipe->base_yield_value) }} {{ $recipe->base_yield_unit }}@else—@endif | {{ $recipe->ingredients_count }} | {{ $recipe->batches_count }} | {{ $recipe->status }} |
Editar
@if($recipe->batches_count === 0 && $recipe->guide_id)
@endif
|
| No hay recetas con esos filtros. | ||||||||