Comentarios del producto:
Producto |
Nombre |
Descripción |
Dueño |
Valor |
Stock |
{{$product->name}} |
{{$product->description}} |
{{$product->user->first_name}} {{$product->user->last_name}} |
{{$product->price}} |
{{$product->stock}} |
Comentarios:
@if($product->comments and count($product->comments) > 0)
@foreach($product->comments as $comment)
-
{{date_format(date_create($comment->created_at), 'd')}}
{{date_format(date_create($comment->created_at), 'M')}}
{{$comment->user->first_name}} {{$comment->user->last_name}}
@if(!$comment->active)
@endif{{$comment->comment}}
@if(!$comment->active) @endif
A las {{date_format(date_create($comment->created_at), 'h:m:s A')}}
@if($comment->response)
-
{{date_format(date_create($comment->updated_at), 'd')}}
{{date_format(date_create($comment->updated_at), 'M')}}
Respuesta:
@if(!$comment->active)
@endif{{$comment->response}}
@if(!$comment->active) @endif
A las {{date_format(date_create($comment->updated_at), 'h:m:s A')}}
@if($comment->active)
Desactivar
@else
Activar
@endif
@endif
@endforeach
@else
No tiene comentarios
@endif