24 lines
442 B
PHP
24 lines
442 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use Livewire\Attributes\Layout;
|
|
use Livewire\Component;
|
|
|
|
#[Layout('layouts.app')]
|
|
class Dashboard extends Component
|
|
{
|
|
/** Interactive demo toggle — verifies Livewire reactivity in Phase 1. */
|
|
public bool $demoOn = true;
|
|
|
|
public function toggleDemo(): void
|
|
{
|
|
$this->demoOn = ! $this->demoOn;
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.dashboard');
|
|
}
|
|
}
|