@foreach ($yr->categories as $cat)
📂
{{ $cat->category->name ?? '' }}
{{-- Purchase --}}
@if (isset($cat->type) && $cat->type == 'purchase')
@foreach ($cat->months as $m)
@endforeach
Parties:
@foreach ($cat->month_parties ?? [] as $monthParties)
@foreach ($monthParties ?? [] as $party)
id, $existing_access[$ca->id] ?? []) ? 'checked' : '' }}>
@endforeach
@endforeach
{{-- Expenses --}}
@elseif(isset($cat->type) && $cat->type == 'expenses')
@foreach ($cat->months as $m)
@endforeach
Subcategories:
@foreach ($cat->subcategories ?? [] as $subcat)
id, $existing_access[$ca->id] ?? []) ? 'checked' : '' }}>
@endforeach
@endif
@endforeach