@extends('layouts.app')
@section('title', 'Detail Keluhan')
@section('content')
| Pelanggan |
{{ $complaint->customer->name }} |
| Alamat |
{{ $complaint->customer->address }} |
| Kategori Keluhan |
{{ $complaint->category->name }} (Bobot: {{ $complaint->category->weight }}) |
| Status |
{{ ucfirst($complaint->status) }}
|
| Skor Prioritas |
{{ number_format($complaint->priority_score, 2) }}
|
| Status SLA |
@php $sla = $complaint->calculateSlaStatus(); @endphp
{{ number_format($sla['percentage'], 1) }}%
Sisa waktu: {{ $sla['remaining'] }} jam dari {{ $complaint->category->sla_time }} jam
|
| Tanggal Dibuat |
{{ $complaint->created_at->format('d/m/Y H:i') }} |
| Ditangani Oleh |
{{ $complaint->user->name }} |
| Tanggal Selesai |
{{ $complaint->completed_at ? $complaint->completed_at->format('d/m/Y H:i') : '-' }} |
{{ $complaint->description }}
{{ $complaint->notes ?? '-' }}
@endsection