Advertisement
Guest User

Untitled

a guest
Nov 9th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <div class="form-group">
  2.                                 <label>تحصیلات</label>
  3.                                 <select name="educationId" class="js-example-basic-single form-control form-control-lg {{ $errors->has('educationId') ? 'is-invalid' : '' }}">
  4.                                     <option value="">انتخاب کنید</option>
  5.                                     @foreach(\App\Education::get() as $e)
  6.                                         <option value="{{ $e->id }}" {{ old('educationId', $record->educationId) == $e->id ? 'selected' : '' }}>{{ $e->type }}</option>
  7.                                     @endforeach
  8.                                 </select>
  9.                                 <div class="invalid-feedback">{{ $errors->first('educationId') }}</div>
  10.                             </div>
  11.  
  12. <script>
  13.         $(document).ready(function()
  14.         {
  15.             $('.js-example-basic-single').select2();}
  16. }
  17. <script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement