forked from eatvio/eatvio-infra
WIP recipe
This commit is contained in:
@@ -84,15 +84,17 @@
|
||||
$i = 0;
|
||||
@endphp
|
||||
<div class="col-12 col-lg px-0 flex-grow-1 text-lg-end">
|
||||
@foreach($rawTypes as $keyType => $type)
|
||||
<div class="--tags mb-3">
|
||||
<div class="mb-2 --f_bold"> {{ __('recipe.' . $keyType) }} </div>
|
||||
@foreach($type as $tagName => $tagsCount)
|
||||
<a href="?tag={{ $tagName }}" data-idx="{{ $i . ":" . $colorsMaxIndex }}" style="font-weight: {{$tagsCount * 200}};" class="btn {{ $colorClasses[$i] }} btn-sm border-0 --radius">{{ Str::of($tagName)->split('/-/')[1] }} <sup>{{ $tagsCount }}</sup></a>
|
||||
@php $i = ($colorsMaxIndex > $i) ? $i+1 : 0; @endphp
|
||||
@if(!is_null($rawTypes))
|
||||
@foreach($rawTypes as $keyType => $type)
|
||||
<div class="--tags mb-3">
|
||||
<div class="mb-2 --f_bold"> {{ __('recipe.' . $keyType) }} </div>
|
||||
@foreach($type as $tagName => $tagsCount)
|
||||
<a href="?tag={{ $tagName }}" data-idx="{{ $i . ":" . $colorsMaxIndex }}" style="font-weight: {{$tagsCount * 200}};" class="btn {{ $colorClasses[$i] }} btn-sm border-0 --radius">{{ Str::of($tagName)->split('/-/')[1] }} <sup>{{ $tagsCount }}</sup></a>
|
||||
@php $i = ($colorsMaxIndex > $i) ? $i+1 : 0; @endphp
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user