@section('content')
| {{trans('admin.labels.image')}} | {{trans('admin.labels.description')}} | @if (Sentry::getUser()->hasAccess('admin.book.edit')){{trans('admin.labels.edit')}} | @else{{trans('admin.labels.show')}} | @endif @if (Sentry::getUser()->hasAccess('admin.book.destroy')){{trans('admin.labels.delete')}} | @endif
|---|---|---|---|---|
| {{HTML::image($book->image->url('small'), $book->title, ['class' => 'image'])}} |
{{$book->title}}{{$book->author}}{{trans('admin.labels.accessibility')}}: {{($book->stock<=Config::get('website.eshop.stock')) ? trans('admin.labels.out-of-stock') : trans('admin.labels.in-stock')}} @if ($book->stock>Config::get('website.eshop.stock')) {{trans('admin.labels.stock-amount', ['stock' => $book->stock])}} @endif{{trans('admin.labels.price-with-vat')}}: @if ($book->only_for_one_euro) |
@if (Sentry::getUser()->hasAccess('admin.book.edit'))
{{Button::normal(trans('admin.buttons.edit'))->asLinkTo(route('admin.book.edit', [$book['id']]))->extraSmall()->prependIcon(Icon::pencil())}} | @else{{Button::normal(trans('admin.buttons.details'))->asLinkTo(route('admin.book.show', [$book['id']]))->extraSmall()->prependIcon(Icon::search())}} | @endif @if (Sentry::getUser()->hasAccess('admin.book.destroy')){{Button::normal(trans('admin.buttons.delete'))->extraSmall()->prependIcon(Icon::trash())->withAttributes(['data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-route' => route('admin.book.destroy', [$book['id']]), 'data-item' => $book['title']])}} | @endif
| {{trans('admin.messages.empty-list-of-books')}} | ||||