@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
@if(!empty($medias['photo']) || !empty($medias['video']) || !empty($medias['file']))
@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
@if(!empty($medias['photo']) || !empty($medias['video']) || !empty($medias['file']))
@endif
@endif