'.$data->plan->title.'
'.round($data->profit_amount,2).' / '.$data->plan->schedule->name.'
';
})
->editColumn('amount', function(Invest $data){
$curr = Currency::where('is_default','=',1)->first();
$amount = $curr->value * $data->amount;
return '
'.ucfirst($data->method).'
';
})
->editColumn('status', function(Invest $data) {
if($data->status == 0){
$status = "Pending";
$status_sign = $data->status == 0 ? 'warning' : '';
}elseif($data->status == 1){
$status = "Running";
$status_sign = $data->status == 1 ? 'info' : '';
}else{
$status = "Completed";
$status_sign = $data->status == 2 ? 'success' : '';
}
return '