Advertisement
SpykeRel04D

Untitled

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