31 lines
749 B
PHP
31 lines
749 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages;
|
|
|
|
use Filament\Pages\Page;
|
|
|
|
class ThankYou extends Page
|
|
{
|
|
protected string $view = 'filament.pages.thank-you';
|
|
|
|
public ?array $record = null;
|
|
protected static ?string $title = 'Tack för ditt bidrag!';
|
|
|
|
public static function shouldRegisterNavigation(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function mount(): void
|
|
{
|
|
$this->record = session('created_record') ?? [
|
|
'title' => 'Test Photo',
|
|
'uploaded_by' => 'Anna-Sara',
|
|
'captured_at' => '2026-04-05',
|
|
'lat' => '59.3293',
|
|
'lng' => '18.0686',
|
|
'desc' => 'A test description',
|
|
'story' => 'A longer story about this photo.',
|
|
];
|
|
}
|
|
}
|