4b0c4e621a
Also changed up how base URL setting was being done by manipulating incoming request URLs instead of altering then on generation.
36 lines
No EOL
1.2 KiB
PHP
36 lines
No EOL
1.2 KiB
PHP
@extends('simple-layout')
|
|
|
|
@section('body')
|
|
<div class="container small">
|
|
<div class="my-s">
|
|
@if (isset($bookshelf))
|
|
@include('partials.breadcrumbs', ['crumbs' => [
|
|
$bookshelf,
|
|
$bookshelf->getUrl('/create-book') => [
|
|
'text' => trans('entities.books_create'),
|
|
'icon' => 'add'
|
|
]
|
|
]])
|
|
@else
|
|
@include('partials.breadcrumbs', ['crumbs' => [
|
|
'/books' => [
|
|
'text' => trans('entities.books'),
|
|
'icon' => 'book'
|
|
],
|
|
'/create-book' => [
|
|
'text' => trans('entities.books_create'),
|
|
'icon' => 'add'
|
|
]
|
|
]])
|
|
@endif
|
|
</div>
|
|
|
|
<div class="content-wrap card">
|
|
<h1 class="list-heading">{{ trans('entities.books_create') }}</h1>
|
|
<form action="{{ isset($bookshelf) ? $bookshelf->getUrl('/create-book') : url('/books') }}" method="POST" enctype="multipart/form-data">
|
|
@include('books.form')
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
@stop |