NEWS & EVENTS LIST

@foreach ($news as $main)

Main Title: {{ $main->title }}

{!! $main->details !!}

Edit

@csrf @method('DELETE')
@if (isset($subs[$main->id]) && count($subs[$main->id]) > 0)

Sub News:

    @foreach ($subs[$main->id] as $sub)
  • {{ $sub->title }}: {!! $sub->details !!}

    Edit

    @csrf @method('DELETE')
  • @endforeach
@else

No sub-news available.

@endif
@endforeach