Commit dd18f79b by Francisco Salazar

tablas para descargar mas datos crm

parent f2f60333
...@@ -30,7 +30,7 @@ class InterestedDataTable extends DataTable ...@@ -30,7 +30,7 @@ class InterestedDataTable extends DataTable
*/ */
public function query(Interested $model) 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 ...@@ -63,7 +63,22 @@ class InterestedDataTable extends DataTable
'landing', 'landing',
'origin', 'origin',
'created_at', '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 @@ ...@@ -241,11 +241,13 @@
<span class="nav-text">Variables info adicional</span> <span class="nav-text">Variables info adicional</span>
</a> </a>
</li> </li>
<li> @if(config("shop.tags-enable"))
<a href="{{route('admin.shop.tag.index')}}" > <li>
<span class="nav-text">Tags</span> <a href="{{route('admin.shop.tag.index')}}" >
</a> <span class="nav-text">Tags</span>
</li> </a>
</li>
@endif
</ul> </ul>
</li> </li>
@endif @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