@props([ 'id' => 'select-' . uniqid(), 'label' => null, 'options' => [], // Expects an associative array: ['value' => 'Text', ...] or a simple array: ['Text1', 'Text2'] 'selected' => null, 'placeholder' => 'گزینه ای را انتخاب کنید', 'name' => null // Added name attribute for form submission ])
@if ($label !== null) @endif