@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
{{ $item->user ? $item->user->name : 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') { $color = 'danger'; } @endphp
{{ $item->action }}
{{ $item->activity }} {{ $item->browser }} {{ $item->user_agent }}
@endsection @section('scripts') @endsection