@props([
    'placeholder' => 'Search...',
    'btn' => 'btn--primary',
    'dateSearch' => 'no',
    'keySearch' => 'yes',
    'propertyType' => 'no',
])

<form action="" method="GET" class="d-flex flex-wrap gap-2 property-filter">
    @if ($propertyType == 'yes')
        <x-property-type-field />
    @endif
    @if ($keySearch == 'yes')
        <x-search-key-field placeholder="{{ $placeholder }}" btn="{{ $btn }}" />
    @endif
    @if ($dateSearch == 'yes')
        <x-search-date-field />
    @endif

</form>
