|
@@ -99,10 +99,9 @@
|
|
|
<label for="city_id">Città</label>
|
|
<label for="city_id">Città</label>
|
|
|
<select class="form-select @error('city_id') is-invalid @enderror" id="city_id" name="city_id" required>
|
|
<select class="form-select @error('city_id') is-invalid @enderror" id="city_id" name="city_id" required>
|
|
|
<option value="" @if (!$city_id) selected @endif disabled>Seleziona</option>
|
|
<option value="" @if (!$city_id) selected @endif disabled>Seleziona</option>
|
|
|
- {{-- @foreach ($cities as $city)
|
|
|
|
|
- <option value="{{$city->id}}" @if ($city_id==$city->id) selected @endif>{{$city->name}}</option>
|
|
|
|
|
- @endforeach --}}
|
|
|
|
|
- <option value="city_1">city_1</option>
|
|
|
|
|
|
|
+ @foreach ($cities as $city)
|
|
|
|
|
+ <option value="{{$city->id}}" @if ($city_id == $city->id) selected @endif>{{$city->name}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
</select>
|
|
</select>
|
|
|
@error('city_id')
|
|
@error('city_id')
|
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
|
@@ -114,10 +113,9 @@
|
|
|
<label for="country_id">Stato</label>
|
|
<label for="country_id">Stato</label>
|
|
|
<select class="form-select @error('country_id') is-invalid @enderror" id="country_id" name="country_id" required>
|
|
<select class="form-select @error('country_id') is-invalid @enderror" id="country_id" name="country_id" required>
|
|
|
<option value="" @if (!$country_id) selected @endif disabled>Seleziona</option>
|
|
<option value="" @if (!$country_id) selected @endif disabled>Seleziona</option>
|
|
|
- {{-- @foreach ($countries as $country)
|
|
|
|
|
- <option value="{{$country->id}}" @if ($country_id==$country->id) selected @endif>{{$country->name}}</option>
|
|
|
|
|
- @endforeach --}}
|
|
|
|
|
- <option value="country_1">country_1</option>
|
|
|
|
|
|
|
+ @foreach ($countries as $country)
|
|
|
|
|
+ <option value="{{$country->id}}" @if ($country_id == $country->id) selected @endif>{{$country->name}}</option>
|
|
|
|
|
+ @endforeach
|
|
|
</select>
|
|
</select>
|
|
|
@error('country_id')
|
|
@error('country_id')
|
|
|
<div class="invalid-feedback">{{ $message }}</div>
|
|
<div class="invalid-feedback">{{ $message }}</div>
|