Advertisement
SpykeRel04D

Untitled

Nov 10th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. @extends('base')
  2. @section('main')
  3. <div class="row">
  4. <div class="col-sm-8 offset-sm-2">
  5. <h1 class="display-3">Add a contact</h1>
  6. <div>
  7. @if ($errors->any())
  8. <div class="alert alert-danger">
  9. <ul>
  10. @foreach ($errors->all() as $error)
  11. <li>{{ $error }}</li>
  12. @endforeach
  13. </ul>
  14. </div><br />
  15. @endif
  16. <form method="post" action="{{ route('contacts.store') }}">
  17. @csrf
  18. <div class="form-group">
  19. <label for="first_name">First Name:</label>
  20. <input type="text" class="form-control" name="first_name"/>
  21. </div>
  22. <div class="form-group">
  23. <label for="last_name">Last Name:</label>
  24. <input type="text" class="form-control" name="last_name"/>
  25. </div>
  26. <div class="form-group">
  27. <label for="email">Email:</label>
  28. <input type="text" class="form-control" name="email"/>
  29. </div>
  30. <div class="form-group">
  31. <label for="city">City:</label>
  32. <input type="text" class="form-control" name="city"/>
  33. </div>
  34. <div class="form-group">
  35. <label for="country">Country:</label>
  36. <input type="text" class="form-control" name="country"/>
  37. </div>
  38. <div class="form-group">
  39. <label for="job_title">Job Title:</label>
  40. <input type="text" class="form-control" name="job_title"/>
  41. </div>
  42. <button type="submit" class="btn btn-primary-outline">Add contact</button>
  43. </form>
  44. </div>
  45. </div>
  46. </div>
  47. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement