@if (setting('reviews_enabled'))
@include('public.ebooks.partials.ebook.rating', ['rating' => $ebook->avgRating()])
({{ intl_number($ebook->reviews->count()) }} {{ clean(trans('cynoebook::ebook.user_reviews')) }})
@endif
{{ $ebook->viewed}}
@if (setting('enable_ebook_download'))
@if( $ebook->file_type!='embed_code' )
{{ $ebook->download}}
@endif
@endif
@foreach ($ebook->authors as $author)
@if($author->is_verified && $author->is_active )
{{ $author->name }}{{ (!$loop->last) ? ', ' : ''}}
@else
{{ $author->name }}{{ (!$loop->last) ? ', ' : ''}}
@endif
@endforeach
@if (! is_null($ebook->isbn))
{{ $ebook->isbn }}
@endif
@if (! is_null($ebook->publisher))
{{ $ebook->publisher }}
@endif
@if (! is_null($ebook->publication_year))
{{ $ebook->publication_year }}
@endif
@if (! is_null($ebook->key_word))
{{ $ebook->key_word }}
@endif
@if (! is_null($ebook->target_reader))
{{ $ebook->target_reader }}
@endif
@if (! is_null($ebook->book_edition))
{{ $ebook->book_edition }}
@endif
@if (! is_null($ebook->number_of_pages))
{{ $ebook->number_of_pages }}
@endif
@if (! is_null($ebook->book_language))
{{ $ebook->book_language }}
@endif
@if (! is_null($ebook->country_origin))
{{ $ebook->country_origin }}
@endif
@if (! is_null($ebook->buy_url))
{{clean(trans('cynoebook::ebook.buy_now'))}}
@if (! is_null($ebook->price))
{{ $ebook->price }}
@endif
@endif
@if($ebook->isFavorite())
@else
@endif
@if(setting('enable_ebook_report'))
@auth
@include('public.ebooks.partials.ebook.report.report')
@endauth
@endif
@if($ebook->password=='' && $unlock)
@if(setting('enable_ebook_print_dis'))
@endif
@if(setting('enable_ebook_download'))
@if($ebook->file_type=='upload' )
@endif
@if( $ebook->file_type=='external_link')
@endif
@endif
@endif
@if(setting('enable_ebook_embed_button'))
@include('public.ebooks.partials.ebook.embed')
@endif
@if(setting('enable_ebook_share_qrcode_button'))
@include('public.ebooks.partials.ebook.ebook_qrcode')
@endif
@if(auth()->user())
@if($ebook->user_id==auth()->user()->id)
@endif
@endif