@extends( 'newBase' ) @section('title', 'index') @section('content') @php($version = \Illuminate\Support\Facades\Config::get('app.version')) {{----}}

{{__('Write')}}

{{ csrf_field() }}
@include('chat::selectUser',['users'=>$client,'userInfo'=>($detail->userInfo ?? '')])

{!! htmlspecialchars_decode($detail->body) !!}

@include('chat::newUpload',['aUserDocumentList'=>$detail->documents ?? []])
@if(!empty($detail->documents)) @foreach($detail->documents as $key=>$one)
@include('components.itemsDownLoadFiles',[ 'docuemnt'=> $one, 'isShowSync'=> 1, 'file_upload_status'=>$one->file_upload_status, 'id'=> $one->id, 'format'=> $one->format, 'filePath' => config('locations.customerDocument.asset').$one->filePath, 'pdfPath'=> config('locations.customerDocument.asset').$one->pdfPath, 'thumbnailPath'=> ((in_array($one->format,\App\lib\FileTransaction::FILE_TYPES["document"] ))?config('locations.customerDocumentThumbnail.asset'):config('locations.customerDocument.asset')).$one->thumbnailPath, 'name'=> $one->name, 'created_at' =>$one->created_at, 'updated_at'=>$one->updated_at, 'documentType'=>\App\lib\FileTransaction::FILE_TYPES["document"] ])
@endforeach @endif
{{----}} @include('chat::js') @endsection