@extends('layouts.app') @section('title', $app_setting['name'] . ' | Chapter Update') @section('content')
{{--
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Edit Chapter
@csrf @method('PUT')
@php $contentCounter = 1; @endphp @if (old('contents')) @foreach (old('contents', [1 => ['title' => '', 'serial_number' => 1]]) as $key => $content)
@php $contentCounter++; @endphp @endforeach @else @foreach ($chapter->contents as $key => $content)
{{ '...' . substr(str_replace($content->media?->path . '/', '', $content->media?->src), -20) }}
is_forwardable) checked @endif>
is_free) checked @endif>
@endforeach @endif
--}}

{{ __('Edit Chapter') }}

@csrf @method('PUT') @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 @if (old('contents')) @forelse (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 @empty
no content available
@endforelse @else @forelse ($chapter->contents as $key => $content)
is_forwardable) checked @endif>
is_free) checked @endif id="isFree{{ $key }}">

Upload File (Document, Audio, Video, Image)

@php $contentCounter++; @endphp @empty
no content available
@endforelse @endif
@endsection @push('scripts') @endpush