@extends(decide_template()) @section('title', $pageTitle) @section('page_styles') @endsection @section('page_scripts') @endsection @section(decide_content()) @php($osClasses = ['iPhone' => 'os_mac','Android' =>'os_android','linux'=>'os_linux','mac' => 'os_mac','windows' => 'os_windows','Unknown' => 'Unknown','unknown' => 'unknown']) @php($osimage = ['iPhone' => 'device_mobiledevice','Android' =>'device_mobiledevice','linux'=>'device_mobiledevice','mac' => 'device_mobiledevice','windows' => 'device_personalcomputer','Unknown' => 'device_personalcomputer','unknown'=>'device_personalcomputer']) @php($browserClasses = ['unknown' => 'unknown','Unknown' => 'Unknown','Internet Explorer' => 'browser_iexplorer','Mozilla Firefox' =>'browser_firefox','Opera'=>'browser_opera','Google Chrome' => 'browser_googlechrome','Apple Safari' => 'browser_safari']) @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif @if (Session::has('msg'))
{{ Session::get('msg') }}
@endif

@lang('security.view.widget_heading.password')

@lang('security.view.widget_heading.password_description')

@lang('security.view.widget_heading.allow_ip_address')

@lang('security.view.widget_heading.allow_ip_address_description')
@if(empty($userIps))
@endif
@lang('security.view.modal.alert_message.current_ip_not_listed',['ip'=>$userip])
@lang('common.label.add')
@php($ipExists = false) @php($i = 0) @if(is_array($userIps) && !empty($userIps) ) @foreach($userIps as $ip => $info) @php($ipExists = true) @php($i++) @if($i==4) @break @endif
{{substr(isset($info['name']) ? $info['name'] : 'N/A', 0, 2)}}
{{isset($info['name']) ? $info['name'] : 'N/A'}}
{{readAbleDate(isset($info['added_on']) ? $info['added_on'] : 'N/A')}}
@endforeach @endif
{{trans('user_management.security.label.view_more')}}
@lang('security.view.button.add_ip_address')

{{trans('user_management.security.widget_heading.active_sessions')}}

{{trans('user_management.security.widget_heading.active_sessions_description')}}
{{ trans('user_management.security.modal.all_session_no_record') }}
@php($i=1) @if(isset($sessions[$current_sid])) @php($currentSession = $sessions[$current_sid]) @php($humanTime = readAbleDate($currentSession['first_login'])) @php($time = showDateTime($authUser,$currentSession['first_login']))
{{--human_readable_time,time,os,browser,location--}}
{{$currentSession['os']}} {{$humanTime}}
{{$currentSession['ip']}}
@endif
@foreach($sessions as $key => $session) @if(!$dbBaseActiveSession && !file_exists($sessionPath.$key.'.json')) @continue @endif @php($en_key= \Illuminate\Support\Facades\Crypt::encrypt($key)) @if($current_sid==$key) @continue @endif @php($i++) @if($i==4) @break @endif @php($humanTime = readAbleDate($session['first_login'])) @php($time = showDateTime($authUser,$session['first_login']))
{{$session['os']}} {{$humanTime}}
{{$session['ip']}}
@endforeach
@lang('common.label.view_more')
@php($twoFa = $authUser->twoFa) @if(routeAccess('enable2fa'))

@lang('security.view.widget_heading.two_factor_authentication')

@lang('security.view.widget_heading.two_factor_authentication_description')
@lang('security.view.two_factor_authentication.title') @lang('security.view.two_factor_authentication.description')
@lang('common.label.enable_disable')
@endif
{{-- $("#session-mini-popup #device_pic").removeClass("device_mobiledevice").addClass("device_personalcomputer"); $("#session-mini-popup .device_name").html("Computer"); $("#session-mini-popup .device_time").html(human_readable_time); $("#session-mini-popup #pop_up_time").html(time); $("#session-mini-popup #pop_up_os").html('
'+os+''); $("#session-mini-popup .pop_up_location'").html(location); $("#session-mini-popup #pop_up_browser").html--}} @endsection