{{ __('Call to Narrate Chapter') }}

@if(session('error'))

{{ session('error') }}

@endif

Book: {{ $book->title }}

Chapter: {{ $chapter->title }}

📞 How it works:

  1. Enter your phone number below
  2. Click "Initiate Call" - you'll receive a call within seconds
  3. Answer the call and start narrating your chapter content
  4. Hang up when you're done - the call will be transcribed
  5. The transcription will be added to your chapter automatically
@csrf

Include country code (e.g., +1 for US, +44 for UK)

@error('phone_number')

{{ $message }}

@enderror

Note: This feature requires Telnyx API credentials. Each call costs 1 credit plus standard call charges.

Credits Required: 1 credit
Your Balance: {{ auth()->user()->credit_balance }} credits
Cancel
@if(auth()->user()->credit_balance <= 0)

You don't have enough credits. Purchase credits

@endif
@if($chapter->calls && $chapter->calls->count() > 0)

Recent Calls for This Chapter

@foreach($chapter->calls->take(5) as $call)
{{ ucfirst($call->status) }} {{ $call->created_at->diffForHumans() }}
Duration: {{ $call->duration ? gmdate('i:s', $call->duration) : 'N/A' }}
@if($call->transcription)
Transcription:

{{ Str::limit($call->transcription->text, 200) }}

@endif
@endforeach
@endif