@section('page-title', 'Finanacial Report') @extends('site.master') @section('main-content')

@lang('language.finanicalreport')

{{-- @dd($fiscal_year) --}}
{{-- {{ dd($financialReprot) }} --}}
@foreach ($financialReprot as $fiscalYear => $reports)

@for ($i = 4; $i >= 1; $i--) @php // Find reports for the current quarter $quarterReports = $reports->where('quarter', $i); @endphp @if ($quarterReports->isNotEmpty()) {{-- Only render if there are reports for the quarter --}}

Q{{ $i }}

@endif @endfor
@endforeach
@endsection @push('scripts') @endpush