@extends('layouts.app') @section('title', 'Recordings') @section('content') @php $indexRows = $recordings->map(function ($recording) { return [ 'id' => $recording->id, 'status' => $recording->transcription_status, 'status_label' => $recording->transcriptionStatusLabel(), 'progress' => $recording->transcription_progress, 'percent' => $recording->transcription_percent, 'is_active' => $recording->isTranscribing(), 'word_count' => $recording->word_count, 'word_count_display' => $recording->word_count > 0 ? number_format($recording->word_count) : '—', 'badge_class' => match ($recording->transcription_status) { 'done' => 'bg-teal-50 text-teal-800 ring-teal-600/20', 'processing' => 'bg-amber-50 text-amber-800 ring-amber-600/20', 'pending' => 'bg-amber-50 text-amber-800 ring-amber-600/20', 'failed' => 'bg-red-50 text-red-800 ring-red-600/20', 'cancelled' => 'bg-stone-100 text-stone-700 ring-stone-500/20', default => 'bg-stone-100 text-stone-700 ring-stone-500/20', }, ]; })->values(); @endphp

Recordings

Manage pocket-recorder audio and transcripts.

@csrf
@if ($recordings->isEmpty())

No recordings yet.

Upload your first MP3
@else
@foreach ($recordings as $recording) @endforeach
Title Duration Words Status Uploaded
{{ $recording->title }} @if ($recording->artist)
{{ $recording->artist }}
@endif @if ($snippet = $recording->transcriptSnippet($search ?: null))

{{ $snippet }}

@endif
{{ $recording->duration_formatted }} {{ $recording->word_count > 0 ? number_format($recording->word_count) : '—' }} {{ $recording->transcriptionStatusLabel() }}
{{ $recording->created_at?->format('Y-m-d H:i') }}
{{ $recordings->links() }}
@endif
@endsection