Co-authored-by: manoel freitas <manoel.josefneto@gmail.com> Co-committed-by: manoel freitas <manoel.josefneto@gmail.com>
72 lines
2.2 KiB
PHP
72 lines
2.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Controllers\PublicSite;
|
|
|
|
use App\Application\Data\PageMeta;
|
|
use App\Application\Queries\Marketing\GetAboutContent;
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\SiteSetting;
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
final class PageController extends Controller
|
|
{
|
|
public function about(GetAboutContent $getAboutContent): View
|
|
{
|
|
$content = $getAboutContent();
|
|
$settings = $content->settings;
|
|
|
|
return view('pages.about', [
|
|
'content' => $content,
|
|
'siteSettings' => $settings,
|
|
'pageMeta' => PageMeta::forPage(
|
|
canonical: route('about'),
|
|
settings: $settings,
|
|
title: PageMeta::withBrandSuffix('Sobre', $settings),
|
|
description: $settings->about_summary ?: ('Conheça a '.$settings->brand_name.'.'),
|
|
),
|
|
]);
|
|
}
|
|
|
|
public function privacy(): View
|
|
{
|
|
$settings = SiteSetting::instance();
|
|
|
|
return view('pages.privacy', [
|
|
'siteSettings' => $settings,
|
|
'pageMeta' => PageMeta::forPage(
|
|
canonical: route('privacy'),
|
|
settings: $settings,
|
|
title: PageMeta::withBrandSuffix('Política de privacidade', $settings),
|
|
description: 'Política de privacidade da '.$settings->brand_name.'.',
|
|
),
|
|
]);
|
|
}
|
|
|
|
public function contact(): View
|
|
{
|
|
$settings = SiteSetting::instance();
|
|
|
|
return view('pages.partners', [
|
|
'siteSettings' => $settings,
|
|
'pageMeta' => PageMeta::forPage(
|
|
canonical: route('contact'),
|
|
settings: $settings,
|
|
title: PageMeta::withBrandSuffix('Contato', $settings),
|
|
description: 'Fale com a '.$settings->brand_name.'.',
|
|
),
|
|
]);
|
|
}
|
|
|
|
public function briefing(): View
|
|
{
|
|
$settings = SiteSetting::instance();
|
|
|
|
return view('pages.contact', [
|
|
'siteSettings' => $settings,
|
|
'pageMeta' => PageMeta::forPage(canonical: route('briefing'), settings: $settings, title: PageMeta::withBrandSuffix('Briefing', $settings), description: 'Solicite uma proposta à '.$settings->brand_name.'.'),
|
|
]);
|
|
}
|
|
}
|