JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage User Logs History') }} @endsection @section('breadcrumb') @endsection @section('content')
{{ Form::open(['route' => ['lastlogin'], 'method' => 'get', 'id' => 'employee_filter']) }}
{{ Form::label('month', __('Month'), ['class' => 'form-label']) }} {{ Form::month('month', isset($_GET['month']) ? $_GET['month'] : date('Y-m'), ['class' => 'month-btn form-control month-btn']) }}
{{ Form::label('employee', __('Employee'), ['class' => 'form-label']) }} {{ Form::select('employee', $usersList, isset($_GET['employee']) ? $_GET['employee'] : '', ['class' => 'form-control select ', 'id' => 'employee_id']) }}
{{ Form::close() }}
{{--
--}}
{{-- --}} @foreach ($userdetails as $user) @php $userdetail = json_decode($user->Details); @endphp @endforeach
#{{ __('Name') }} {{ __('Role') }} {{ __('Last Login') }} {{ __('Ip') }} {{ __('Country') }} {{ __('Device') }} {{ __('OS') }} {{ __('Action') }}
{{ ucfirst($user->user_name) }} {{ ucfirst($user->user_type) }} {{ !empty($user->date) ? $user->date : '-' }} {{ $user->ip }} {{ !empty($userdetail->country) ? $userdetail->country : '-' }} {{ $userdetail->device_type }} {{ $userdetail->os_name }} @can('Delete User')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['employee.logindestroy', $user->user_id], 'id' => 'delete-form-' . $user->id, ]) !!}
@endcan
@endsection