@php /** South Indian layout: signs fixed in a 4×4 ring, Pisces top-left, running clockwise. Cell size 100. */ $cells = [ 12 => [0, 0], 1 => [1, 0], 2 => [2, 0], 3 => [3, 0], 11 => [0, 1], 4 => [3, 1], 10 => [0, 2], 5 => [3, 2], 9 => [0, 3], 8 => [1, 3], 7 => [2, 3], 6 => [3, 3], ]; $signNames = [1 => 'Mesha', 'Vrishabha', 'Mithuna', 'Karka', 'Simha', 'Kanya', 'Tula', 'Vrishchika', 'Dhanu', 'Makara', 'Kumbha', 'Meena']; $planetsBySign = []; foreach ($chart as $house => $planets) { $planetsBySign[(($ascendantSign - 1 + (int) $house - 1) % 12) + 1] = $planets; } @endphp
@if (! empty($title))
{{ $title }}
@endif @foreach ($cells as [$column, $row]) @endforeach @foreach ($cells as $sign => [$column, $row]) @if ($sign === $ascendantSign) @endif {{ $signNames[$sign] }} @foreach (array_chunk($planetsBySign[$sign] ?? [], 3) as $line => $chunk) {{ implode(' ', $chunk) }} @endforeach @endforeach {{ $centreLabel ?? '' }}