diff --git a/resources/views/components/table.blade.php b/resources/views/components/table.blade.php
new file mode 100644
index 0000000..2f326cc
--- /dev/null
+++ b/resources/views/components/table.blade.php
@@ -0,0 +1,24 @@
+@props(['items' => []])
+@props(['fields' => []])
+
+
+
+
+ | Word |
+ Translation |
+
+
+
+
+ @forelse ($items as $item)
+
+ | {{ $item->{$fields[0]} }} |
+ {{ $item->{$fields[1]} }} |
+
+ @empty
+
+ | No words |
+
+ @endforelse
+
+
diff --git a/resources/views/words/index.blade.php b/resources/views/words/index.blade.php
index 017d054..3387a62 100644
--- a/resources/views/words/index.blade.php
+++ b/resources/views/words/index.blade.php
@@ -1,23 +1,26 @@
-
-
-
- | Word |
- Translation |
-
-
-
+{{-- --}}
+{{-- --}}
+{{-- --}}
+{{-- | Word | --}}
+{{-- Translation | --}}
+{{--
--}}
+{{-- --}}
+{{-- --}}
- @forelse ($words as $word)
-
- | {{$word->name}} |
- {{$word->translation}} |
-
- @empty
-
- | No words |
-
- @endforelse
-
-
+{{-- @forelse ($words as $word)--}}
+{{-- --}}
+{{-- | {{$word->name}} | --}}
+{{-- {{$word->translation}} | --}}
+{{--
--}}
+{{-- @empty--}}
+{{-- --}}
+{{-- | No words | --}}
+{{--
--}}
+{{-- @endforelse--}}
+{{-- --}}
+{{--
--}}
+
+
+