<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class FamilyTreeController extends Controller
{
    public function index()
    {
        $familyTree = [
            'name' => 'Grandparent',
            'children' => [
                [
                    'name' => 'Parent 1',
                    'children' => [
                        ['name' => 'Child 1'],
                        ['name' => 'Child 2'],
                    ]
                ],
                [
                    'name' => 'Parent 2',
                    'children' => [
                        ['name' => 'Child 3'],
                    ]
                ]
            ]
        ];

        
        return view('livewire.search.familyrelations.familytree', ['familyTree' => $familyTree]);
    }
}
