Commit 4ba6510d by Francisco Salazar

detalles de session

parent 7ed7876b
......@@ -35,8 +35,9 @@ class AdminCrmController extends Controller
public function show($id)
{
$interested = Interested::find($id);
$interested_detail = $interested->interested_detail;
return view('crm::show')
->with('interested_detail', $interested_detail)
->with('interested', $interested);
}
......
......@@ -243,8 +243,7 @@
</ul>
</li>
@endif
<li>
<li class="{{Request::is('admin/user/*') || Request::is('admin/user') ? 'active' : ''}}">
<a>
<span class="nav-caret">
<i class="fa fa-caret-down"></i>
......
......@@ -15,7 +15,7 @@
@section('content')
<div class='padding'>
<div class='row'>
<div class='col-md-10 offset-1'>
<div class='{{$interested_detail == null ? "col-md-12" : "col-md-6"}}'>
<div class='box'>
<div class='box-header dark'>
<h3>Detalle del registro</h3>
......@@ -52,8 +52,29 @@
</div>
</div>
</div>
@if($interested_detail!=null)
<div class='col-md-6'>
<div class='box'>
<div class='box-header dark'>
<h3>Detalle de session</h3>
</div>
<div class='box-body'>
<p> Plataforma: <b>{{$interested_detail->platform." ".$interested_detail->platform_version}}</b></p>
<p> Navegador:
<b>
{{$interested_detail->browser." ". $interested_detail->browser_version}}
</b>
</p>
<p> Dispositivo: <b>{{$interested_detail->devise}}</b></p>
<p> Tipo de dispositivo: <b>{{$interested_detail->devise_type}}</b></p>
<p> Tiempo de la sesión: <b>{{$interested_detail->session_time}} segundos</b></p>
</div>
</div>
</div>
@endif
</div>
<div class="row">
<div class="col-md-10 offset-1">
<div class="box">
......
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