contstart.blade.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @extends('startpage')
  2. @section('title', 'Tasks')
  3. @section('greeting'){{$greeting-> greeting}}@endsection
  4. @section('content')
  5. <h1 class="admin_zone"> TASK LIST</h1>
  6. <table class="admin_form">
  7. <thead>
  8. <strong><th> ID </th></strong>
  9. <strong><th> Topic </th></strong>
  10. <strong><th> Date </th></strong>
  11. <strong><th> Comment </th></strong>
  12. </thead>
  13. <tbody>
  14. @foreach($tasks as $task)
  15. <tr>
  16. <td> {{ $task -> id}} </td>
  17. <td class="topic"> {{ $task -> topic}} </td>
  18. <td> {{ $task -> date}} </td>
  19. <td class="comment"> {{ $task -> comment}} </td>
  20. </tr>
  21. @endforeach
  22. </tbody>
  23. </table>
  24. @endsection
  25. @section('form')
  26. @if ($errors->any())
  27. <div class="alert alert-danger">
  28. <ul>
  29. @foreach ($errors->all() as $error)
  30. <li>{{ $error }}</li>
  31. @endforeach
  32. </ul>
  33. </div><br>
  34. @endif
  35. <form action="{{ route('form.store') }}" method="post" class="form">
  36. <div class="form-group topicform">
  37. <label> Topic </label>
  38. <br>
  39. <input type="text" name="topic" class="inpf3 topicinp">
  40. </div>
  41. <div class="form-group dateform">
  42. <label> Date </label>
  43. <br>
  44. <input type="text" name="date" class="inpf3 formdate">
  45. </div>
  46. <div class="form-group">
  47. <label> Comment </label>
  48. <br>
  49. <input type="textarea" name="comment" class="inpf3 norm">
  50. </div>
  51. {{ csrf_field() }}
  52. <button class="gobutt" type="submit"> SEND </button>
  53. </form>
  54. @endsection