<select name="company_id" id="" class="form-control"> <option value="">Select Company</option> @foreach ($companies as $company) <option value="{{$company->id}}" {{($company->id == $employee->company_id) ? 'selected': ''}}>{{$company->name}}</option> @endforeach </select>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter