@extends('layouts.admin') @section('title') {{ __('User Logs') }} @endsection @section('action-button') {{ Form::open(['route' => ['logindetails.index'], 'method' => 'get', 'id' => 'userlogs_filter']) }}
{{Form::month('month',isset($_GET['month'])?$_GET['month']: '',array('class'=>'form-control'))}}
{{ Form::select('user', $usersList, isset($_GET['user']) ? $_GET['user'] : '', ['class' => 'form-control select ', 'id' => 'id']) }}
{{ __('Apply') }} {{ __('Reset')}}
{{ Form::close() }} @endsection @section('content')
@foreach ($logindetails as $logindetail) @php $details = json_decode($logindetail->details); @endphp @endforeach
{{ __('Name')}} {{ __('Role')}} {{ __('IP')}} {{ __('Last Login At')}} {{ __('Device Type')}} {{ __('Os Name')}} {{ __('Action')}}
@php $user = $logindetail->Getuser(); $name = !empty($user) ? $user->name : ''; @endphp

{{ $name }}

{{ $logindetail->type }} {{ $logindetail->ip }} {{ $logindetail->date }} {{ $details->device_type }} {{ $details->os_name }} {!! Form::open(['method' => 'DELETE', 'route' => ['logindetails.destroy', $logindetail->id], 'id' => 'delete-logindetails-' . $logindetail->id]) !!} {!! Form::close() !!}
@endsection