@extends('layout.app') @section('content')

Audit log

Every change to properties, rates, inventory, bookings, payments, refunds, staff and settlements, with who made it and when.

@forelse($logs as $log) @empty @endforelse
WhenWhoActionRecordDetailsIP
{{ $log->created_at?->timezone(config('bedspace.timezone'))->format('Y-m-d H:i:s') }} {{ $log->user?->name ?? 'Guest / system' }} {{ $log->action }} {{ $log->subject_type }}{{ $log->subject_id ? ' #'.$log->subject_id : '' }} @if($log->description)
{{ $log->description }}
@endif @if($log->changes) @foreach(collect($log->changes)->take(12) as $field => $change) {{ $field }}: {{ is_scalar($change['from'] ?? null) ? \Illuminate\Support\Str::limit((string) $change['from'], 40) : '–' }} → {{ is_scalar($change['to'] ?? null) ? \Illuminate\Support\Str::limit((string) $change['to'], 40) : json_encode($change['to'] ?? null) }} @endforeach @endif
{{ $log->ip_address }}
No entries.
{{ $logs->links() }}
@stop