@if($message->thumbnail != '')
@if($message->thumbnail != '' && file_exists(public_path().'/images/simple_products/'.$message->thumbnail))
@else
@endif
@endif
@if($seller->image !="")
@if(file_exists(public_path().'/images/user/'.$seller->image))
 }})
@else
 }})
@endif
@else

@endif
@php
$string = $seller->username;
$arr = explode(' ', trim($string));
$first_word= $arr[0];
$string1 = $seller->username;
$len = str_word_count($string1);
if($len>1){
$pieces = explode(' ', $string1);
$last_word = array_pop($pieces);
} else{
$last_word = '';
}
@endphp