{{ $book->title }} {{-- Hero Header Section --}}
{{-- Breadcrumb --}}
Home {{ strtoupper(Auth::user()->name) }}
{{-- Left: Info --}}

{{ $book->title }}

{{ $book->chapter_count }} {{ Str::plural('chapter', $book->chapter_count) }} · {{ number_format($book->total_word_count) }} words
Manage Account
{{-- Right: 3D Book Mockup (uses same renderer as design page) --}}
{{-- Quick Actions --}}

Start a new story

Write the next chapter
@php $lastEditedChapter = $book->chapters()->latest('updated_at')->first(); @endphp @if($lastEditedChapter)
{{ $lastEditedChapter->title }}
@else
What would you save if your house was on fire?
@endif
Explore new questions
{{-- Stories Section --}}

Your stories

@forelse($book->chapters as $chapter) @php $hasContent = !empty($chapter->content) && strlen(strip_tags($chapter->content)) > 50; $chapterStatus = $chapter->status ?? 'draft'; @endphp
{{-- Order --}}
{{ $chapter->order }}
{{-- Info --}}

{{ $chapter->title }}

{{ $chapter->created_at->format('F j, Y') }}

{{-- Word count --}} {{ number_format($chapter->word_count ?? 0) }} words {{-- Action --}} @if($hasContent) View @else Start Writing @endif
@csrf @method('DELETE')
@empty

No stories yet

Start adding stories to your book using the prompts above

Add First Story
@endforelse
{{-- Complete button --}} @if($book->chapters->count() > 0)
Complete Your Book
@endif @php $coverStyle = $book->cover_style ?? 'white-frame'; $coverBg = $book->bg_color ?? '#134e4a'; $coverPhoto = $book->cover_image ? asset($book->cover_image) : ''; @endphp