I have 4 types of subscriptions(monthly, 3 months, 6 months and yearly). I successfully inserted the value with relation to my product model. Now i need to make an update view.
@foreach($product->subscriptions as $subscription)
<input class="form-check-input" name="availability[]" type="checkbox" value="" checked>
<label class="form-check-label" for="materialUnchecked"><b></b></label>
<input type="text" name="price[]" value="">
@endforeach
I want to display the rest of the subscriptions availability unchecked if the result is less than 4. For example the user choose only monthly and yearly. now in my edit view i want to display also the other two (3 months and 6 months options) incase they want to add something. How to do it?
Aucun commentaire:
Enregistrer un commentaire