actions move to backend file

This commit is contained in:
Burak Civan
2022-06-27 15:10:32 +03:00
parent 990354b337
commit 57176801b3
2 changed files with 45 additions and 14 deletions

View File

@ -1,15 +1,10 @@
@props(['color', 'text', 'groupHover'])
<span
@class([
$color,
$groupHover ? 'group-hover:bg-full-2' : 'hover:bg-full-2',
'bg-no-repeat bg-0-2 bg-0-full bg-gradient-to-b from-transparent transition-backgroundSize'
])
>
{!! $slot !!}
</span>
@php
if (empty($color)) {
$color = 'to-black';
}
if (empty($groupHover)) {
$groupHover = false;
}
@endphp
<span class="bg-no-repeat bg-0-2 bg-0-full {{ $groupHover ? 'group-hover:bg-full-2' : 'hover:bg-full-2' }} bg-gradient-to-b from-transparent {{ $color }} transition-backgroundSize">
{!! $slot !!}
</span>