From 82dcda6da8fb34381400ca01f1b1f639fd75aed6 Mon Sep 17 00:00:00 2001 From: salam Date: Fri, 6 Feb 2026 16:26:17 +0100 Subject: [PATCH] wip --- .../Commands/Services/Tasks/NotifyAlarms.php | 2 + resources/views/mail/user/alarm.blade.php | 46 ++++++++++--------- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/app/Console/Commands/Services/Tasks/NotifyAlarms.php b/app/Console/Commands/Services/Tasks/NotifyAlarms.php index 207531c0..0bef1176 100644 --- a/app/Console/Commands/Services/Tasks/NotifyAlarms.php +++ b/app/Console/Commands/Services/Tasks/NotifyAlarms.php @@ -57,6 +57,7 @@ class NotifyAlarms $send = CheckSend::check($event_id, $user_id, $bookmaker_id, $alarm_level_id, $fieldname, 'notify_by_email'); if (! $send) { + $send = StoreSend::store($event_id, $user_id, $bookmaker_id, $alarm_level_id, $fieldname, 'notify_by_mail'); switch ($alarm_level_id) { @@ -78,6 +79,7 @@ class NotifyAlarms ['key' => 'Bettype', 'value' => $bet['bettype']], ['key' => 'Odd Name', 'value' => strtoupper($bet['name'])], ['key' => 'Value', 'value' => $quote], + ['key' => 'Id', 'value' => $event_id], ]; Mail::to($user) diff --git a/resources/views/mail/user/alarm.blade.php b/resources/views/mail/user/alarm.blade.php index 12c54470..17416fc3 100644 --- a/resources/views/mail/user/alarm.blade.php +++ b/resources/views/mail/user/alarm.blade.php @@ -1,20 +1,16 @@ - - - @switch($alarm_level_id) @case(1) - + @break @case(2) - + @break @case(3) - + @break @endswitch @@ -22,60 +18,68 @@
NUH-Odds Alarm Monitoring -
{{ $message }}{{ $message }}{{ $message }}{{ $message }}{{ $message }}{{ $message }}
- - - - - - - - - - - - - - + + + +
+ {{ $tablecontent[0]['key'] }} + {{ $tablecontent[0]['value'] }}
+ {{ $tablecontent[1]['key'] }} + {{ $tablecontent[1]['value'] }}
+ {{ $tablecontent[2]['key'] }} + {{ $tablecontent[2]['value'] }}
+ {{ $tablecontent[3]['key'] }} + {{ $tablecontent[3]['value'] }}
+ {{ $tablecontent[4]['key'] }} + {{ $tablecontent[4]['value'] }}
+ {{ $tablecontent[5]['key'] }} + {{ $tablecontent[5]['value'] }}
+ {{ $tablecontent[6]['key'] }} + {{ $tablecontent[6]['value'] }}
+ {{ $tablecontent[7]['key'] }} + + {{ $tablecontent[7]['value'] }} +
\ No newline at end of file