i have dropdown boxes for user_id and week_id and once both selected i want to load all the data as rows. please advice.
<select class="form-control" id="combo" name="week_starting_date">
<option disabled selected>Select Week:</option>
@foreach($weeks as $weeks)
<option value="{{ $weeks->id }}">{{ $weeks->week_starting_date }}</option>
@endforeach
</select>
<select class="form-control" name="user_id">
<option disabled selected>Select Driver:</option>
@foreach($Role_user as $Roles)
@if($getUsers = $Roles->user()->get())
@foreach( $getUsers as $getUser)
<option value="{{ $getUser->id }}">{{ $getUser->username }}</option>
@endforeach
@endif
@endforeach
</select>
below is my controller
$getShifts = Shifts::Where('user_id', '=',$user_id)->Where('week_id','=',$week)->get();
how can i proceed
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire