Added better Logs
This commit is contained in:
parent
20e14bb3e7
commit
2d21d2d2ca
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue