{{ csrf_field() }}
@include('form.text', ['name' => 'name'])
@include('form.textarea', ['name' => 'description'])
@if (count($shelf->visibleBooks ?? []) > 0) @foreach ($shelf->visibleBooks as $book) @endforeach @endif
@foreach ($books as $book) @endforeach

{{ trans('common.cover_image_description') }}

@include('components.image-picker', [ 'defaultImage' => url('/book_default_cover.png'), 'currentImage' => (isset($shelf) && $shelf->cover) ? $shelf->getBookCover() : url('/book_default_cover.png') , 'name' => 'image', 'imageClass' => 'cover' ])
@include('components.tag-manager', ['entity' => $shelf ?? null])
{{ trans('common.cancel') }}