diff --git a/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php b/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php index 66fe0ef38..793d4e24a 100644 --- a/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php +++ b/packages/Webkul/Velocity/src/DataGrids/ContentDataGrid.php @@ -84,12 +84,14 @@ class ContentDataGrid extends DataGrid 'searchable' => true, 'filterable' => true, 'wrapper' => function($value) { - if ($value->content_type == 'link') + if ($value->content_type == 'category') + return 'Category Slug'; + else if ($value->content_type == 'link') return 'Link'; else if ($value->content_type == 'product') return 'Product'; else if ($value->content_type == 'static') - return 'Static'; + return 'Static'; } ]); } diff --git a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php index 49625506e..b6b09dfc7 100644 --- a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/category.blade.php @@ -12,7 +12,7 @@ class="control" name="page_link" v-validate="'required|max:150'" - value="{{ isset($locale) ? (old($locale)['page_link'] ?: $content->translate($locale)['page_link']) : '' }}" + value="{{ isset($locale) ? (old($locale)['page_link'] ?? $content->translate($locale)['page_link']) : '' }}" data-vv-as=""{{ __('velocity::app.admin.contents.content.page-link') }}"" /> diff --git a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php index a46597e09..ef7ba1096 100644 --- a/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/admin/content/content-type/edit-product.blade.php @@ -6,7 +6,7 @@ @push('scripts')