{{ isset($story) ? __('Edit Story: ') . $story->name : __('Add New Story') }}

@csrf @if(isset($story)) @method('PUT') @endif

Basic Information

@if(isset($tags) && $tags->isNotEmpty())
@foreach($tags as $tag) @php $checked = in_array($tag->id, old('tags', isset($story) ? $story->tags->pluck('id')->toArray() : [])); @endphp @endforeach
@else

No story tags created yet. Create some story tags to categorize this story.

@endif
publish ?? false) ? 'checked' : '' }}>
featured ?? false) ? 'checked' : '' }}>
@if(isset($story))

Story Sections

@foreach($story->sections as $index => $section)
Section {{ $index + 1 }}: {{ $section->type == 1 ? 'Text Editor' : 'Image Upload' }}
@if($section->type == 1)
{!! $section->content !!}
@else
@if($section->content)
@endif
@endif
@endforeach
@endif
Cancel