2018-05-10 11:35:18 +08:00
|
|
|
|
2018-08-27 21:18:09 +08:00
|
|
|
<div class="container{{ $booksViewType === 'list' ? ' small' : '' }}">
|
2018-05-10 11:35:18 +08:00
|
|
|
<h1>{{ trans('entities.books') }}</h1>
|
|
|
|
@if(count($books) > 0)
|
|
|
|
@if($booksViewType === 'list')
|
|
|
|
@foreach($books as $book)
|
|
|
|
@include('books/list-item', ['book' => $book])
|
|
|
|
<hr>
|
|
|
|
@endforeach
|
|
|
|
{!! $books->render() !!}
|
|
|
|
@else
|
|
|
|
<div class="grid third">
|
|
|
|
@foreach($books as $key => $book)
|
|
|
|
@include('books/grid-item', ['book' => $book])
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{!! $books->render() !!}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ trans('entities.books_empty') }}</p>
|
|
|
|
@if(userCan('books-create-all'))
|
2018-08-27 21:18:09 +08:00
|
|
|
<a href="{{ baseUrl("/create-book") }}" class="text-pos">@icon('edit'){{ trans('entities.create_now') }}</a>
|
2018-05-10 11:35:18 +08:00
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
</div>
|