2021-08-22 14:15:58 +02:00
|
|
|
@extends('layouts.simple')
|
2015-07-28 21:57:13 +02:00
|
|
|
|
2017-08-26 15:36:48 +02:00
|
|
|
@section('body')
|
2015-07-28 21:57:13 +02:00
|
|
|
|
2018-05-28 11:33:38 +02:00
|
|
|
<div class="container small">
|
2019-01-31 21:37:12 +01:00
|
|
|
|
2019-02-17 18:52:42 +01:00
|
|
|
<div class="my-s">
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
2019-01-31 21:37:12 +01:00
|
|
|
$book,
|
|
|
|
$chapter,
|
2019-02-17 18:52:42 +01:00
|
|
|
$chapter->getUrl('/edit') => [
|
|
|
|
'text' => trans('entities.chapters_edit'),
|
|
|
|
'icon' => 'edit'
|
|
|
|
]
|
2019-01-31 21:37:12 +01:00
|
|
|
]])
|
2017-08-26 15:36:48 +02:00
|
|
|
</div>
|
2019-01-31 21:37:12 +01:00
|
|
|
|
2022-06-14 17:42:29 +02:00
|
|
|
<main class="content-wrap card auto-height">
|
2019-01-31 21:37:12 +01:00
|
|
|
<h1 class="list-heading">{{ trans('entities.chapters_edit') }}</h1>
|
|
|
|
<form action="{{ $chapter->getUrl() }}" method="POST">
|
|
|
|
<input type="hidden" name="_method" value="PUT">
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('chapters.parts.form', ['model' => $chapter])
|
2019-01-31 21:37:12 +01:00
|
|
|
</form>
|
2019-08-25 16:44:51 +02:00
|
|
|
</main>
|
2019-01-31 21:37:12 +01:00
|
|
|
|
2022-06-15 16:05:08 +02:00
|
|
|
@if(userCan('chapter-delete', $chapter) && userCan('book-create-all'))
|
|
|
|
@include('chapters.parts.convert-to-book')
|
|
|
|
@endif
|
2022-06-14 17:42:29 +02:00
|
|
|
|
2015-07-28 21:57:13 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|