@section('title') | {{ __('app.people_logbook') }} @endsection
{{-- card header --}}
{{ __('app.people_logbook') }} @if ($this->activities->count() > 0) @endif
{{-- card body --}}
{{-- Filter Section --}}
{{-- Subject Type Filter (Left) --}}
{{-- Per Page Selector (Right) --}}
@if ($this->activities->count() > 0) {{-- Pagination controls at top --}}
{{ $this->activities->links() }}
@foreach ($this->activities as $log)
@if (($log['subject_type'] === 'Person' or $log['subject_type'] === 'PersonMetadata') and $log['event'] != 'DELETED') {{ $log['description'] }} : {{ __('person.person') }} @else {{ $log['description'] }} @endif
{{-- old values --}} @php $headers = [['index' => 'key', 'label' => 'Key'], ['index' => 'value', 'label' => __('app.old')]]; $rows = collect($log['properties_old']) ->map(function ($value, $key) { return [ 'key' => $key, 'value' => $value, ]; }) ->toArray(); @endphp {{-- new values --}} @php $headers = [['index' => 'key', 'label' => 'Key'], ['index' => 'value', 'label' => __('app.new')]]; $rows = collect($log['properties_new']) ->map(function ($value, $key) { return [ 'key' => $key, 'value' => $value, ]; }) ->toArray(); @endphp
{{ $log['event'] }} {{ $log['updated_at'] }} @if ($log['causer']) by {{ $log['causer'] }} @endif
@endforeach
{{-- Pagination controls at bottom --}}
{{ $this->activities->links() }}
@else
@endif