@php use App\Http\Controllers\Mod\ModFile;use App\Http\Controllers\Mod\ModFileLink;use App\Models\Profile; $profile=Profile::user(); @endphp
@if(isset($record_description_seller)) @foreach($record_description_seller as $row_seller) {{-- {{dd($record_description_seller)}}--}} @if(!empty($row_seller->description)) @php $profile_responsible = Profile::user($row_seller->idUser); @endphp
{{$row_seller->idSalesOrderDescriptionSeller}} Mensagem enviada por: {{$profile_responsible->userName}} às {{date('d/m/Y H:i:s', strtotime($row_seller->created_at))}}. {{-- ARQUIVOS--}} @php $record_file_link= ModFileLink::informaction([ 'idFileLinkEvent'=>10,//Comunicacao interna da Proposta 'idGeneric'=>$row_seller->idSalesOrderDescriptionSeller, ]); @endphp @if(count($record_file_link) >0)
@foreach ($record_file_link as $row_link) @php $record_file=ModFile::informaction([ 'idFile'=>$row_link->idFile, ]); if($record_file !=null){ @endphp {{$record_file->fileName}} | @php } @endphp @endforeach
@endif
@endif @endforeach @endif