@extends('admin.layout', ['title' => $article->exists ? 'Edit story' : 'Add story']) @section('content') @php $sections = old('sections', $article->sections ?: [['heading' => '', 'body' => '']]); @endphp

JOURNAL

{{ $article->exists ? 'Edit story.' : 'Add story.' }}

Back to stories
@csrf @if ($article->exists) @method('put') @endif

Sections

@foreach ($sections as $index => $section)
SECTION
@endforeach
@endsection