mirror of https://github.com/kcal-app/kcal.git
Add basic recipe time display
This commit is contained in:
parent
98c961b7d1
commit
700bc380a2
|
|
@ -26,6 +26,22 @@
|
||||||
{{ implode(', ', $recipe->tags->pluck('name')->all()) }}
|
{{ implode(', ', $recipe->tags->pluck('name')->all()) }}
|
||||||
</section>
|
</section>
|
||||||
@endif
|
@endif
|
||||||
|
@if($recipe->time_total > 0)
|
||||||
|
<section class="flex space-x-4">
|
||||||
|
<div>
|
||||||
|
<h1 class="mb-2 font-bold text-lg">Prep time</h1>
|
||||||
|
<p class="mb-2 text-gray-800">{{ $recipe->time_prep }} minutes</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h1 class="mb-2 font-bold text-lg">Active time</h1>
|
||||||
|
<p class="mb-2 text-gray-800">{{ $recipe->time_active }} minutes</p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h1 class="mb-2 font-bold text-lg">Total time</h1>
|
||||||
|
<p class="mb-2 text-gray-800">{{ $recipe->time_total }} minutes</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
@endif
|
||||||
@if($recipe->description)
|
@if($recipe->description)
|
||||||
<section>
|
<section>
|
||||||
<h1 class="mb-2 font-bold text-2xl">Description</h1>
|
<h1 class="mb-2 font-bold text-2xl">Description</h1>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue