12 lines
497 B
PHP
12 lines
497 B
PHP
@props(['active'])
|
|
|
|
@php
|
|
$classes = ($active ?? false)
|
|
? 'block pl-3 pr-4 py-2 border-l-4 border-yelmax text-base font-medium text-fogra hover:text-yelmax focus:outline-none focus:text-yelmax transition duration-150 ease-in-out'
|
|
: 'block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-fogra hover:text-yelmax focus:outline-none transition duration-150 ease-in-out';
|
|
@endphp
|
|
|
|
<a {{ $attributes->merge(['class' => $classes]) }}>
|
|
{{ $slot }}
|
|
</a>
|