From 7834ed84b0f2d41c50c9d5742b8939ced1c60c56 Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 8 Feb 2026 08:40:36 +0100 Subject: [PATCH] messages --- app/Livewire/UserNotifications.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Livewire/UserNotifications.php b/app/Livewire/UserNotifications.php index dafd74e1..16299e92 100644 --- a/app/Livewire/UserNotifications.php +++ b/app/Livewire/UserNotifications.php @@ -8,7 +8,6 @@ use Filament\Actions\Concerns\InteractsWithActions; use Filament\Actions\Contracts\HasActions; use Filament\Forms\Components\Select; use Filament\Forms\Components\Textarea; -use Filament\Forms\Components\TextInput; use Filament\Forms\Components\Toggle; use Filament\Notifications\Notification; use Filament\Schemas\Concerns\InteractsWithSchemas; @@ -42,9 +41,8 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has ->required() ->options(fn () => User::query()->where('client_id', auth()->user()->client_id)->orwhereIn('id', [1, 2])->pluck('name', 'id')), Toggle::make('notify_by_email')->label('Send also as E-Mail'), - TextInput::make('subject') + Textarea::make('message')->rows(4) ->required(), - Textarea::make('message')->rows(4), ]) ->statePath('data'); } @@ -60,9 +58,9 @@ class UserNotifications extends Component implements HasActions, HasSchemas, Has Mail::to($recipient)->send(new UserNotification($data['subject'], $data['message'])); } Notification::make() - ->title($data['subject']) + ->title($data['message']) ->icon('phosphor-user-duotone') - ->body('from: '.auth()->user()->name.'
'.$data['message']) + ->body('from: '.auth()->user()->name) ->sendToDatabase($recipient); Notification::make()