@extends('layouts.app') @section('title', 'Registration 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
user()->hasRole('Management') ? 'disabled' : '' }}>
Fetch customer/job details from COMS

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


@csrf
Initial Customer Information
{{ $ici && isset($is_resolved_ticket) && $is_resolved_ticket ? 'Resolved Ticket (View Only)' : ($ici ? 'View Only' : 'Step 1') }}
{{ $ici ? 'Ticket number' : 'Ticket number will be generated automatically' }}
@if (auth()->user()->hasRole('Agent') || auth()->user()->hasRole('TL-Agent') || $ici)
@endif
@if ($ici)
@endif
{{-- Happy Call Section --}} @if ($ici && $ici->case_status === 'Resolved' && $ici->happyCallStatus)

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

Happy Call Status
Pending Submission
@elseif($ici && $ici->case_status === 'Resolved' && !$ici->happyCallStatus && auth()->user()->hasRole('Management'))

Happy Call Status
Pending Submission
Happy Call data has not been submitted yet. Only authorized personnel can submit this information.
@elseif(!auth()->user()->hasRole('Management')) @endif @if (!$ici && !auth()->user()->hasRole('Management'))
@elseif($ici && auth()->user()->hasRole('AdminOperations') && $ici->case_status !== 'Resolved')
@elseif($ici && isset($is_resolved_ticket) && $is_resolved_ticket)
This ticket is resolved and cannot be edited. All fields are displayed in view-only mode.
@endif
{{-- Chat section --}}
{{-- Config for chat.js (used when chatArea is updated via AJAX) --}}
{{-- Chat header --}}

Feedback {{ $ici->ticket_number ?? ($submitted_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 --}}
@role('ServiceCenter') {{-- Service Center form --}}
Service Center Form
@csrf
case_status === 'Resolved' ? 'disabled' : '' }}>
@endrole
@endsection @section('scripts') @endsection