diff --git a/resources/views/components/card.blade.php b/resources/views/components/card.blade.php index 70ade34..6553e6c 100644 --- a/resources/views/components/card.blade.php +++ b/resources/views/components/card.blade.php @@ -1,6 +1,7 @@ +@php use Illuminate\View\ComponentSlot; @endphp @props(['header' => null, 'body' => null])
merge(['class' => 'h-full flex flex-col']) }}> - @if($header) + @if($header instanceof ComponentSlot)
attributes->merge(['class'=>'bg-gray-700 text-white p-3 font-semibold rounded-t-md']) }}> {{ $header }}