Created
October 16, 2018 03:40
-
-
Save jorgecc/4e129ecb47216fec901511dfe414b1c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-12"> | |
<form class="" method="post" > | |
<div class="form-group"> | |
<label class="">Name</label> | |
<input type="text" class="form-control" placeholder="Enter a Product" name="frm_name" | |
value="{{$product['name']}}"> | |
<small class="text-danger">{{$messages->get('frm_name')->firstError()}}</small> | |
</div> | |
<div class="form-group"> | |
<label>Price</label> | |
<input type="number" name="frm_price" class="form-control" placeholder="Price" value="{{$product['price']}}"> | |
<small class="text-danger">{{$messages->get('frm_price')->firstError()}}</small> | |
</div> | |
<button type="submit" value="1" name="frm_button" class="btn btn-primary">Submit</button> | |
</form> | |
</div> | |
</div> | |
@if($messages->get('general')->countError()>0) | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="alert alert-danger" role="alert" > <button type="button" class="close" data-dismiss="alert">×</button> | |
<h4 class="alert-heading">Error</h4> | |
<p class="mb-0">{{$messages->get('general')->firstErrorOrWarning()}}</p> | |
</div> | |
</div> | |
</div> | |
@endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment