1
0
Fork 0

Add user device panel to security settings

This commit is contained in:
Daniel Supernault 2019-04-15 13:22:24 -06:00
parent 44fb6fa062
commit 6b95266fdd
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,47 @@
<div class="mb-4 pb-4">
<h4 class="font-weight-bold">Devices</h4>
<hr>
<ul class="list-group">
@foreach($devices as $device)
<li class="list-group-item">
<div class="d-flex justify-content-between align-items-center p-3">
<div>
@if($device->getUserAgent()->isMobile())
<i class="fas fa-mobile fa-5x text-muted"></i>
@else
<i class="fas fa-desktop fa-5x text-muted"></i>
@endif
</div>
<div>
<p class="mb-0 font-weight-bold">
<span class="text-muted">IP:</span>
<span class="text-truncate">{{$device->ip}}</span>
</p>
<p class="mb-0 font-weight-bold">
<span class="text-muted">Device:</span>
<span>{{$device->getUserAgent()->device()}}</span>
</p>
<p class="mb-0 font-weight-bold">
<span class="text-muted">Browser:</span>
<span>{{$device->getUserAgent()->browser()}}</span>
</p>
{{-- <p class="mb-0 font-weight-bold">
<span class="text-muted">Country:</span>
<span>Canada</span>
</p> --}}
<p class="mb-0 font-weight-bold">
<span class="text-muted">Last Login:</span>
<span>{{$device->updated_at->diffForHumans()}}</span>
</p>
</div>
<div>
<div class="btn-group">
{{-- <a class="btn btn-success font-weight-bold py-0 btn-sm" href="#">Trust</a>
<a class="btn btn-outline-secondary font-weight-bold py-0 btn-sm" href="#">Remove Device</a> --}}
</div>
</div>
</div>
</li>
@endforeach
</ul>
</div>