@extends('layouts.app') @section('title') {{ $pageInfo['title'] }} @endsection @section('admin-content')

{{ $pageInfo['title'] }}

@include('backend.layouts.partials.messages')
@foreach ($data as $item) @endforeach
{{ __('User') }} {{ __('Ip Address') }} {{ __('Action') }} {{ __('Activity') }} Browser User Agent Tanggal Waktu
{{ $item->user ? $item->user->username : preg_replace('/\).*$/', '', explode('(', $item->activity)[1]) }} {{ $item->ip_address }} @php $color = 'info'; if ($item->action == 'Create') { $color = 'success'; } elseif ($item->action == 'Update') { $color = 'warning'; } elseif ($item->action == 'Delete' || $item->action == 'Error') { $color = 'danger'; } @endphp
{{ $item->action }}
{{ $item->activity }} {{ $item->browser }} {{ $item->user_agent }} {{ $item->created_at }} {{ $item->created_at->diffForHumans() }}
@endsection @section('scripts') @endsection