@extends('layouts.app') @section('title', 'تفاصيل المكالمة') @section('page_title', 'تفاصيل المكالمة #' . $call->id) @section('page_subtitle', 'المعرّف الخارجي: ' . ($call->external_id ?? '—')) @section('page_actions') @if (auth()->user()->hasPermission('quality.create')) تقييم جودة @endif @if (! $call->is_closed && auth()->user()->hasPermission('calls.edit')) @endif @endsection @section('content')
بيانات المكالمة
الاتجاه{{ $call->directionLabel() }}
الرقم{{ $call->phone_number }}
العميل @if ($call->customer) {{ $call->customer->name }} @else غير مسجل @endif
الموظف{{ $call->agent?->name ?? '—' }}
الحملة{{ $call->campaign?->name ?? '—' }}
الطابور{{ $call->queue?->name ?? '—' }}
الحالة{{ $call->statusLabel() }}
البداية{{ $call->started_at?->format('Y-m-d H:i:s') ?? '—' }}
وقت الرد{{ $call->answered_at?->format('Y-m-d H:i:s') ?? '—' }}
النهاية{{ $call->ended_at?->format('Y-m-d H:i:s') ?? '—' }}
الانتظار / الكلام{{ gmdate('H:i:s', (int) $call->wait_time) }} / {{ gmdate('H:i:s', (int) $call->talk_time) }}
المدة الكلية{{ gmdate('H:i:s', (int) $call->duration) }}

نتيجة الاتصال
@if ($call->disposition) {{ $call->disposition->name }} @if ($call->subDisposition) {{ $call->subDisposition->name }} @endif @else لم يتم تسجيل نتيجة بعد @endif
موعد المتابعة
{{ $call->follow_up_at?->format('Y-m-d H:i') ?? '—' }}
ملخص المكالمة

{!! nl2br(e($call->summary ?? '—')) !!}

ملاحظات داخلية

{!! nl2br(e($call->notes ?? '—')) !!}

@if ($call->recording_url && auth()->user()->hasPermission('recordings.listen'))
التسجيل
@endif
@include('calls.partials.timeline') @include('calls.partials.related')
@include('calls.partials.close-modal') @endsection