In fact, I have a form Payment with the following fields:
date_payment, type_seance, number_seance, price, total, fk_student, method_paiement
I want to retrieve the item of my table Payment towards my form Course
In my form Course I have the following fields:
date_seance, hour_start, hour_end, fk_student, fk_former, fk_motorbike, fk_payment
I retrieve the item but my problem is in my form create.course I have several items...
I want to know if I can retrieve directly the item of my date_payment ?
Without displaying all the items (the dates)
Here is an idea of my dropdownlist:
<fieldset class="form-group ">
<label for="company-content">Date payment</label>
<select name="fk_payment" id="fk_paiement" class="form-control" required="required" value=""/>
@foreach($payments as $payment)
<option value="" >
</option>
@endforeach
{!! $errors->first('fk_payment', '<span class="help-block">:message</span>') !!}
</select>
</fieldset>
via Chebli Mohamed



Aucun commentaire:
Enregistrer un commentaire