@extends('layouts.layout') @section('title', 'Liked Users') @section('content') @php function created_by_name($id){ $result=DB::table('users')->where('id',$id)->first(); return isset($result->name)?$result->name:''; } @endphp

@if(Request::segment(2)=='reported') Reported @else @if(Request::segment(2)=='quiz' || Request::segment(2)=='livequiz') Played @else @if(Request::segment(3)=='shared') Shared @else Liked @endif @endif @endif Users List

@if(Session::has('message')) @endif @php $i = 1; @endphp @php if(count($result)>0) { @endphp @foreach($result as $key=>$item) @php $i++; @endphp @endforeach @php } else { @endphp @php } @endphp
# @if(Request::segment(2)=='quiz' || Request::segment(2)=='livequiz') Quiz @else Post @endif Details Name Email Phone Number Date
{{ $i }} @if(Request::segment(2)=='fanpost') @php $postdata = DB::table('fan_post')->where('id',$item->postid)->first(); @endphp @if($postdata) Post : {{ $postdata->post_name }} @endif @endif @if(Request::segment(2)!='fanpost' && Request::segment(2)!='quiz' && Request::segment(2)!='livequiz') @php $votingdata = DB::table('posts')->where('id',$item->postid)->first(); @endphp @if($votingdata) Post : {{ $votingdata->post_name }} @endif @endif @if(Request::segment(2)=='quiz') @php $quizdata = DB::table('quiz_category')->where('id',$item->referid)->first(); @endphp @if($quizdata) Quiz On : {{ $quizdata->quiz_name }} @if($quizdata->no_of_question)
No.of Questions : {{ $quizdata->no_of_question }} @endif
Point : {{ $item->points }} @endif @endif @if(Request::segment(2)=='livequiz') @php $quizdata = DB::table('live_quiz_category')->where('id',$item->referid)->first(); @endphp @if($quizdata) Quiz On : {{ $quizdata->quiz_name }} @if($quizdata->no_of_question)
No.of Questions : {{ $quizdata->no_of_question }} @endif
Point : {{ $item->points }} @endif @endif
{{ $item->name }} {{ $item->email }} {{ $item->phone_no }} {{ date("d/m/Y h:i A",strtotime($item->created_at))}}
thumb_down

No @if(Request::segment(2)=='reported') reports @else likes @endif yet!

There is no @if(Request::segment(2)=='reported') reported @else liked @endif users to display
@endsection