<?php

namespace App\Livewire\People;

use App\Domain\Identity\Models\Person;
use Livewire\Attributes\Layout;
use Livewire\Attributes\Title;
use Livewire\Component;

#[Layout('layouts.app')]
#[Title('بيانات الشخص')]
class PersonShow extends Component
{
    public Person $person;

    public function mount(Person $person): void
    {
        $this->person = $person->load('guardian');
    }

    public function render()
    {
        return view('livewire.people.person-show');
    }
}
