Compare commits

..

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

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

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

Loading…
Cancel
Save