daily.blade.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @extends('layout')
  2. @section('content')
  3. <style>
  4. .bd-placeholder-img {
  5. font-size: 1.125rem;
  6. text-anchor: middle;
  7. }
  8. @media (min-width: 768px) {
  9. .bd-placeholder-img-lg {
  10. font-size: 3.5rem;
  11. }
  12. }
  13. </style>
  14. <!-- Custom styles for this template -->
  15. <link href="css/form-validation.css" rel="stylesheet">
  16. </head>
  17. <body class="bg-light">
  18. <div class="container">
  19. <div class="py-5 text-center">
  20. <img class="d-block mx-auto mb-4" src="/docs/4.3.1/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72" alt="bootstrap">
  21. <h1>Top up account</h1>
  22. <p class="lead">Enter your email and the amount of money you want to add</p>
  23. </div>
  24. @if($errors->any())
  25. <ul>
  26. @foreach ($errors->all() as $error)
  27. <li>{{ $error }}</li>
  28. @endforeach
  29. </ul>
  30. @endif
  31. <form method="POST" class="needs-validation" novalidate="" action="{{action('PostsController@index')}}">
  32. {{csrf_field()}}
  33. <div class="row">
  34. <div class="col-md-6 mb-3">
  35. <label for="email">Email <span class="text-muted"></span></label>
  36. @if($errors->has('email')) has-danger @endif
  37. <input type="email" name="email" class="form-control" id="email" placeholder="you@example.com" value="" @if($errors->has('email')) is-invalid @endif>
  38. @error('email')
  39. <div class="invalid-feedback">
  40. Please enter a valid email address for shipping updates.
  41. </div>
  42. @enderror
  43. </div>
  44. <div class="col-md-6 mb-3">
  45. <label for="num">Enter the amount of money</label>
  46. @if($errors->has('num')) has-danger @endif
  47. <input type="text" name="num" class="form-control" id="num" @if($errors->has('num')) is-invalid @endif>
  48. @error('num')
  49. <div class="invalid-feedback">
  50. Enter the number.
  51. </div>
  52. @enderror
  53. </div>
  54. <hr class="mb-4">
  55. <button class="btn btn-primary btn-lg btn-block" type="submit">Continue to checkout</button>
  56. </form>
  57. </body>
  58. </html>
  59. @endsection