@php $paths = [ 'cocktails' => '', 'sushi' => '', 'shisha' => '', 'pastry' => '', 'location' => '', ]; $tab = [ 'cocktails' => ['sw' => '1.49', 'tf' => 'translate(0.75 -0.19) scale(0.9375)'], 'sushi' => ['sw' => '1.45', 'tf' => 'translate(-0.89 0.28) scale(0.966)'], 'shisha' => ['sw' => '1.67', 'tf' => 'translate(1.61 1.48) scale(0.838)'], 'pastry' => ['sw' => '1.5', 'tf' => 'translate(0 0.4) scale(0.96)'], 'location' => ['sw' => '1.68', 'tf' => 'translate(2 0.96) scale(0.833)'], ]; $inner = $paths[$slug] ?? ''; @endphp @if(($variant ?? 'tile') === 'tab') {!! $inner !!} @else {!! $inner !!} @endif