45 lines
1.5 KiB
PHP
45 lines
1.5 KiB
PHP
<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-slot name="header">
|
|
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
|
|
{{ __('Table Words') }}
|
|
</h2>
|
|
</x-slot>
|
|
|
|
<div class="py-12">
|
|
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6">
|
|
<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg">
|
|
<div class="max-w-xl">
|
|
@include('words.partials.insert-word-form')
|
|
</div>
|
|
</div>
|
|
{{--<div class="p-4 sm:p-8 bg-white dark:bg-gray-800 shadow sm:rounded-lg">--}}
|
|
{{-- <div class="max-w-xl">--}}
|
|
{{-- @include('words.partials.modify-word-form')--}}
|
|
{{-- </div>--}}
|
|
{{--</div>--}}
|
|
</div>
|
|
</div>
|
|
<x-table :items="$words" :fields="array('name','translation')" />
|
|
</x-app-layout>
|