@props([
    'action' => null,
    'method' => 'get',
])

<form
    method="{{ strtolower($method) === 'get' ? 'get' : 'post' }}"
    @if ($action) action="{{ $action }}" @endif
    {{ $attributes->merge(['class' => 'mb-4 flex flex-wrap items-end gap-3 rounded-[var(--radius-lg)] border border-[var(--color-border)] bg-[var(--color-card)] p-3']) }}
>
    @if (strtolower($method) !== 'get')
        @csrf
        @method($method)
    @endif

    {{ $slot }}
</form>
