2019-08-25 10:44:51 -04:00
|
|
|
<main class="content-wrap mt-m card">
|
2019-02-03 08:45:45 -05:00
|
|
|
|
|
|
|
<div class="grid half v-center">
|
|
|
|
<h1 class="list-heading">{{ trans('entities.shelves') }}</h1>
|
|
|
|
<div class="text-right">
|
2022-10-30 11:16:06 -04:00
|
|
|
@include('common.sort', $listOptions->getSortControlData())
|
2019-02-03 08:45:45 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-08-27 09:18:09 -04:00
|
|
|
@if(count($shelves) > 0)
|
2019-02-03 08:45:45 -05:00
|
|
|
@if($view === 'list')
|
|
|
|
<div class="entity-list">
|
2019-02-16 12:13:01 -05:00
|
|
|
@foreach($shelves as $index => $shelf)
|
|
|
|
@if ($index !== 0)
|
|
|
|
<hr class="my-m">
|
|
|
|
@endif
|
2021-08-22 08:15:58 -04:00
|
|
|
@include('shelves.parts.list-item', ['shelf' => $shelf])
|
2019-02-03 08:45:45 -05:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@else
|
2018-08-27 09:18:09 -04:00
|
|
|
<div class="grid third">
|
|
|
|
@foreach($shelves as $key => $shelf)
|
2021-08-22 08:15:58 -04:00
|
|
|
@include('entities.grid-item', ['entity' => $shelf])
|
2018-08-27 09:18:09 -04:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
<div>
|
|
|
|
{!! $shelves->render() !!}
|
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ trans('entities.shelves_empty') }}</p>
|
|
|
|
@if(userCan('bookshelf-create-all'))
|
2022-10-29 10:23:21 -04:00
|
|
|
<a href="{{ url("/create-shelf") }}"
|
|
|
|
class="button outline">@icon('edit'){{ trans('entities.create_now') }}</a>
|
2018-08-27 09:18:09 -04:00
|
|
|
@endif
|
|
|
|
@endif
|
2019-02-03 08:45:45 -05:00
|
|
|
|
2019-08-25 10:44:51 -04:00
|
|
|
</main>
|