• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 195

Backtrace:

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/views/question.php
Line: 195
Function: _error_handler

File: /home/u125378470/domains/lawhelpguru.org/public_html/application/controllers/Questions.php
Line: 416
Function: view

File: /home/u125378470/domains/lawhelpguru.org/public_html/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

how to put laravel echo function in javascript

How to use echo in strings in javascript datatable

className:'text-center', 
data:'stage', 
name:'stage',
render: function(data)
{
    return '{{trans('stage.'' + data.stage + ')}}';
}

error: syntax error, unexpected ''+ data.stage +'' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')'

I have tried escaping using backlash it still doesnt look right.

class="text-center">{{trans('stage.'.$sub->stage)}} 
//this is what i want to display if i were to use laravel blade