@extends('layouts.frontend') @section('content')
@can('book_create') @endcan
{{ trans('cruds.book.title_singular') }} {{ trans('global.list') }}
@foreach($books as $key => $book) @endforeach
{{ trans('cruds.book.fields.id') }} {{ trans('cruds.book.fields.code') }} {{ trans('cruds.book.fields.cover_image') }} {{ trans('cruds.book.fields.title') }} {{ trans('cruds.book.fields.category') }} {{ trans('cruds.book.fields.author') }} {{ trans('cruds.book.fields.publisher') }} {{ trans('cruds.book.fields.year') }} {{ trans('cruds.book.fields.keywords') }} {{ trans('cruds.book.fields.language') }} {{ trans('cruds.book.fields.pages') }} {{ trans('cruds.book.fields.version') }} {{ trans('cruds.book.fields.is_editor_choice') }} {{ trans('cruds.book.fields.is_hardcopy') }} {{ trans('cruds.book.fields.is_ebook') }} {{ trans('cruds.book.fields.rating') }} {{ trans('cruds.book.fields.view') }} {{ trans('cruds.book.fields.status') }} {{ trans('cruds.book.fields.file_url') }} {{ trans('cruds.book.fields.user') }}  
{{ $book->id ?? '' }} {{ $book->code ?? '' }} @if($book->cover_image) @endif {{ $book->title ?? '' }} @foreach($book->categories as $key => $item) {{ $item->name }} @endforeach {{ $book->author ?? '' }} {{ $book->publisher ?? '' }} {{ $book->year ?? '' }} {{ $book->keywords ?? '' }} {{ App\Models\Book::LANGUAGE_SELECT[$book->language] ?? '' }} {{ $book->pages ?? '' }} {{ $book->version ?? '' }} {{ $book->is_editor_choice ?? '' }} is_editor_choice ? 'checked' : '' }}> {{ $book->is_hardcopy ?? '' }} is_hardcopy ? 'checked' : '' }}> {{ $book->is_ebook ?? '' }} is_ebook ? 'checked' : '' }}> {{ $book->rating ?? '' }} {{ $book->view ?? '' }} {{ App\Models\Book::STATUS_RADIO[$book->status] ?? '' }} {{ $book->file_url ?? '' }} {{ $book->user->name ?? '' }} @can('book_show') {{ trans('global.view') }} @endcan @can('book_edit') {{ trans('global.edit') }} @endcan @can('book_delete')
@endcan
@endsection @section('scripts') @parent @endsection