@php function comp_numb($input){ $input = number_format($input); $input_count = substr_count($input, ','); $arr = array(1=>'K','M','B','T'); if(isset($arr[(int)$input_count])) return substr($input,0,(-1*$input_count)*4).$arr[(int)$input_count]; else return $input; } @endphp @if(count($fanzpost)) @foreach($fanzpost as $key=>$item)
@php $getuserdata = DB::table('users')->where('id',$item->created_by)->first(); $profileimg = url('/').'/assets/images/usrbig.jpg'; if(is_array($getuserdata) && count($getuserdata)>0) { if($getuserdata->profile_picture) { $profileimg = url('/')."/uploads/members/".$getuserdata->profile_picture; } if($getuserdata->sm!='') { $profileimg = $getuserdata->profile_picture; } } @endphp
@if(Auth::check())
    @if($item->created_by == Auth::user()->id)
  • Edit Post
  • Delete Post
  • @endif
  • Report Post
@endif {{isset($getuserdata->name)?$getuserdata->name:''}}@if($item->feeling_name && $item->feeling_class) is {{$item->feeling_name}} @endif published: @if($item->updated_at) {{ date("F, d Y h:i A",strtotime($item->updated_at))}} @else {{ date("F, d Y h:i A",strtotime($item->created_at))}} @endif
@php $postcomments = DB::table('post_comments')->where('post_id',$item->id)->limit('2')->get(); $cmd_lastid = 0; @endphp
    @if(count($postcomments)>0) @foreach($postcomments as $c => $cmd_item) @php $getuserinfo = DB::table('users')->where('id',$cmd_item->created_by)->first(); $profileimg = url('/').'/assets/images/usrbig.jpg'; if(is_array($getuserinfo) && count($getuserinfo)>0) { if($getuserinfo->profile_picture) { $profileimg = url('/')."/uploads/members/".$getuserinfo->profile_picture; } if($getuserinfo->sm!='') { $profileimg = $getuserinfo->profile_picture; } } @endphp
  • {{isset($getuserinfo->name)?$getuserinfo->name:''}}

    {{$cmd_item->comments}}

    @php $commentimages = DB::table('comments_images')->where('comment_id',$cmd_item->id)->get(); @endphp
    {{ \Carbon\Carbon::parse($cmd_item->created_at)->diffForHumans() }} @php $isLiked = 0; if(Auth::check()) { $isLiked=DB::table('voting')->where("postid",$cmd_item->id)->where("vtype",'comments')->where("user_id",Auth::user()->id)->count(); } @endphp @if($isLiked==0) @else @endif
  • @php $cmd_lastid = $cmd_item->id; @endphp @endforeach @if(count($postcomments)>1)
  • more comments+
  • @endif @endif @if(count($postcomments)==0)
  • @endif
  • @if(Auth::check()) @php $loginuserdata = DB::table('users')->where('id',Auth::user()->id)->first(); $profileimg = url('/').'/assets/images/usrbig.jpg'; if(is_array($loginuserdata) && count($loginuserdata)>0) { if($loginuserdata->profile_picture) { $profileimg = url('/')."/uploads/members/".$loginuserdata->profile_picture; } if($loginuserdata->sm!='') { $profileimg = $loginuserdata->profile_picture; } } @endphp
    @endif
    Press enter to post your comment.
@php $last_id = $item->id; @endphp @endforeach @else @if(Request::segment(1) == 'postview')

Post not available!

@else

No Posts Yet!
Create your first post!

@endif @endif