mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-31 23:16:52 -04:00
47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Modules\Frontend\Entities\Language;
|
|
use Modules\Frontend\Facades\Categories;
|
|
use Modules\Frontend\Facades\Creators;
|
|
use Modules\Frontend\Facades\Sections;
|
|
use Modules\Frontend\Facades\Settings;
|
|
use Modules\Frontend\Facades\SocialMedias;
|
|
use Modules\Frontend\Facades\Videos;
|
|
|
|
$heroVideo = Settings::getValue('hero-video');
|
|
$creators = Creators::all();
|
|
$featuredCreators = Creators::getFeatured();
|
|
$sections = Sections::all();
|
|
$categories = Categories::all();
|
|
$initialVideos = Videos::getByPage(0, 10);
|
|
$socialMedias = SocialMedias::all();
|
|
$shareableNetworks = explode(',', Settings::getValue('shareable-networks'));
|
|
$languages = Language::active()->get();
|
|
|
|
return [
|
|
'app' => [
|
|
'languages' => $languages,
|
|
],
|
|
'hero' => [
|
|
'video' => $heroVideo,
|
|
],
|
|
'creator' => [
|
|
'all' => $creators,
|
|
'featured' => $featuredCreators ?? [],
|
|
],
|
|
'section' => [
|
|
'all' => $sections,
|
|
],
|
|
'social_media' => [
|
|
'all' => $socialMedias,
|
|
'shareable' => $shareableNetworks,
|
|
],
|
|
'category' => [
|
|
'all' => $categories,
|
|
],
|
|
'video' => [
|
|
'initial' => $initialVideos['videos'],
|
|
'count' => $initialVideos['count'],
|
|
],
|
|
];
|