Added better Logs

This commit is contained in:
Dennis 2021-09-27 15:32:27 +02:00 committed by GitHub
parent 20e14bb3e7
commit 2d21d2d2ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,10 @@
<tbody>
@foreach($logs as $log)
<tr>
<td>{{$log->causer ? json_decode($log->causer)->name : 'system'}}</td>
<td> @if($log->causer) <a href='/admin/users/{{$log->causer_id}}'> {{json_decode($log->causer)->name}}
@else
System
@endif</td>
<td>
<span>
@switch($log->description)
@ -90,6 +93,18 @@
@endswitch
{{ucfirst($log->description)}}
{{ explode("\\" , $log->subject_type)[2]}}
@php $first=true @endphp
@foreach(json_decode($log->properties, true) as $properties)
@if($first)
@if(isset($properties['name']))
" {{$properties['name']}} "
@endif
@if(isset($properties['email']))
< {{$properties['email']}} >
@endif
@php $first=false @endphp
@endif
@endforeach
</span>
</td>