@if ($mediaImageVideoTotal == 1) @foreach ($mediaImageVideo as $media) @php $urlImg = url('files/messages', $msg->id).'/'.$media->file; if ($media->width && $media->height > $media->width) { $styleImgVertical = 'img-vertical-lg'; } else { $styleImgVertical = null; } @endphp @if ($media->type == 'image')
width ? 'width="'. $media->width .'"' : null !!} {!! $media->height ? 'height="'. $media->height .'"' : null !!} class="post-img-grid">
@endif @if ($media->type == 'video')
@endif @endforeach @endif @if ($mediaImageVideoTotal >= 2)
@foreach ($mediaImageVideo as $media) @php if ($media->type == 'video') { $urlMedia = Helper::getFile(config('path.messages').$media->file); $videoPoster = $media->video_poster ? Helper::getFile(config('path.messages').$media->video_poster) : false; } else { $urlMedia = url("files/messages", $msg->id).'/'.$media->file; $videoPoster = null; } $nth++; @endphp @if ($media->type == 'image' || $media->type == 'video') @if ($nth == 4 && $mediaImageVideoTotal > 4)

+{{ $mediaImageVideoTotal - 4 }}

@endif @if ($media->type == 'video') @endif @if (! $videoPoster && $media->type == 'video') @endif @if ($videoPoster) width ? 'width="'. $media->width .'"' : null !!} {!! $media->height ? 'height="'. $media->height .'"' : null !!} class="post-img-grid"> @endif
@endif @endforeach
@endif @foreach ($msg->media as $media) @if ($media->type == 'music')
@endif @if ($media->type == 'zip')
{{$media->file_name}}.zip

{{$media->file_size}}

@endif @if ($media->type == 'epub')
{{$media->file_name}}.epub

{{ __('general.view_online') }}

@endif @endforeach @if ($msg->tip == 'yes')
{{__('general.tip'). ' -- ' .Helper::priceWithoutFormat($msg->tip_amount)}}
@endif @if ($msg->gift_id)
@if (isset($msg->gift->id)) @endif
{{__('general.gift_for'). ' ' .Helper::priceWithoutFormat($msg->gift_amount)}}
@endif @if ($mediaCount == 0) {!! $chatMessage !!} @endif