protected function _getMediaLibraryFromCMS()
{
- return ['themes' => PageData::fromEntities(AssetTheme::all()), 'assets' => PageData::fromEntities(Asset::whereNotNull('theme')->get())];
+ return ['themes' => PageData::fromEntities(AssetTheme::all()), 'assets' => PageData::fromEntities(Asset::whereNotNull('theme')->orderBy('code','ASC')->get())];
}
protected function _getResourcesPDFFromCMS()
'id'=>$a->get('id'),
'type'=>$type,
'theme'=>$a->get('theme'),
+ 'code'=>$a->get('code'),
'title'=>$a->get('title'),
'file'=>$a->getImageURLbyCollection($a->get('file_upload')),
'image'=>$a->getImageURLbyCollection($a->get('file_thumb'))??$a->getImageURLbyCollection($a->get('file_upload'),'poster'),