@extends('layouts.admin') @section('content')
{{ trans('global.show') }} {{ trans('global.activityLog.title') }}
{{ trans('global.activityLog.fields.log_name') }} {{$activity_log->log_name}}
{{ trans('global.activityLog.fields.description') }} {{$activity_log->description}}
{{ trans('global.activityLog.fields.subject_type') }} @php $getRoute = getRoute($activity_log->subject_type); $route = $getRoute ? route($getRoute.'.show',$activity_log->subject_id) :''; @endphp {{$activity_log->subject_type}}
{{ trans('global.activityLog.fields.causer_type') }} @php $getRoute = getRoute($activity_log->causer_type); $route = $getRoute ? route($getRoute.'.show',$activity_log->causer_id) :''; @endphp @if($route) {{$activity_log->causer_type}} @else {{$activity_log->causer_type}} @endif
{{ trans('global.activityLog.fields.properties') }} @php $properties = json_decode($activity_log->properties) @endphp @foreach($properties as $mainKey=>$mainProperty) @endforeach
{{$mainKey}} @if(is_array($mainProperty) || is_object($mainProperty)) @include('admin.activityLogs.properties',['properties'=>$mainProperty]) @else {{$mainProperty}} @endif
{{ trans('global.back_to_list') }}
@endsection