From 333abbb8f559e12af08f9c8514b01a88c957cd5b Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 23 Jan 2021 10:10:41 -0800 Subject: [PATCH] Link to recipe show from recipe ingredients --- resources/views/recipes/show.blade.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/views/recipes/show.blade.php b/resources/views/recipes/show.blade.php index 7449ba0..7a80e2b 100644 --- a/resources/views/recipes/show.blade.php +++ b/resources/views/recipes/show.blade.php @@ -26,7 +26,16 @@
{{ \App\Support\Number::fractionStringFromFloat($ia->amount) }}
@if($ia->unit)
{{ $ia->unit }}
@endif -
{{ $ia->ingredient->name }}
+
+ @if($ia->ingredient->type === \App\Models\Recipe::class) + + {{ $ia->ingredient->name }} + + @else + {{ $ia->ingredient->name }} + @endif +
@if($ia->detail)
{{ $ia->detail }}
@endif
@endforeach