@extends('layouts.master2') @section('title', trans('sessions.sessions_index_blade.session_management_title')) @section('page_styles') @endsection @section('content') @if (Session::has('msg')) @endif @if (Session::has('error-msg'))
{{ Session::get('error-msg') }}
@endif
@php($i = 1) @if(isset($sessions[$current_sid])) @php($currentSession = $sessions[$current_sid]) @endif @foreach($sessions as $key => $session) @if(!file_exists($sessionPath.$key.'.json')) @continue @endif @php($en_key= \Illuminate\Support\Facades\Crypt::encrypt($key)) @if($current_sid==$key) @continue @endif @php($i++) @endforeach
# {{trans('sessions.index.th.device')}} {{trans('sessions.index.th.ip')}} {{trans('sessions.index.th.browser')}} {{trans('sessions.index.th.location')}} {{trans('sessions.index.th.logged_in')}} {{trans('sessions.index.th.action')}}
{{$i}} {{$currentSession['os']}} {{trans('sessions.index.csid')}} {{$currentSession['ip']}} {{$currentSession['browser']}} {{isset($currentSession['geoInfo']) ? $currentSession['geoInfo'] : 'N/A'}} {{!isset($currentSession['first_login'])?'N/A':showFormattedTime($authUser->id,'M d, Y h:i:s A',$currentSession['first_login'])}}
{{$i}} {{$currentSession['os']}} {{$session['ip']}} {{$session['browser']}} {{isset($session['geoInfo']) ? $session['geoInfo'] : 'N/A'}} {{!isset($session['first_login'])?'N/A':showFormattedTime($authUser->id,'M d, Y h:i:s A',$session['first_login'])}}
@endsection @section('page_scripts') @endsection