@include('filament.pages.astrology.partials.styles') {{ $this->form }} @if ($apiCall) @include('filament.pages.astrology.partials.api-call') @endif @if ($result) @php $scalars = collect($result)->reject(fn ($value) => is_array($value)); $sections = collect($result)->filter(fn ($value) => is_array($value)); @endphp @if (isset($result['d1_chart'], $result['d1_asc_sign']))
@include('filament.pages.astrology.partials.north-chart', ['title' => 'D1 Rashi (Lagna)', 'chart' => $result['d1_chart'], 'ascendantSign' => $result['d1_asc_sign']]) @if (isset($result['d9_chart'], $result['d9_asc_sign'])) @include('filament.pages.astrology.partials.north-chart', ['title' => 'D9 Navamsa', 'chart' => $result['d9_chart'], 'ascendantSign' => $result['d9_asc_sign']]) @endif
@endif @if ($scalars->isNotEmpty()) @include('filament.pages.astrology.partials.value', ['value' => $scalars->all()]) @endif @foreach ($sections as $key => $value)
@include('filament.pages.astrology.partials.value', ['value' => $value])
@endforeach @include('filament.pages.astrology.partials.raw-json') @endif