@if(!isset($onlyOne)) @foreach($mess as $mes) @php $medias = json_decode($mes->media, true); if($mes->uid == auth()->user()->id){ $userMes = auth()->user(); }else{ $userMes = Helper::getUserInfo($mes->uid); } @endphp
{{ $userMes->name }}
{{ Helper::rdate('d M H:i',$mes->created_at, 1) }}
@if(!empty($medias['photo']) || !empty($medias['video']) || !empty($medias['file']))
    @if(!empty($medias['photo'])) @foreach($medias['photo'] as $photo)
  • @endforeach @endif @if(!empty($medias['video']))
  • @endif @if(!empty($medias['file'])) @foreach($medias['file'] as $file)
  • @endforeach @endif
@endif
@endforeach @else @php $medias = json_decode($mes->media, true); if($mes->uid == auth()->user()->id){ $userMes = auth()->user(); }else{ $userMes = Helper::getUserInfo($mes->uid); } @endphp
{{ $userMes->name }}
{{ Helper::rdate('d M H:i',$mes->created_at, 1) }}
@if(!empty($medias['photo']) || !empty($medias['video']) || !empty($medias['file']))
    @if(!empty($medias['photo'])) @foreach($medias['photo'] as $photo)
  • @endforeach @endif @if(!empty($medias['video']))
  • @endif @if(!empty($medias['file'])) @foreach($medias['file'] as $file)
  • @endforeach @endif
@endif
@endif