@props([ 'body' => true, 'headerCls' => '', 'bodyCls' => '', 'color' => null, ]) @switch(@$framework) @case('uikit') @php($cls['card'] = 'uk-card') @php($cls['color'] = $color ? 'uk-card-' . ($color ?? 'default') : null) @php($cls['card-header'] = 'uk-card-header') @php($cls['card-body'] = 'uk-card-body') @php($cls['card-footer'] = 'uk-card-footer') @break @default @php($cls['card'] = 'card') @php($cls['color'] = $color ? 'text-bg-' . ($color ?? 'primary') : null) @php($cls['card-header'] = 'card-header') @php($cls['card-body'] = 'card-body') @php($cls['card-footer'] = 'card-footer') @break @endswitch
@isset($header)
attributes }}> {{ $header }}
@endisset @if($body)
$body, $bodyCls])> {{$slot}}
@else {{$slot}} @endif @isset($footer)
attributes }}> {{ $footer }}
@endisset