- Removed redundant custom collections and `Wireable` trait from DTOs. - Replaced custom collection properties with `DataCollection`. - Updated role management views to use improved components, including avatars and toggle. - Refined Blade directives for scoped slots. - Minor cleanup in configuration and dependencies.
12 lines
336 B
PHP
12 lines
336 B
PHP
@props(['icon' => null])
|
|
<button {{$attributes->twMerge(['class' => 'rounded-lg border border-gray-300 px-4 py-2 text-gray-700'])}}>
|
|
<div class="gap-2 flex items-center">
|
|
@if($icon)
|
|
<span class="block">
|
|
@svg($icon, 'w-4 h-4')
|
|
</span>
|
|
@endif
|
|
{{$slot}}
|
|
</div>
|
|
</button>
|