This commit is contained in:
root 2022-12-19 16:30:08 +00:00
parent 6a5d1e7c22
commit 58798d05a4
2 changed files with 207 additions and 91 deletions

View File

@ -27,7 +27,7 @@ class CategoriesV2Controller extends Controller
public function index(){ public function index(){
$data = $this->CategoryGroup::select('id','name','type', 'note') $data = $this->CategoryGroup::select('id','name','type', 'slug', 'note')
->with(['translations:model_id,locale,attribute_data']) ->with(['translations:model_id,locale,attribute_data'])
->with(['category_items' => function($query) { ->with(['category_items' => function($query) {
$query $query

View File

@ -11,10 +11,10 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: News
url: /en url: /en
tm: tm:
title: '' title: Habarlar
url: '' url: ''
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
@ -102,9 +102,13 @@ items:
isExternal: '0' isExternal: '0'
- -
title: Культура title: Культура
nesting: null
type: url type: url
url: /ru/new/posts/news/culture url: /ru/new/posts/news/culture
code: '' code: ''
reference: null
cmsPage: null
replace: null
viewBag: viewBag:
locale: locale:
en: en:
@ -118,9 +122,13 @@ items:
isExternal: '0' isExternal: '0'
- -
title: Спорт title: Спорт
nesting: null
type: url type: url
url: /ru/new/posts/news/sport url: /ru/new/posts/news/sport
code: '' code: ''
reference: null
cmsPage: null
replace: null
viewBag: viewBag:
locale: locale:
en: en:
@ -134,9 +142,13 @@ items:
isExternal: '0' isExternal: '0'
- -
title: Экомир title: Экомир
nesting: null
type: url type: url
url: /ru/new/posts/news/eco-world url: /ru/new/posts/news/eco-world
code: '' code: ''
reference: null
cmsPage: null
replace: null
viewBag: viewBag:
locale: locale:
en: en:
@ -150,9 +162,13 @@ items:
isExternal: '0' isExternal: '0'
- -
title: Технологии title: Технологии
nesting: null
type: url type: url
url: /ru/new/posts/news/technology url: /ru/new/posts/news/technology
code: '' code: ''
reference: null
cmsPage: null
replace: null
viewBag: viewBag:
locale: locale:
en: en:
@ -164,6 +180,46 @@ items:
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
-
title: 'Новости партнеров'
nesting: null
type: url
url: /ru/new/posts/news/novosti-partnerov
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: 'Media partners news'
url: /en/new/posts/news/media-partners-news
tm:
title: 'Hyzmatdaşlarymyzyň habarlary'
url: /tm/new/posts/news/hyzmatdaslarymyzyn-habarlary
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: 'Новости бизнеса'
nesting: null
type: url
url: /ru/new/posts/news/novosti-biznesa
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: 'Business news'
url: /en/new/posts/news/business-news
tm:
title: 'Biznes habarlary'
url: /tm/new/posts/news/biznes-habarlary
isHidden: '0'
cssClass: ''
isExternal: '0'
- -
title: Статьи title: Статьи
nesting: null nesting: null
@ -176,10 +232,10 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: Articles
url: '' url: ''
tm: tm:
title: '' title: Makalalar
url: '' url: ''
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
@ -226,10 +282,10 @@ items:
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
- -
title: Экомир title: Общество
nesting: null nesting: null
type: url type: url
url: /ru/new/posts/stati/eco-world url: /ru/new/posts/stati/society
code: '' code: ''
reference: null reference: null
cmsPage: null cmsPage: null
@ -237,19 +293,59 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: Society
url: '' url: /en/new/posts/stati/society
tm: tm:
title: '' title: Jemgyýet
url: '' url: /tm/new/posts/stati/jemgyyet
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
- -
title: Технологии title: 'От редактора'
nesting: null nesting: null
type: url type: url
url: /ru/new/posts/stati/technology url: /ru/new/posts/stati/ot-redaktora
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: 'Editor''s choice'
url: /en/new/posts/stati/editors-choice
tm:
title: 'Redaktoryň pikiri'
url: /tm/new/posts/stati/redaktoryn-pikiri
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Культура
nesting: null
type: url
url: /ru/new/posts/stati/culture
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: Culture
url: /en/new/posts/stati/culture
tm:
title: Medeniýet
url: /tm/new/posts/stati/medeniyet
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Полезное
nesting: null
type: url
url: /ru/new/posts/stati/poleznoe
code: '' code: ''
reference: null reference: null
cmsPage: null cmsPage: null
@ -286,10 +382,30 @@ items:
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
- -
title: Полезное title: Экомир
nesting: null nesting: null
type: url type: url
url: /ru/new/posts/stati/poleznoe url: /ru/new/posts/stati/eco-world
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: ''
url: ''
tm:
title: ''
url: ''
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Технологии
nesting: null
type: url
url: /ru/new/posts/stati/technology
code: '' code: ''
reference: null reference: null
cmsPage: null cmsPage: null
@ -378,75 +494,15 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: Posters
url: '' url: ''
tm: tm:
title: '' title: Afişa
url: '' url: ''
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
items: items:
-
title: Театры
nesting: null
type: url
url: /ru/new/posts/poster/teatry
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: ''
url: ''
tm:
title: ''
url: ''
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Спорт
nesting: null
type: url
url: /ru/new/posts/poster/sport
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: ''
url: ''
tm:
title: ''
url: ''
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Объявления
nesting: null
type: url
url: /ru/new/posts/poster/obyavleniya
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: ''
url: ''
tm:
title: ''
url: ''
isHidden: '0'
cssClass: ''
isExternal: '0'
- -
title: Концерты title: Концерты
nesting: null nesting: null
@ -459,11 +515,11 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: Concerts
url: '' url: /en/new/posts/poster/concerts
tm: tm:
title: '' title: Konsertler
url: '' url: /tm/new/posts/poster/konsertler
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
@ -479,11 +535,31 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: Cinemas
url: '' url: /en/new/posts/poster/cinemas
tm: tm:
title: '' title: Kinolar
url: '' url: /tm/new/posts/poster/kinolar
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Театры
nesting: null
type: url
url: /ru/new/posts/poster/teatry
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: Theaters
url: /en/new/posts/poster/theaters
tm:
title: Teatrlar
url: /tm/new/posts/poster/teatrlar
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
@ -499,11 +575,51 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: Exhibitions
url: '' url: /en/new/posts/poster/exhibitions
tm: tm:
title: '' title: Sergiler
url: '' url: /tm/new/posts/poster/sergiler
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Спорт
nesting: null
type: url
url: /ru/new/posts/poster/sportt
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: Sport
url: /en/new/posts/poster/sport
tm:
title: Sport
url: /tm/new/posts/poster/sport
isHidden: '0'
cssClass: ''
isExternal: '0'
-
title: Объявления
nesting: null
type: url
url: /ru/new/posts/poster/obyavleniya
code: ''
reference: null
cmsPage: null
replace: null
viewBag:
locale:
en:
title: Аds
url: /en/new/posts/poster/ads
tm:
title: Мahabat
url: /tm/new/posts/poster/mahabat
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''
isExternal: '0' isExternal: '0'
@ -519,10 +635,10 @@ items:
viewBag: viewBag:
locale: locale:
en: en:
title: '' title: Contacts
url: '' url: ''
tm: tm:
title: '' title: 'Habarlaşmak üçin'
url: '' url: ''
isHidden: '0' isHidden: '0'
cssClass: '' cssClass: ''