@extends('layout.app') @section('content')
Every change to properties, rates, inventory, bookings, payments, refunds, staff and settlements, with who made it and when.
| When | Who | Action | Record | Details | IP |
|---|---|---|---|---|---|
| {{ $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. | |||||