@extends('layouts.app') @section('title', 'Tracking Form') @section('meta') @vite('resources/css/agent.css') @endsection @section('content')
{{-- Success Message --}} @if (session('success'))
{{ session('success') }}
@endif {{-- Error Messages --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

RU CASE

Record, track and collaborate on customer escalations

Customer Detail From COMS @if ($ici) Viewing Specific Ticket @endif
@if ($ici) Search disabled - viewing ticket {{ $ici->ticket_number }} @else Fetch customer/job details from COMS @endif

No history available. Search for a complaint to see history.


@csrf
Initial Customer Information
View Only
{{-- Happy Call Section --}} @if($ici && $ici->case_status === 'Resolved' && $ici->happyCallStatus)

Happy Call Status
Completed
@elseif($ici && $ici->case_status === 'Resolved' && !$ici->happyCallStatus)

Happy Call Status
Pending Submission
Happy Call data has not been submitted yet. Only authorized personnel can submit this information.
@endif
{{-- Chat section --}} @php $shouldShowChat = $ici; @endphp
{{-- Config for chat.js (used when chatArea is updated via AJAX) --}}
{{-- Chat header --}}

Feedback {{ $ici->ticket_number ?? '' }}

{{-- Chat box --}}
@if ($ici) @forelse($feedbacks as $feedback) @php $isMe = isset(auth()->user()->name) && $feedback->name === auth()->user()->name; $messageClass = $isMe ? 'justify-content-end' : 'justify-content-start'; $bgColor = $isMe ? '#d1e7dd' : '#e2e3e5'; $senderName = $isMe ? 'You' : $feedback->name; @endphp
{{ $senderName }} ({{ $feedback->role }})
{{ $feedback->message }}
{{ $feedback->created_at->format('d M Y, h:i A') }}
@empty

No feedback yet. Be the first to send a message!

@endforelse @endif
{{-- Chat input --}}
@endsection @section('scripts') @endsection