+
+ {{ $food->name }}@if($food->detail), {{ $food->detail }}@endif
+
+ @if($food->brand)
+
+ {{ $food->brand }}
+
+ @endif
+
+ Serving size {{ \App\Support\Number::fractionStringFromFloat($food->serving_size) }}
+ {{ $food->serving_unit }}
+ ({{ $food->serving_weight }}g)
- @endif
-
- Serving size {{ \App\Support\Number::fractionStringFromFloat($food->serving_size) }}
- {{ $food->serving_unit }}
- ({{ $food->serving_weight }}g)
+
No results found.
@endforelse
diff --git a/resources/views/recipes/edit.blade.php b/resources/views/recipes/edit.blade.php
index 553bce6..8fd5716 100644
--- a/resources/views/recipes/edit.blade.php
+++ b/resources/views/recipes/edit.blade.php
@@ -70,10 +70,11 @@
$amount = \App\Support\Number::fractionStringFromFloat($foodAmount->amount);
$unit = $foodAmount->unit;
$food_id = $foodAmount->food->id;
+ $food_name = $foodAmount->food->name;
$detail = $foodAmount->detail;
} else {
$foodAmount = new \App\Models\FoodAmount();
- $amount = $food_id = $unit = $detail = null;
+ $amount = $food_id = $food_name = $unit = $detail = null;
}
@endphp
@@ -86,12 +87,9 @@
:selectedValue="old('foods_unit.' . $i, $unit)">
-{{-- --}}
-{{-- --}}
-{{-- --}}
-
+