<?php

namespace App\Livewire\Homepage;

use App\Models\User;
use Livewire\Component;

class Example extends Component
{
    public string $notifyEmail = '';
    public bool $notifySubmitted = false;

    public function submitNotify(): void
    {
        $this->validate(['notifyEmail' => 'required|email']);
        $this->notifySubmitted = true;
    }

    public function render()
    {
        return view('livewire.homepage.example', [
            'userCount' => User::count(),
        ])->layout('layouts.blank');
    }
}
