feat: better automatic descriptions

This commit is contained in:
llama committed 2023-10-16 18:22:18 +11:00
1 parent aace075321
commit 2adff37550
7 files changed
+49 -11

No files matched your search

@@ -71,14 +71,7 @@ new #[Layout('layouts.app')] class extends Component
{{ \Illuminate\Support\Str::headline($log->event) }}
</td>
<td class="relative py-4 pr-3 text-sm sm:pl-6 border-t text-nexi-black dark:text-gray-200">
@switch($log->subject_type)
@case(Quote::class)
@case(RequestedQuote::class)
{{ $log?->subject?->quote }}
@break
@default
{{ $log->description }}
@endswitch
{{ $log->description }}
</td>
<td class="relative py-4 pr-3 text-sm sm:pl-6 border-t text-nexi-black dark:text-gray-200">
{{ $log->getExtraProperty('ip') }}
@@ -44,7 +44,7 @@ new #[Layout('layouts.guest')] class extends Component
activity()
->performedOn(auth()->user())
->event('access')
->log('login');
->log('User logged in');
$this->redirect(
session('url.intended', RouteServiceProvider::HOME),
@@ -63,7 +63,7 @@ new #[Layout('layouts.guest')] class extends Component
activity()
->event('updated')
->log('password reset');
->log('Password reset');
session()->flash('status', __($status));
@@ -35,7 +35,7 @@ new class extends Component
activity()
->event('updated')
->log('password updated');
->log('Password updated');
$this->reset('current_password', 'password', 'password_confirmation');