- Add TableHeader DTO - Refactor Toggle component to have checked prop, as wire:model does not work - add null collasing for php 8.5 strict compatibility in scope directive - refactor card component so that actions stay on the right - make button component scaled small on active and change color on hover
20 lines
639 B
PHP
20 lines
639 B
PHP
@props(['title', 'icon', 'actions'])
|
|
<div {{$attributes->twMerge('rounded-xl border border-gray-200 p-4 shadow-xs bg-white')}}>
|
|
@isset($title)
|
|
<div class="p-4 flex justify-between border-b border-gray-200">
|
|
<h2 class="font-medium flex items-center gap-x-2">
|
|
@isset($icon)
|
|
<span class="w-5 h-5">@svg($icon)</span>
|
|
@endisset
|
|
{{ __($title) }}
|
|
</h2>
|
|
<div class="">
|
|
@isset($actions)
|
|
{{$actions}}
|
|
@endisset
|
|
</div>
|
|
</div>
|
|
@endisset
|
|
{{$slot}}
|
|
</div>
|