@extends('layouts.admin') @section('content')
{{ trans('global.show') }} {{ trans('cruds.book.title') }}
{{ trans('cruds.book.fields.id') }} {{ $book->id }}
{{ trans('cruds.book.fields.code') }} {{ $book->code }}
{{ trans('cruds.book.fields.cover_image') }} @if($book->cover_image) @endif
{{ trans('cruds.book.fields.title') }} {{ $book->title }}
{{ trans('cruds.book.fields.category') }} @foreach($book->categories as $key => $category) {{ $category->name }} @endforeach
{{ trans('cruds.book.fields.author') }} {{ $book->author->name ?? '' }}
{{ trans('cruds.book.fields.publisher') }} {{ $book->publisher->name ?? '' }}
{{ trans('cruds.book.fields.year') }} {{ $book->year }}
{{ trans('cruds.book.fields.excerpt') }} {!! $book->excerpt !!}
{{ trans('cruds.book.fields.table_of_content') }} {!! $book->table_of_content !!}
{{ trans('cruds.book.fields.keywords') }} {{ $book->keywords }}
{{ trans('cruds.book.fields.language') }} {{ App\Models\Book::LANGUAGE_SELECT[$book->language] ?? '' }}
{{ trans('cruds.book.fields.pages') }} {{ $book->pages }}
{{ trans('cruds.book.fields.version') }} {{ $book->version }}
{{ trans('cruds.book.fields.is_editor_choice') }} is_editor_choice ? 'checked' : '' }}>
{{ trans('cruds.book.fields.is_hardcopy') }} is_hardcopy ? 'checked' : '' }}>
{{ trans('cruds.book.fields.is_ebook') }} is_ebook ? 'checked' : '' }}>
{{ trans('cruds.book.fields.rating') }} {{ $book->rating }}
{{ trans('cruds.book.fields.view') }} {{ $book->view }}
{{ trans('cruds.book.fields.status') }} {{ App\Models\Book::STATUS_RADIO[$book->status] ?? '' }}
{{ trans('cruds.book.fields.file_url') }} {{ $book->file_url }}
{{ trans('cruds.book.fields.user') }} {{ $book->user->name ?? '' }}
{{ trans('global.relatedData') }}
@includeIf('admin.books.relationships.bookNotes', ['notes' => $book->bookNotes])
@includeIf('admin.books.relationships.bookHardcopies', ['hardcopies' => $book->bookHardcopies])
@includeIf('admin.books.relationships.bookReads', ['reads' => $book->bookReads])
@endsection