Commit dd18f79b by Francisco Salazar

tablas para descargar mas datos crm

parent f2f60333
......@@ -30,7 +30,7 @@ class InterestedDataTable extends DataTable
*/
public function query(Interested $model)
{
return $model->select(['id','name','email', 'phone','landing','origin','created_at'])->orderBy('id', 'desc');
return $model->leftJoin("interested_details", 'interesteds.id', '=', 'interested_details.interested_id')->select(['interesteds.id','interesteds.name','interesteds.email', 'interesteds.phone','interesteds.landing','interesteds.origin','interesteds.created_at','interesteds.updated_at', 'interesteds.extra1', 'interesteds.extra2', 'interesteds.extra3', 'interesteds.extra4', 'interesteds.extra5', 'interested_details.browser', 'interested_details.browser_version', 'interested_details.devise', 'interested_details.devise_type', "interested_details.platform", "interested_details.platform_version", "interested_details.session_time"])->orderBy('id', 'desc');
}
/**
......@@ -63,7 +63,22 @@ class InterestedDataTable extends DataTable
'landing',
'origin',
'created_at',
'action'
'updated_at' => ['visible' => false],
'extra1' => ['visible' => false],
'extra2' => ['visible' => false],
'extra3' => ['visible' => false],
'extra4' => ['visible' => false],
'extra5' => ['visible' => false],
'browser' => ['visible' => false],
'browser_version' => ['visible' => false],
'devise' => ['visible' => false],
'devise_type' => ['visible' => false],
'platform' => ['visible' => false],
'platform_version' => ['visible' => false],
'session_time' => ['visible' => false],
'action' => [ 'exportable' => false],
];
}
......
......@@ -241,11 +241,13 @@
<span class="nav-text">Variables info adicional</span>
</a>
</li>
@if(config("shop.tags-enable"))
<li>
<a href="{{route('admin.shop.tag.index')}}" >
<span class="nav-text">Tags</span>
</a>
</li>
@endif
</ul>
</li>
@endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment