@section('content')
| {{trans('admin.labels.title')}} | @if (Sentry::getUser()->hasAccess('admin.book-category.edit')){{trans('admin.labels.edit')}} | @else{{trans('admin.labels.show')}} | @endif @if (Sentry::getUser()->hasAccess('admin.book-category.destroy')){{trans('admin.labels.delete')}} | @endif
|---|---|---|---|
| {{$book_category['title']}} | @if (Sentry::getUser()->hasAccess('admin.book-category.edit')){{Button::normal(trans('admin.buttons.edit'))->asLinkTo(route('admin.book-category.edit', [$book_category['id']]))->extraSmall()->prependIcon(Icon::pencil())->withAttributes(['class' => 'edit'])}} | @else{{Button::normal(trans('admin.buttons.details'))->asLinkTo(route('admin.book-category.show', [$book_category['id']]))->extraSmall()->prependIcon(Icon::search())}} | @endif @if (Sentry::getUser()->hasAccess('admin.book-category.destroy')){{Button::normal(trans('admin.buttons.delete'))->extraSmall()->prependIcon(Icon::trash())->withAttributes(['data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-route' => route('admin.book-category.destroy', [$book_category['id']]), 'data-item' => $book_category['title']])}} | @endif
| {{trans('admin.messages.empty-list-of-categories')}} | |||