@extends('layouts.app') @section('title', $app_setting['name'] . ' | Chapter Create') @section('content')

{{ __('Create a New Chapter') }}

@csrf @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@error('title') {{ $message }} @enderror
@error('serial_number') {{ $message }} @enderror
{{ __('Contents') }}
@php $contentCounter = 1; @endphp @foreach (old('contents', [1 => ['title' => '', 'serial_number' => 1]]) as $key => $content)
@if (old("contents.$key.title")) @endif

Upload File (Document, Audio, Video, Image)

@php $contentCounter++; @endphp @endforeach
@endsection @push('scripts') @endpush