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