Training Part 1;
This commit is contained in:
23
resources/views/words/index.blade.php
Normal file
23
resources/views/words/index.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<x-app-layout>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Word</th>
|
||||
<th>Translation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@forelse ($words as $word)
|
||||
<tr>
|
||||
<td>{{$word->name}}</td>
|
||||
<td>{{$word->translation}}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td class="text-center" colspan="2">No words</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</x-app-layout>
|
||||
Reference in New Issue
Block a user