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