@php $statusColor = match($chapter->status) { 'completed' => 'var(--color-success)', 'draft' => 'var(--color-warning)', default => 'var(--color-text-tertiary)', }; $statusBg = match($chapter->status) { 'completed' => 'var(--color-success-light)', 'draft' => 'var(--color-warning-light, rgba(234,179,8,0.1))', default => 'var(--color-bg-subtle)', }; @endphp {{ ucfirst($chapter->status) }} Edit

{{ $chapter->title ?: 'Untitled Chapter' }}

Chapter {{ $chapter->order }} · {{ $chapter->updated_at->format('F j, Y') }} · {{ number_format($chapter->word_count ?? 0) }} words
@if($chapter->content)
{!! $chapter->content !!}
@else

No content yet

Start writing your story by clicking the edit button

Start Writing
@endif
@if($calls->count() > 0)

Voice Recordings

{{ $calls->count() }}
@foreach($calls as $call)
{{ $call->created_at->format('M d, Y') }} {{ $call->created_at->format('g:i A') }} · {{ $call->formatted_duration }}
@if($call->transcription && $call->transcription->status === 'completed') Transcribed @elseif($call->transcription && $call->transcription->status === 'failed') Failed @endif
@if($call->transcription && $call->transcription->transcript)
Transcription {{ $call->transcription->word_count }} words · {{ $call->transcription->confidence }}%
{{ Str::limit($call->transcription->transcript, 300) }}
@endif
@endforeach
@endif