I would like to make a component.
However It does not work.
I tried to @component('components.pulldown')@endcomponent however , it happnens 500 error.
so I used @exntend instead.
but it only displays upper side of the page.
@foreach ($users as $user)
<tr>
<td></td>
<td></td>
@if($user->country)
<td></td>
@else
<td>Select @extends('components.pulldown') </td>
@endif
</tr>
@endforeach
<select name="countries">
<option value="US">US</option>
<option value="UK">UK</option>
<option value="EU">EU</option>
<option value="JP">Japan</option>
</select>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire