@foreach($comments as $comment)
  • @if($comment->order_id != null)
    خریدار این محصول
      @php($color = $comment->order->items->where('product_id',$comment->product->id)->first()->color) @if($color->show != 0)
    • رنگ خریداری شده:
      {{$color->name}}
    • @endif
    • خریداری شده از:
      {{$comment->order->items->where('product_id',$comment->product->id)->first()->seller['name']}}
    @if($comment->suggested == 1)
    خرید این محصول را توصیه می‌کنم
    @endif
    @endif
    order_id != null) class="col-md-9 col-sm-12 comment-content" @else class="col-md-12 col-sm-12 comment-content" @endif>
    {{$comment->title}}
    توسط {{\App\Comment::getUser($comment->user_id)}} در تاریخ {{\Morilog\Jalali\Jalalian::forge("{$comment->date}")->format('%d %B %y')}}
    @if($comment->advantages != null || $comment->disadvantages != null)
    @if($comment->advantages != null)
    نقاط قوت
      @foreach(explode(',',$comment->advantages) as $advantages)
    • {{$advantages}}
    • @endforeach
    @endif @if($comment->disadvantages != null)
    نقاط ضعف
      @foreach(explode(',',$comment->disadvantages) as $disadvantages)
    • {{$disadvantages}}
    • @endforeach
    @endif
    @endif

    {!! $comment->body !!}

  • @endforeach {!! $comments->links('vendor.pagination.shop') !!}