1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- @extends('startpage')
- @section('title', 'Tasks')
- @section('greeting'){{$greeting-> greeting}}@endsection
- @section('content')
- <h1 class="admin_zone"> TASK LIST</h1>
- <table class="admin_form">
- <thead>
- <strong><th> ID </th></strong>
- <strong><th> Topic </th></strong>
- <strong><th> Date </th></strong>
- <strong><th> Comment </th></strong>
- </thead>
- <tbody>
- @foreach($tasks as $task)
- <tr>
- <td> {{ $task -> id}} </td>
- <td class="topic"> {{ $task -> topic}} </td>
- <td> {{ $task -> date}} </td>
- <td class="comment"> {{ $task -> comment}} </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- @endsection
- @section('form')
- @if ($errors->any())
- <div class="alert alert-danger">
- <ul>
- @foreach ($errors->all() as $error)
- <li>{{ $error }}</li>
- @endforeach
- </ul>
- </div><br>
- @endif
- <form action="{{ route('form.store') }}" method="post" class="form">
- <div class="form-group topicform">
- <label> Topic </label>
- <br>
- <input type="text" name="topic" class="inpf3 topicinp">
- </div>
-
- <div class="form-group dateform">
- <label> Date </label>
- <br>
- <input type="text" name="date" class="inpf3 formdate">
- </div>
-
- <div class="form-group">
- <label> Comment </label>
- <br>
- <input type="textarea" name="comment" class="inpf3 norm">
- </div>
- {{ csrf_field() }}
- <button class="gobutt" type="submit"> SEND </button>
- </form>
- @endsection
|