@extends('layouts.app') @section('title', $comic->title . ' - Truyện Hay') @section('description', 'Đọc truyện ' . $comic->title . ' online miễn phí tại Truyện Hay. ' . Str::limit(strip_tags($comic->description), 150)) @push('head') {!! $structuredData !!} @endpush @push('styles') @endpush @section('content')
Background cover
Trang chủ chevron_right {{ $comic->categories->first()?->name ?? 'Đang cập nhật' }} chevron_right {{ $comic->title }}
{{ $comic->title }} @if($comic->is_hot)
HOT
@endif

{{ $comic->title }}

@if($comic->alternative_title)

Tên khác: {{ $comic->alternative_title }}

@endif
person {{ $comic->author?->name }} @if($comic->artist) palette {{ $comic->artist }} @endif radio_button_checked {{ $comic->status === 'ongoing' ? 'Đang phát hành' : 'Hoàn thành' }}
{{ number_format($comic->rating, 1) }}
@for($i = 1; $i <= 5; $i++) @if($i <= floor($comic->rating)) {{-- full --}} star @elseif($i - 0.5 <= $comic->rating) {{-- half --}} star_half @else {{-- empty --}} star @endif @endfor
{{ number_format($comic->rating_count) }} đánh giá
Đánh giá của bạn
{{ number_format($comic->view_count) }} Lượt xem
{{ number_format($comic->follow_count) }} Theo dõi
@foreach($comic->categories as $category) {{ $category->name }} @endforeach
@if($comic->chapters->count() > 0) menu_book Đọc từ đầu @endif

Nội dung

{!! nl2br(e(Str::replace(['TruyenQQ'], ['Truyện Hay'], $comic->description))) !!}
update

Cập nhật

@if($comic->chapters->count() > 0)

{{ $comic->chapters->first()->title }} - {{ $comic->chapters->first()->published_at->diffForHumans() }}

@else

Chưa có chương

@endif
translate

Nhóm dịch

{{ $comic->translator ?? 'Đang cập nhật' }}

Danh sách chương

@if($comic->chapters->count() > 0) @else
menu_book

Chưa có chương nào

@endif

Bình luận

Truyện cùng thể loại

@php $relatedComics = \App\Models\Comic::whereHas('categories', function($q) use ($comic) { $q->whereIn('categories.id', $comic->categories->pluck('id')); }) ->where('id', '!=', $comic->id) ->limit(5) ->get(); @endphp @forelse($relatedComics as $related)
{{ $related->title }}

{{ $related->title }}

{{ $related->chapters->first()?->title ?? 'Chưa có chương' }}

visibility {{ number_format($related->view_count) }}
@empty

Không có truyện liên quan

@endforelse

Thể loại phổ biến

@php $popularCategories = \App\Models\Category::where('is_active', true)->limit(10)->get(); @endphp @foreach($popularCategories as $category) {{ $category->name }} @endforeach
@endsection @push('styles') @endpush @push('scripts') @endpush