@php /** House label positions in a 400×400 North Indian chart (house 1 at top centre, anticlockwise). */ $positions = [ 1 => [200, 105], 2 => [100, 45], 3 => [45, 100], 4 => [105, 200], 5 => [45, 300], 6 => [100, 355], 7 => [200, 300], 8 => [300, 355], 9 => [355, 300], 10 => [295, 200], 11 => [355, 100], 12 => [300, 45], ]; @endphp
@if (! empty($title))
{{ $title }}
@endif @foreach ($positions as $house => [$x, $y]) @php $sign = (($ascendantSign - 1 + $house - 1) % 12) + 1; $planets = $chart[$house] ?? $chart[(string) $house] ?? []; @endphp {{ $sign }} @foreach (array_chunk($planets, 3) as $line => $chunk) {{ implode(' ', $chunk) }} @endforeach @endforeach