@extends('layouts.frontend') @section('content')
@can('read_create') @endcan

{{ trans('cruds.read.title_singular') }} {{ trans('global.list') }}

@forelse($reads as $read)
{{ $read->book->title }}
@foreach($read->book->categories as $category) {{ $category->name }} @endforeach
{!! $read->book->rating > 0 ? '' : '' !!} {!! $read->book->rating > 1 ? '' : '' !!} {!! $read->book->rating > 2 ? '' : '' !!} {!! $read->book->rating > 3 ? '' : '' !!} {!! $read->book->rating > 4 ? '' : '' !!} {{ $read->book->view }} dilihat ({{ $read->book->bookNotes->count() }} review)
@if($read->percentage)
{{ $read->percentage }}% — {{ trans('cruds.read.fields.last_page') }}: {{ $read->last_page }} @endif @if($read->is_favorite)
{{ trans('cruds.read.fields.is_favorite') }}
@endif
@can('read_show') {{ trans('global.view') }} @endcan @can('read_edit') {{ trans('global.edit') }} @endcan @can('read_delete')
@endcan
@empty

{{ trans('global.no_results') }}

@endforelse
@endsection