@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.activity_report') }} @parent @stop {{-- Page content --}} @section('content')
{{ trans('general.admin') }} | {{ trans('general.action') }} | {{ trans('general.type') }} | {{ trans('general.item') }} | {{ trans('general.user') }} | {{ trans('general.date') }} |
---|---|---|---|---|---|
@if($log_action->user) {{ $log_action->user->fullName() }} @endif | {{ $log_action->action_type }} | {{ title_case($log_action->itemType()) }} | @if ($item = $log_action->item) @if ($log_action->itemType()=="asset") {{ $item->showAssetName() }} @else {{ $item->name }} @endif @else {{ trans('general.bad_data') }} @endif | @if ($log_action->target) @if ($log_action->target instanceof \App\Models\User) {{ $log_action->target->fullName() }} @elseif ($log_action->target instanceof \App\Models\Asset) {{ $log_action->target->showAssetName() }} @endif @endif | {{ $log_action->created_at }} |