Compare commits

..

3 Commits

  1. 4
      resources/views/admin/enquiry/show.blade.php
  2. 7
      resources/views/enquiry-form.blade.php
  3. 2
      resources/views/enquiry_mail.blade.php

@ -145,12 +145,10 @@
<span>Desired Study Field:</span>
<span>{{$enquiry->desired_study_field ?? 'N/A'}} </span>
</li>
@if(!is_null($enquiry->desired_location))
<li class="d-flex">
<span>Desired Location:</span>
<span>{{config('custom.states')[$enquiry->desired_location]}} </span>
<span>{{$enquiry->desired_location ?? 'N/A'}} </span>
</li>
@endif
</ul>
</div>

@ -248,9 +248,10 @@
<label for="name">Desired location (If Any)</label>
<select class="form-select" name="desired_location" id="desired-location">
<option hidden>Select your desired location</option>
@foreach(config('custom.states') as $in => $val)
<option value="{{$in}}" @if(old('desired_location') == $in) selected @endif>{{$val}}</option>
@endforeach
<option value="au" class="select-placeholder">Australia</option>
<option value="nz" class="select-placeholder">New Zeland</option>
<option value="ca" class="select-placeholder">Canada</option>
<option value="us" class="select-placeholder">USA</option>
</select>
</div>
</div>

@ -69,7 +69,7 @@
<b>Desired Field of Study:</b> {{ $enquiry->desired_study_field }}<br /><br />
@endif
@if(!is_null($enquiry->desired_location))
<b>Desired Location:</b> {{ config('custom.states')[$enquiry->desired_location] }}<br /><br />
<b>Desired Location:</b> {{ $enquiry->desired_location }}<br /><br />
@endif
</div>
</div>

Loading…
Cancel
Save