2021-08-22 14:15:58 +02:00
|
|
|
@extends('layouts.simple')
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2017-08-26 14:24:55 +02:00
|
|
|
@section('body')
|
2016-12-03 19:35:40 +01:00
|
|
|
|
2018-05-28 11:33:38 +02:00
|
|
|
<div class="container small">
|
2019-01-13 16:54:55 +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-13 16:54:55 +01:00
|
|
|
$book,
|
2019-02-17 18:52:42 +01:00
|
|
|
$book->getUrl('/edit') => [
|
|
|
|
'text' => trans('entities.books_edit'),
|
|
|
|
'icon' => 'edit',
|
|
|
|
]
|
2019-01-13 16:54:55 +01:00
|
|
|
]])
|
|
|
|
</div>
|
|
|
|
|
2022-06-15 16:05:08 +02:00
|
|
|
<main class="content-wrap card auto-height">
|
2019-01-13 16:54:55 +01:00
|
|
|
<h1 class="list-heading">{{ trans('entities.books_edit') }}</h1>
|
2019-05-04 16:48:15 +02:00
|
|
|
<form action="{{ $book->getUrl() }}" method="POST" enctype="multipart/form-data">
|
2019-01-13 16:54:55 +01:00
|
|
|
<input type="hidden" name="_method" value="PUT">
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('books.parts.form', ['model' => $book, 'returnLocation' => $book->getUrl()])
|
2019-01-13 16:54:55 +01:00
|
|
|
</form>
|
2019-08-25 16:44:51 +02:00
|
|
|
</main>
|
2022-06-15 16:05:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
@if(userCan('book-delete', $book) && userCan('book-create-all') && userCan('bookshelf-create-all'))
|
|
|
|
@include('books.parts.convert-to-shelf', ['book' => $book])
|
|
|
|
@endif
|
2015-07-15 23:55:49 +02:00
|
|
|
</div>
|
2015-07-12 21:01:42 +02:00
|
|
|
@stop
|