@extends('layouts.app') @section('title', 'Call Record Detail') @section('content')

Call Record Detail

Detail rekaman panggilan

← Kembali

Informasi Panggilan

Call ID {{ $callRecord->call_id }}
Caller ID {{ $callRecord->caller_id ?? '-' }}
Called Number {{ $callRecord->called_number ?? '110' }}
Status @php $statusColors = [ 'ringing' => 'bg-yellow-500/20 text-yellow-400 border-yellow-500/30', 'answered' => 'bg-blue-500/20 text-blue-400 border-blue-500/30', 'ended' => 'bg-green-500/20 text-green-400 border-green-500/30', 'missed' => 'bg-red-500/20 text-red-400 border-red-500/30', 'busy' => 'bg-orange-500/20 text-orange-400 border-orange-500/30', 'failed' => 'bg-red-500/20 text-red-400 border-red-500/30', ]; $color = $statusColors[$callRecord->status] ?? 'bg-gray-500/20 text-gray-400 border-gray-500/30'; @endphp {{ ucfirst($callRecord->status) }}
Duration @if($callRecord->duration) {{ gmdate('H:i:s', $callRecord->duration) }} @else - @endif
Channel {{ $callRecord->channel ?? '-' }}

Timeline

Started

{{ $callRecord->started_at?->format('d/m/Y H:i:s') ?? '-' }}

@if($callRecord->answered_at)

Answered

{{ $callRecord->answered_at->format('d/m/Y H:i:s') }}

@endif @if($callRecord->ended_at)

Ended

{{ $callRecord->ended_at->format('d/m/Y H:i:s') }}

@endif
@if($callRecord->location)

Lokasi

{{ $callRecord->location->address ?? '-' }}

{{ $callRecord->location->district ?? '' }} {{ $callRecord->location->regency ? ', ' . $callRecord->location->regency : '' }} {{ $callRecord->location->province ? ', ' . $callRecord->location->province : '' }}

{{ $callRecord->location->latitude }}, {{ $callRecord->location->longitude }}

@endif
@if($callRecord->complaint)

Related Complaint

Ticket Number

{{ $callRecord->complaint->ticket_number }}

Status

{{ ucfirst($callRecord->complaint->status) }}
Lihat Complaint
@endif @php $recording = \App\Models\ComplaintRecording::where('recording_id', $callRecord->call_id)->first(); @endphp @if($recording)

Recording

@php $recordingService = app(\App\Services\RecordingService::class); $recordingUrl = $recordingService->getRecordingUrl($recording); @endphp

Duration: {{ $recording->duration ?? '-' }}

Source: {{ ucfirst($recording->source) }}

@elseif($callRecord->recording_path)

Recording

Recording path: {{ $callRecord->recording_path }}

@endif
@endsection