From f5d82da4b6366ca8d2e708f145657f63df48a8d9 Mon Sep 17 00:00:00 2001 From: Purvesh Date: Sun, 13 Mar 2022 14:25:36 +1300 Subject: [PATCH 1/5] wip --- .../views/catalog/category/index.blade.php | 71 +------------------ .../system/components/layouts/app.blade.php | 3 + .../components/livewire/table/table.blade.php | 3 + resources/views/system/datatable.blade.php | 69 ++++++++++++++++++ src/Catalog/Tables/CategoryTable.php | 20 ++++++ src/Support/Providers/ComponentsProvider.php | 13 +++- 6 files changed, 109 insertions(+), 70 deletions(-) create mode 100644 resources/views/system/components/livewire/table/table.blade.php create mode 100644 resources/views/system/datatable.blade.php create mode 100644 src/Catalog/Tables/CategoryTable.php diff --git a/resources/views/catalog/category/index.blade.php b/resources/views/catalog/category/index.blade.php index fd6ea3f9..82009f4d 100644 --- a/resources/views/catalog/category/index.blade.php +++ b/resources/views/catalog/category/index.blade.php @@ -15,75 +15,8 @@
- - - - - {{ __('avored::system.parent') }} - - - - {{ __('avored::system.name') }} - - - {{ __('avored::system.slug') }} - - - {{ __('avored::system.meta_title') }} - - - {{ __('avored::system.meta_description') }} - - - {{ __('avored::system.actions') }} - - - - - @foreach ($categories as $category) - - - {{ $category->parent->name ?? '' }} - - - {{ $category->name ?? '' }} - - - {{ $category->slug ?? '' }} - - - {{ $category->meta_title ?? '' }} - - - {{ $category->meta_description ?? '' }} - - -
- - - - | - - - - - -
-
-
- @endforeach -
-
+ @livewire('avored-category-table') +
{{ $categories->render() }}
diff --git a/resources/views/system/components/layouts/app.blade.php b/resources/views/system/components/layouts/app.blade.php index 51c62420..2ca94b22 100644 --- a/resources/views/system/components/layouts/app.blade.php +++ b/resources/views/system/components/layouts/app.blade.php @@ -11,6 +11,8 @@ + + @@ -24,6 +26,7 @@ {{ $slot }}
+ @stack('scripts')