Modify card component
This commit is contained in:
parent
8dc75b2656
commit
61f6e3d4aa
|
|
@ -1,6 +1,7 @@
|
||||||
|
@php use Illuminate\View\ComponentSlot; @endphp
|
||||||
@props(['header' => null, 'body' => null])
|
@props(['header' => null, 'body' => null])
|
||||||
<div {{ $attributes->merge(['class' => 'h-full flex flex-col']) }}>
|
<div {{ $attributes->merge(['class' => 'h-full flex flex-col']) }}>
|
||||||
@if($header)
|
@if($header instanceof ComponentSlot)
|
||||||
<div {{ $header->attributes->merge(['class'=>'bg-gray-700 text-white p-3 font-semibold rounded-t-md']) }}>
|
<div {{ $header->attributes->merge(['class'=>'bg-gray-700 text-white p-3 font-semibold rounded-t-md']) }}>
|
||||||
{{ $header }}
|
{{ $header }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue