@extends('admin.layouts.app') @section('panel')
@lang('Buyer')
Buyer Image
@lang('Name'): {{ $project->buyer->fullname ?? 'N/A' }}
@lang('Freelancer')
Freelancer Image
@lang('Name'): {{ $project->user->fullname ?? 'N/A' }}
@if ($project->status == Status::PROJECT_REPORTED)

@lang(':buyerName has reported this project for potential issues. Please resolve any conflicts and finalize the decision.', ['buyerName' => $project->buyer->fullname])

@lang('Report Reason')

{{ __($project->report_reason) }}

@endif
@foreach ($messages as $message) @php $styleClass = ''; $profileImage = ''; if ($message->admin_id) { $styleClass = 'escrow-message box-right'; $profileImage = getImage( getFilePath('adminProfile') . '/' . @$message->admin->image, avatar: true, ); } elseif ($message->buyer_id == auth()->guard('buyer')->id()) { $styleClass = 'message-buyer box-left'; $profileImage = getImage( getFilePath('buyerProfile') . '/' . @$message->buyer->image, avatar: true, ); } elseif ($message->user_id) { $styleClass = 'message-user box-left'; $profileImage = getImage( getFilePath('userProfile') . '/' . @$message->user->image, avatar: true, ); } @endphp
Profile Image
{{ nl2br(e($message->message)) }} @if ($message->files)

@php $files = is_array($message->files) ? $message->files : json_decode($message->files, true); $files = is_array($files) ? $files : []; @endphp @foreach ($files as $file) {{ basename($file) }} @endforeach

@endif
@endforeach
{{-- Message Form --}}
@csrf
@lang(' Selected') @lang('Files')
@endsection @push('script-lib') @endpush @push('script') @endpush @push('style') @endpush