1
2@if ($errors->any())
3 <div class="alert alert-danger">
4 <ul>
5 @foreach ($errors->all() as $error)
6 <li>{{ $error }}</li>
7 @endforeach
8 </ul>
9 </div>
10@endif
11
1<div class="form-group">
2<select id="province" name="province" class="form-control @error('province') is-invalid @enderror" >
3 <option>Choose...</option>
4 <option value="Western Cape" {{ ($user->learner->province == "Western Cape") ? 'selected' : ''}}>Western Cape</option>
5 <option value="Northern Cape" {{ ($user->learner->province == "Northern Cape") ? 'selected' : '' }}>Northern Cape</option>
6 <option value="Eastern Cape" {{ ($user->learner->province == "Eastern Cape") ? 'selected' : '' }}>Eastern Cape</option>
7 <option value="North West" {{ ($user->learner->province == "North West") ? 'selected' : '' }}>North West</option>
8 <option value="Free State" {{ ($user->learner->province == "Free State") ? 'selected' : '' }}> Free State</option>
9 <option value="Kwazulu Natal" {{ ($user->learner->province == "Kwazulu Natal") ? 'selected' : '' }}>Kwazulu Natal</option>
10 <option value="Gauteng" {{ ($user->learner->province == "Gauteng") ? 'selected' : '' }}>Gauteng</option>
11 <option value="Limpopo" {{ ($user->learner->province == "Limpopo") ? 'selected' : '' }}>Limpopo</option>
12 <option value="Mpumalanga" {{ ($user->learner->province == "Mpumalanga") ? 'selected' : '' }}>Mpumalanga</option>
13 </select>
14 @error('province')
15 <span class="invalid-feedback" role="alert">
16 <strong>{{ $message }}</strong>
17 </span>
18 @enderror
19 </div>
20