@extends('layouts.app') @section('title', 'Chat — ' . $chatThread->order->order_id) @section('header-left')
arrow_back
account_balance_wallet

{{ $chatThread->order->order_id }}

lock

Secured by Vicdan Shield

@endsection @section('content')
{{-- Progress --}} @php $progress = match($chatThread->order->status) { 'pending' => 15, 'under_review' => 35, 'processing' => 65, 'completed' => 100, default => 0 }; @endphp
Transaction Progress {{ $progress }}% Complete
@foreach(['Submitted','Verification','Processing','Completed'] as $step) {{ $step }} @endforeach
{{-- Messages --}}
@foreach($messages as $msg) @php $isMe = $msg->sender_id === auth()->id(); @endphp @if($msg->is_system_message)
System • {{ $msg->created_at->format('h:i A') }}
support_agent
{{ $msg->message }}
@elseif($isMe)
You @if($msg->message)
{{ $msg->message }}
@endif @if($msg->file_attachment) {{ $msg->file_type === 'image' ? 'image' : 'description' }}

{{ $msg->file_name }}

{{ strtoupper($msg->file_type ?? 'file') }}

download
@endif
{{ $msg->created_at->format('h:i A') }} {{ $msg->is_read ? 'done_all' : 'check' }}
@else
support_agent
{{ $msg->sender->name }} @if($msg->message)
{{ $msg->message }}
@endif @if($msg->file_attachment) description

{{ $msg->file_name }}

{{ strtoupper($msg->file_type ?? 'file') }}

@endif {{ $msg->created_at->format('h:i A') }}
@endif @endforeach
{{-- Input Dock --}} @if($chatThread->status === 'open')
@csrf

verified_user End-to-end encrypted

@else

This chat thread is {{ $chatThread->status }}.

@endif
@endsection @push('scripts') @endpush