@extends( 'newBase' ) @section('title', 'index') @section('content') @php($version = \Illuminate\Support\Facades\Config::get('app.version')) @php($documentType=\App\lib\FileTransaction::FILE_TYPES["document"])
@if(empty($detail[0]->isNotification)) @endif

{{__('Chat Detail')}}

{{__('Theme')}}: {{$detail[0]->title}}

{{$detail[0]->createTime}}
{{__('Client')}}: @if(!empty($sendList['client'])) @foreach($sendList['client'] as $key=>$one) {{$one->userName}}({{$one->email}})@if($key != count($sendList['client']) - 1),@endif @endforeach @endif

{{__('Colleagues')}}: @if(!empty($sendList['staff'])) @foreach($sendList['staff'] as $key=>$one) {{$one->addresseeName}}({{$one->email}})@if($key != count($sendList['staff']) - 1),@endif @endforeach @endif

{{__('CC')}}: @if(!empty($sendList['cc'])) @foreach($sendList['cc'] as $key=>$one) {{$one->addresseeName}}({{$one->email}})@if($key != count($sendList['cc']) - 1),@endif @endforeach @endif

{!! $detail[0]->body !!}

@if(count($detail['documents']) > 0)

{{count($detail['documents'])}} {{__('File Number')}} - {{__('Download All')}}

@endif
@foreach($detail['documents'] as $key=>$one)
@include('components.itemsDownLoadFiles',[ 'isShowSync'=>0, '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, 'showDelete' => 0, 'size'=>$one->size ]) @if(!empty($one->type) && $one->type == 1 )
{{__('Attachment Synchronized')}}
@else
{{__('Synchronize This Attachment')}}
@endif
@endforeach

{{__('The sender')}}:@if(empty($detail[0]->isNotification)) {{$detail[0]->sendUser}} @else {{__('System')}} @endif

@if($replay) @foreach($replay as $key=>$one)
{{$one->created_at}}

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

{{__('Replier')}}:{{$one->userName}}

@if(count($one->documentsID) > 0)

{{count($one->documentsID)}} {{__('File Number')}} - {{__('Download All')}}

@endif
@foreach($one->documentsID as $key=>$documents)
@include('components.itemsDownLoadFiles',[ 'isShowSync'=>0, 'id'=> $documents->id, 'format'=> $documents->format, 'filePath' => config('locations.customerDocument.asset').$documents->filePath, 'pdfPath'=> config('locations.customerDocument.asset').$documents->pdfPath, 'thumbnailPath'=> ((in_array($documents->format,\App\lib\FileTransaction::FILE_TYPES["document"] ))?config('locations.customerDocumentThumbnail.asset'):config('locations.customerDocument.asset')).$documents->thumbnailPath, 'name'=> $documents->name, 'created_at' =>$documents->created_at, 'updated_at' =>$one->updated_at, 'showDelete' => 0, 'size'=>$documents->size ]) @if(!empty($documents->type) && $documents->type == 1)
{{__('Attachment Synchronized')}}
@else
同步文件
@endif
@endforeach
@endforeach @endif @if(empty($detail[0]->isNotification))
@if($type == 3) 再次编辑发送 @else {{__('Quick reply')}} @endif {{-- 下一封--}}
@endif
@endsection