vito/resources/views/components/server-provider-item.blade.php
Saeed Vaziry 5c72f12490 init
2023-07-02 12:47:50 +02:00

13 lines
461 B
PHP

@props(['active'])
@php
$class = 'flex w-full items-center justify-center rounded-md border-2 bg-primary-50 px-3 pt-3 pb-2 dark:bg-primary-500 dark:bg-opacity-10 cursor-pointer';
$classes = ($active ?? false)
? $class . ' border-primary-600'
: $class . ' border-primary-200 dark:border-primary-600 dark:border-opacity-20'
@endphp
<div {{ $attributes->merge(['class' => $classes]) }}>
{{ $slot }}
</div>