{{ old('title') == '1' ? 'selected' : '' }}
<div class="form-group col-md-6">
<label>Nationality {{$profiledata->nationality}}</label>
<select id="nationality" required="" name="nationality" class="form-control">
<option value="">--Select--</option>
<option {{ ($profiledata->nationality) == 'United State' ? 'selected' : '' }} value="United State">United State</option>
<option {{ ($profiledata->nationality) == 'India' ? 'selected' : '' }} value="India">India</option>
<option {{ ($profiledata->nationality) == 'Canada' ? 'selected' : '' }} value="Canada">Canada</option>
</select>
</div>
<option value="">--Select--</option>
@foreach($array as $key => $arr)
<option value="{{++$key}}" {{ $selectedValue == $key ? 'selected' : '' }}> {{ $arr }}</option>
@endforeach
@foreach ($categories as $item)
@if (isset($produits->categorie_id) && $item->id == $produits->categorie_id || old('categorie_id') == $item->id)
<option selected value="{{ $item->id }}">{{ $item->libelle }}</option>
@else
<option value="{{ $item->id }}">{{ $item->libelle }}</option>
@endif
@endforeach
<select name="version">
@foreach ($product->versions as $version)
<option value="{{ $version }}" @selected(old('version') == $version)>
{{ $version }}
</option>
@endforeach
</select>