@extends('Layouts.adminLayout') @section('title') {{__('Show')}} @endsection @section('breadcrumb')
@endsection @section('content')
{{__('Sender')}} : {{$data['Comment']->fullname}}
{{__('Email')}} : {{$data['Comment']->email}}
{{__('Date')}} : {{timestampDateDay($data['Comment']->created_at,true)['date']}}
@if($data['Comment']->commentable_type == 0)
{{__('Blog')}}:

@if(isset($data['Comment']->blog->title)) {{$data['Comment']->blog->title}} @else {{__('comment')}} @endif

@elseif($data['Comment']->commentable_type == 1)
{{__('Product')}}:

@if(isset($data['Comment']->product->title)) {{$data['Comment']->product->title}} @else {{__('Comment')}} @endif

@endif @if($data['Comment']->commentable_type == 1)
{{__('Product Rating')}}:

{{$data['Comment']->rating}}

{{__('Advantage')}}:
@php $arrayAdvantage=[];@endphp @php $arrayAdvantage=json_decode($data['Comment']->advantage); @endphp @if($arrayAdvantage!=null) @foreach($arrayAdvantage as $key => $item)

{{$arrayAdvantage[$key]}}

@endforeach @endif
{{__('Disadvantage')}}:
@php $arrayDisadvantage=[];@endphp @php $arrayDisadvantage=json_decode($data['Comment']->disadvantage); @endphp @if($arrayDisadvantage!=null) @foreach($arrayDisadvantage as $key => $item)

{{$arrayDisadvantage[$key]}}

@endforeach @endif
@endif
{{__('Text')}}:

{{$data['Comment']->text}}

@endsection