shareit/resources/views/product/addItemForm.blade.php

14 lines
637 B
PHP
Raw Normal View History

2018-09-16 23:43:14 +00:00
<form method="POST" action="/item">
{{ csrf_field() }}
<div class="container-fluid">
<div class="form-group row mt-2">
<div class="col-sm-2 col-lg-1"><label for="product">Item:</label></div>
<div class="col-xs-12 col-sm mb-3"><input type="text" class="form-control" name="item" id="item" placeholder="One Hundred Years of Solitude" required></div>
<input type="hidden" name="product_id" id="product_id" value="{{ $product['id'] }}" required>
<div class="col-sm-2 col-lg-1 mr-4"><button type="submit" class="btn btn-primary">Insert</button></div>
</div>
</div>
@include ('layouts.errors')
</form>