application.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @extends('layouts.app')
  2. @section('check')
  3. <nav class="nav nav-masthead justify-content-center">
  4. <a class="nav-link active" href="/">Home</a>
  5. <a class="nav-link" href="/info">About</a>
  6. <a class="nav-link" href="/contact">Contact</a>
  7. </nav>
  8. @endsection
  9. @section('content')
  10. @if($errors->any())
  11. <ul>
  12. @foreach ($errors->all() as $error)
  13. <li>{{ $error }}</li>
  14. @endforeach
  15. </ul>
  16. @endif
  17. <form method="POST" action="{{ url('/') }}">
  18. @csrf
  19. <div class="form-group @if($errors->has('name')) has-danger @endif">
  20. <LABEL>Name</LABEL>
  21. <input type="text" class="form-control" name="name" value="{{ old('name') }}" @if($errors->has('name')) is-invalid @endif>
  22. @error('name')
  23. <div class="invalid-feedback">{{ $message }}</div>
  24. @enderror
  25. </div>
  26. <div class="form-group">
  27. <LABEL>Phone</LABEL>
  28. <input type="text" class="form-control" name="phone" value="{{ old('phone') }}">
  29. </div>
  30. <div class="form-group">
  31. <LABEL>Email</LABEL>
  32. <input type="text" class="form-control" name="email" value="{{ old('email') }}">
  33. </div>
  34. <div class="form-group">
  35. <LABEL>Address</LABEL>
  36. <input type="text" class="form-control" name="address" value="{{ old('address') }}">
  37. </div>
  38. <div>
  39. <button type="submit" class="btn btn-primary">Send!</button>
  40. </div>
  41. </form>
  42. @endsection