@extends('layouts.app') @section('title', 'Edit Content') @section('content') @include('partials.flash') @php $types = \App\Models\CourseContentBlock::TYPES; @endphp
arrow_back Builder

{{ $module->title }}

{{ $course->title }} ยท {{ $module->blocks->count() }} content blocks

{{-- Add block --}}

add_circle Add block

@csrf @foreach($types as $val => $label)
@include('admin.courses._block-field-group', ['type' => $val])
@endforeach
{{-- Live block list + preview --}}
@csrf

Screen content

@if($module->blocks->isNotEmpty()) @endif
@forelse($module->blocks as $block)
{{ $types[$block->type] ?? $block->type }}
@include('partials._content-block', ['block' => $block])
@empty
view_agenda

No content yet

Add blocks on the left to build this screen.

@endforelse
@foreach($module->blocks as $block) @endforeach @endsection