@extends('layouts.app') @section('page-title') {{ __('Logged History') }} @endsection @section('breadcrumb') @endsection @section('content')
{{ __('Logged History List') }}
@foreach ($histories as $history) @php $historydetail = json_decode($history->details); @endphp @endforeach
{{ __('User') }} {{ __('Email') }} {{ __('Login Date') }} {{ __('System IP') }} {{ __('City') }} {{ __('State') }} {{ __('Country') }} {{ __('System') }} {{ __('Action') }}
{{ !empty($history->user) ? $history->user->name : '-' }} {{ !empty($history->user) ? $history->user->email : '-' }} {{ !empty($history->date) ? dateFormat($history->date) : '-' }} {{ $history->ip }} {{ !empty($historydetail) ? $historydetail->city : '-' }} {{ !empty($historydetail) ? $historydetail->regionName : '-' }} {{ !empty($historydetail) ? $historydetail->country : '-' }} {{ !empty($historydetail) ? $historydetail->os : '-' }}
{!! Form::open(['method' => 'DELETE', 'route' => ['logged.history.destroy', encrypt($history->id)]]) !!} {!! Form::close() !!}
@endsection