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

Call Records

Rekaman panggilan masuk dari telepon 110

Reset
@forelse($callRecords as $callRecord) @empty @endforelse
Call ID Caller ID Called Number Status Duration Started At Location Aksi
{{ $callRecord->call_id }} {{ $callRecord->caller_id ?? '-' }} {{ $callRecord->called_number ?? '110' }} @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) }} @if($callRecord->duration) {{ gmdate('i:s', $callRecord->duration) }} @else - @endif {{ $callRecord->started_at?->format('d/m/Y H:i:s') ?? '-' }} {{ $callRecord->location->address ?? ($callRecord->location->district ?? '-') }} Detail

Tidak ada call records

@if(method_exists($callRecords, 'links'))
{{ $callRecords->links() }}
@endif
@push('scripts') @endpush @endsection