|
1 | 1 | @extends('layouts.app') |
2 | 2 |
|
3 | 3 | @section('content') |
4 | | -<a name="" id="" class="btn btn-warning my-4" href="{{ route('todos.create') }}" role="button">Ajouter une todo</a> |
5 | | -{{-- Done todos link --}} |
| 4 | +<a name="" id="" class="btn btn-primary my-4" href="{{ route('todos.create') }}" role="button">Ajouter une todo</a> |
| 5 | +{{-- Done's todos link --}} |
6 | 6 | @if (Route::currentRouteName() == 'todos.index') |
| 7 | +<a name="" id="" class="btn btn-warning my-4" href="{{ route('todos.undone') }}" role="button">Voir les todos |
| 8 | + ouvertes</a> |
7 | 9 | <a name="" id="" class="btn btn-success my-4" href="{{ route('todos.done') }}" role="button">Voir les todos |
8 | 10 | terminées</a> |
9 | 11 | {{-- All todos --}} |
10 | 12 | @elseif (Route::currentRouteName() == 'todos.done') |
11 | | -<a name="" id="" class="btn btn-info my-4" href="{{ route('todos.index') }}" role="button">Voir toutes les Todos</a> |
| 13 | +<a name="" id="" class="btn btn-dark my-4" href="{{ route('todos.index') }}" role="button">Voir toutes les todos</a> |
| 14 | +<a name="" id="" class="btn btn-warning my-4" href="{{ route('todos.undone') }}" role="button">Voir les todos |
| 15 | + ouvertes</a> |
| 16 | +{{-- Undone's todos link --}} |
| 17 | +@elseif (Route::currentRouteName() == 'todos.undone') |
| 18 | +<a name="" id="" class="btn btn-dark my-4" href="{{ route('todos.index') }}" role="button">Voir toutes les todos</a> |
| 19 | +<a name="" id="" class="btn btn-success my-4" href="{{ route('todos.done') }}" role="button">Voir les todos |
| 20 | + terminées</a> |
12 | 21 | @endif |
13 | 22 | {{-- All todos title --}} |
14 | 23 | @if (Route::currentRouteName() == 'todos.index') |
15 | 24 | <h1>Toutes les todos</h1> |
16 | | -{{-- Done todos links --}} |
| 25 | +{{-- Undone's todos title --}} |
| 26 | +@elseif (Route::currentRouteName() == 'todos.undone') |
| 27 | +<h1>Toutes les todos ouvertes</h1> |
17 | 28 | @else |
| 29 | +{{-- Done's todos title --}} |
18 | 30 | <h1>Todos terminées</h1> |
19 | 31 | @endif |
20 | 32 | @foreach ($datas as $data) |
|
0 commit comments