2021-08-22 20:15:58 +08:00
|
|
|
@extends('layouts.simple')
|
2015-07-29 03:57:13 +08:00
|
|
|
|
2017-08-26 21:36:48 +08:00
|
|
|
@section('body')
|
2015-07-29 03:57:13 +08:00
|
|
|
|
2018-05-28 17:33:38 +08:00
|
|
|
<div class="container small">
|
2019-02-01 04:37:12 +08:00
|
|
|
|
2019-02-18 01:52:42 +08:00
|
|
|
<div class="my-s">
|
2021-08-22 20:15:58 +08:00
|
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
2019-02-01 04:37:12 +08:00
|
|
|
$book,
|
|
|
|
$chapter,
|
2019-02-18 01:52:42 +08:00
|
|
|
$chapter->getUrl('/edit') => [
|
|
|
|
'text' => trans('entities.chapters_edit'),
|
|
|
|
'icon' => 'edit'
|
|
|
|
]
|
2019-02-01 04:37:12 +08:00
|
|
|
]])
|
2017-08-26 21:36:48 +08:00
|
|
|
</div>
|
2019-02-01 04:37:12 +08:00
|
|
|
|
2022-06-14 23:42:29 +08:00
|
|
|
<main class="content-wrap card auto-height">
|
2019-02-01 04:37:12 +08: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 20:15:58 +08:00
|
|
|
@include('chapters.parts.form', ['model' => $chapter])
|
2019-02-01 04:37:12 +08:00
|
|
|
</form>
|
2019-08-25 22:44:51 +08:00
|
|
|
</main>
|
2019-02-01 04:37:12 +08:00
|
|
|
|
2022-06-15 22:05:08 +08:00
|
|
|
@if(userCan('chapter-delete', $chapter) && userCan('book-create-all'))
|
|
|
|
@include('chapters.parts.convert-to-book')
|
|
|
|
@endif
|
2022-06-14 23:42:29 +08:00
|
|
|
|
2015-07-29 03:57:13 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|