SHARE
TWEET

Untitled

a guest Nov 9th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top