51 lines
1.9 KiB
PHP
51 lines
1.9 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Controllers\Web;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Support\Seo\SeoFactory;
|
|
use Illuminate\Http\Request;
|
|
use Inertia\Inertia;
|
|
use Inertia\Response;
|
|
|
|
final class WorldsHelpPageController extends Controller
|
|
{
|
|
public function __invoke(Request $request): Response
|
|
{
|
|
$canonical = route('help.worlds');
|
|
$seo = app(SeoFactory::class)
|
|
->collectionPage(
|
|
'Worlds Help — Skinbase',
|
|
'Learn how Worlds work on Skinbase, including editorial purpose, attached content, section control, preview, publishing, recurrence, and homepage promotion.',
|
|
$canonical,
|
|
)
|
|
->toArray();
|
|
|
|
$seo['og_type'] = 'article';
|
|
|
|
return Inertia::render('Help/WorldsHelpPage', [
|
|
'title' => 'Worlds Help',
|
|
'description' => 'A complete guide to creating, attaching content to, previewing, and publishing Worlds on Skinbase.',
|
|
'seo' => $seo,
|
|
'links' => [
|
|
'help_home' => route('help'),
|
|
'studio_help' => route('help.studio'),
|
|
'upload_help' => route('help.upload'),
|
|
'help_cards' => route('help.cards'),
|
|
'groups_help' => route('help.groups'),
|
|
'worlds_index' => route('worlds.index'),
|
|
'create_world' => route('worlds.create.redirect'),
|
|
'studio_worlds' => route('studio.worlds.index'),
|
|
'studio_worlds_create' => route('studio.worlds.create'),
|
|
'open_studio' => route('studio.index'),
|
|
'contact_support' => route('contact.show'),
|
|
'report_issue' => route('bug-report'),
|
|
],
|
|
'auth' => [
|
|
'signed_in' => $request->user() !== null,
|
|
],
|
|
])->rootView('collections');
|
|
}
|
|
} |