@extends('layouts.app') @section('title') Genealogy | {{ config('app.name') }} @endsection @section('content')
Extreem Left ID
{{$leftLeaf->access_code}}
Extreem Right ID
{{$rightLeaf->access_code}}
@if($user->id != auth()->user()->id)
Back to Parent ID
@endif
@csrf
@for($index=0,$i=0; $i<4;$i++)
@for($noOfChild = pow(2, $i), $j=0; $j<$noOfChild; $j++, $index++)
@if($user = $tree[$index] ?? null)
{{ $user->access_code }}
{{ $user->name }}
@else
@endif
@endfor
@endfor
@endsection @section('scripts') @endsection