Files
Website/resources/views/components/card.blade.php
2023-11-27 08:29:48 +10:00

11 lines
317 B
PHP

@if (isset($href))
<a href="{{ $href }}"
{{ $attributes->merge(['class' => 'bg-gray-50 border border-gray-300 rounded-lg p-6']) }}>
{{ $slot }}
</a>
@else
<div {{ $attributes->merge(['class' => 'bg-gray-50 border border-gray-300 rounded-lg p-6']) }}>
{{ $slot }}
</div>
@endif