Added better Logs
This commit is contained in:
parent
20e14bb3e7
commit
2d21d2d2ca
|
@ -71,7 +71,10 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($logs as $log)
|
@foreach($logs as $log)
|
||||||
<tr>
|
<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>
|
<td>
|
||||||
<span>
|
<span>
|
||||||
@switch($log->description)
|
@switch($log->description)
|
||||||
|
@ -90,6 +93,18 @@
|
||||||
@endswitch
|
@endswitch
|
||||||
{{ucfirst($log->description)}}
|
{{ucfirst($log->description)}}
|
||||||
{{ explode("\\" , $log->subject_type)[2]}}
|
{{ 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>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue