My beer compendium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.1 KiB

3 years ago
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row justify-content-center">
  5. <div class="col-md-8">
  6. <div class="card">
  7. <div class="card-header"><a href="/home">Home</a> -> {{ __('Grain Bills') }}<span class="backlink"><a href="{{url()->previous()}}">Go Back</a></span></div>
  8. <div class="card-body">
  9. <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#addModal" type="button" name="button" >
  10. Add Grain Bill
  11. </button>
  12. <hr />
  13. <!-- This piece of code is for error messages display purposes -->
  14. @include('inc.messages')
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. <!-- this code if for the modal -->
  21. <div class="modal fade bg-primary text-dark" tabindex="-1" role="dialog" id="addModal">
  22. <div class="modal-dialog" role="document">
  23. <div class="modal-content">
  24. <div class="modal-header">
  25. <h5 class="modal-title">Add Grain Bill</h5>
  26. <button type="button" class="close" data-dismiss="modal" aria-label="Close" >
  27. <span aria-hidden="true">x</span>
  28. </button>
  29. </div>
  30. <div class="modal-body">
  31. <form class="" action="{{route('grainbills.store')}}" method="post">
  32. {{csrf_field()}}
  33. <div class="form-group">
  34. <label for="">Beer ID</label>
  35. <input type="text" class="form-control" name="beer_id">
  36. </div>
  37. <div class="form-group">
  38. <label for="">Grain ID</label>
  39. <input type="text" class="form-control" name="grain_id" >
  40. </div>
  41. <div class="form-group">
  42. <label for="">Amount</label>
  43. <input type="text" class="form-control" name="amount">
  44. </div>
  45. <div class="form-group">
  46. <label for="">% of Total Grain Bill</label>
  47. <input type="text" class="form-control" name="grain_bill">
  48. </div>
  49. <input type="submit" name="submit" value="Submit" class="btn btn-success">
  50. </form>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. @endsection