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')
|
2018-12-09 17:51:31 +01:00
|
|
|
<div class="container small">
|
2019-02-17 18:52:42 +01:00
|
|
|
<div class="my-s">
|
2019-04-15 11:56:21 +02:00
|
|
|
@if (isset($bookshelf))
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
2019-04-15 11:56:21 +02:00
|
|
|
$bookshelf,
|
|
|
|
$bookshelf->getUrl('/create-book') => [
|
|
|
|
'text' => trans('entities.books_create'),
|
|
|
|
'icon' => 'add'
|
|
|
|
]
|
|
|
|
]])
|
|
|
|
@else
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('entities.breadcrumbs', ['crumbs' => [
|
2019-04-15 11:56:21 +02:00
|
|
|
'/books' => [
|
|
|
|
'text' => trans('entities.books'),
|
|
|
|
'icon' => 'book'
|
|
|
|
],
|
|
|
|
'/create-book' => [
|
|
|
|
'text' => trans('entities.books_create'),
|
|
|
|
'icon' => 'add'
|
|
|
|
]
|
|
|
|
]])
|
|
|
|
@endif
|
2018-12-09 17:51:31 +01:00
|
|
|
</div>
|
2017-08-26 14:24:55 +02:00
|
|
|
|
2019-08-25 16:44:51 +02:00
|
|
|
<main class="content-wrap card">
|
2018-12-09 17:51:31 +01:00
|
|
|
<h1 class="list-heading">{{ trans('entities.books_create') }}</h1>
|
2019-08-04 15:26:39 +02:00
|
|
|
<form action="{{ isset($bookshelf) ? $bookshelf->getUrl('/create-book') : url('/books') }}" method="POST" enctype="multipart/form-data">
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('books.parts.form', ['returnLocation' => isset($bookshelf) ? $bookshelf->getUrl() : url('/books')])
|
2017-08-26 14:24:55 +02:00
|
|
|
</form>
|
2019-08-25 16:44:51 +02:00
|
|
|
</main>
|
2017-08-26 14:24:55 +02:00
|
|
|
</div>
|
2018-12-09 17:51:31 +01:00
|
|
|
|
2015-07-12 21:01:42 +02:00
|
|
|
@stop
|