Here is my select option
I think the best answer to this question is this below
@if(count($categories) > 0) @foreach($categories as $category) id ,old('lawyer_fields')) ? "selected":"") }}> {{ $category->name }} @endforeach @else بدون انتخاب @endif