title: How do I add a link to the drop down select option?
body: <p><a href="https://i.stack.imgur.com/YCbzD.png" rel="nofollow noreferrer">This is an image of my drop down select showing islands e.g Maiana as parent and culprits as child e.g Batiboa Kumeto etc</a>I just wondering to know how to  add a link in the select option and to pass the id to another form ?. </p>
  
  <p>I tried to create a drop down shown in the image above</p>
  
  <p>Maiana
      - Koriaue Miruango
      - Batiboa Kumeto</p>
  
  <p>Abaiang
      - Erenawa Aeete</p>
  
  <p>but what I can not achieve is to add a link 
  to Koriaue Miruango,   - Batiboa Kumeto under Maiana Island, and the rest. Once one of the name e.g Batiboa Kumeto is clicked an id is passed to load another form.</p>
  
  <p>appreciate your help </p>
  
  <p>My Island Model</p>
  
  <pre><code>&lt;?php
  
  namespace App\Model\Enforcement;
  use Illuminate\Database\Eloquent\Model;
  
  class Island extends Model
  {
      protected $table = 'islands';
  
      protected $fillable = ['island_name'];
  
      public function culprits(){
          return $this-&gt;hasMany(Culprit::class, 'island_id');
      }
   }
  </code></pre>
  
  <p>My Culprit Model</p>
  
  <pre><code>&lt;?php
  
  namespace App\Model\Enforcement;
  use Illuminate\Database\Eloquent\Model;
  
  class Culprit extends Model
  {
      protected $table = 'culprits';
      protected $fillable =  ['island_id','first_name','last_name','age','home_island'];
  
     public function island(){
         return $this-&gt;belongsTo(Island::class, 'island_id');
     }
  
     public function crimes(){
         return $this-&gt;hasMany(Crime::class);
     }
  }
  </code></pre>
  
  <p>My Controller</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\Frontend\Enforcement;
  use App\Model\Enforcement\Culprit;
  use App\Model\Enforcement\Island;
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  
  class TestController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          $islands = Island::with(['culprits'])-&gt;get();
         // $culprits = Culprit::get();
  
          // dd($islands, $culprits);
  
  
         return  view('backend.enforcement.admin.tests.show',compact('islands','culprits'));
  }
  
      /**
       * Show the form for creating a new resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function create($id)
      {
          $culprit = Culprit::findOrFail($id);
          $offences = Offence::pluck('name','id')-&gt;all();
          $fishedareas = Fishedarea::pluck('fishedarea_name','id')-&gt;all();
  
       return view('backend.enforcement.admin.tests.create',compact('culprit','offences','fishedareas'));
  }
  </code></pre>
  
  <p>My Route</p>
  
  <pre><code>   Route::resource('/enforcements/tests', 'Frontend\Enforcement   \TestController');
    Route::get('/enforcements/tests/{id?}', 'Frontend\Enforcement\TestController@create')-&gt;name('tests.create');
  </code></pre>
  
  <p>My index view</p>
  
  <pre><code>&lt;select data-placeholder="Select island" style="width:350px;"   class="chosen-select" tabindex="5"&gt;
  &lt;option value=""&gt;&lt;/option&gt;
  @foreach ($islands as $island)
          &lt;optgroup value="{{$island-&gt;id}}" label="    {{$island-&gt;island_name}}"&gt;
          @foreach($island-&gt;culprits as $culprit)
          &lt;option value = "{{$culprit-&gt;id}}"&gt; {{$culprit-&gt;first_name}}&lt;a  href="{{route('tests.create', $culprit-&gt;id)}}"&gt; {{$culprit-&gt;last_name}}    &lt;/a&gt;&lt;/option&gt;
          &lt;/optgroup&gt;
          @endforeach
  @endforeach
  &lt;/select&gt;
  </code></pre>
  
  <p>My Create Form</p>
  
  <pre><code>                       &lt;div&gt;
  
                          {!! Form::open(array('url' =&gt; route('tests.store'))) !!}
                          {!! Form::hidden('id', $culprit-&gt;id, old('id'), ['class' =&gt; 'form-control']) !!} 
                          {!! Form::label('offence_id','Offence Name')!!}
                          {!! Form::select('offence_id',['' =&gt; 'Choose Offence Type']+ $offences, null, ['class'=&gt;'form-control'])!!}
                          {!! Form::label('fishedarea_id','Fished Area')!!}
                          {!! Form::select('fishedarea_id',['' =&gt; 'Choose Fished Areas']+ $fishedareas, null, ['class'=&gt;'form-control'])!!}
                          {!! Form::label('crime_date','Date')!!}
                          {!! Form::date('crime_date',null,['class'=&gt;'form-control'])!!}
                          {!! Form::label('remarks','Remarks')!!}
                          {!! Form::textarea('remarks',null,['class'=&gt;'form-control'])!!}
  
                         &lt;/div&gt;   
  
  
                         &lt;div class="form-group"&gt;
  
                         &lt;button class="btn btn-primary"&gt;Add New&lt;/button&gt;
  
                         &lt;/div&gt;
  
                          &lt;div&gt;
  
              {!! Form::close() !!}
                      &lt;/div&gt;
  </code></pre>