<select name="location_id" id="location_id"  class="{{isset($chosen) ? 'chosen-select' : 'form-control select2'}}" required>
<option value="">--Select--</option>
@foreach(\App\Models\Location::Warehouses()->active()->valid()->get() as $location)
<option value="{{$location->id}}" {{isset($selected_id) ? ($selected_id == $location->id ? 'selected' : '') : (old('location_id') == $location->id ? 'selected' : '')}} @if ($location->is_freeze == 1) disabled @endif >{{$location->room_name }}  @if ($location->is_freeze == 1) (Room is frozen for cycle count) @endif</option>
@endforeach
</select>
