diff --git a/app/Console/Commands/Services/Tasks/NotifyAlarms.php b/app/Console/Commands/Services/Tasks/NotifyAlarms.php
index 90f1e93f..e839a204 100644
--- a/app/Console/Commands/Services/Tasks/NotifyAlarms.php
+++ b/app/Console/Commands/Services/Tasks/NotifyAlarms.php
@@ -60,7 +60,7 @@ class NotifyAlarms
$send = StoreSend::store($event_id, $user_id, $bookmaker_id, $alarm_level_id, $fieldname, 'notify_by_mail');
$message = 'ALARM LEVEL '.$alarm_level_id;
- $table = [
+ $tablecontent = [
['key' => 'League', 'value' => $event->competition_group->name],
['key' => 'Event', 'value' => $event->home.' vs '.$event->away],
['key' => 'Startime', 'value' => $event->starttime],
@@ -71,7 +71,7 @@ class NotifyAlarms
];
Mail::to($user)
- ->send(new AlarmNotification($message, $table));
+ ->send(new AlarmNotification($message, $tablecontent));
}
$stored_alarms[] = $send;
diff --git a/app/Mail/AlarmNotification.php b/app/Mail/AlarmNotification.php
index a38c74fa..86a36954 100644
--- a/app/Mail/AlarmNotification.php
+++ b/app/Mail/AlarmNotification.php
@@ -14,16 +14,16 @@ class AlarmNotification extends Mailable
protected string $message;
- protected string $table;
+ protected string $tablecontent;
/**
* Create a new message instance.
*/
- public function __construct($message, $table)
+ public function __construct($message, $tablecontent)
{
$this->message = $message;
- $this->table = $table;
+ $this->tablecontent = $tablecontent;
}
/**
@@ -44,7 +44,7 @@ class AlarmNotification extends Mailable
return new Content(
markdown: 'mail.user.alarm',
with: [
- 'table' => $this->table,
+ 'tablecontent' => $this->tablecontent,
'message' => $this->message,
],
);
diff --git a/resources/views/mail/user/alarm.blade.php b/resources/views/mail/user/alarm.blade.php
index 286eba02..d4d408c8 100644
--- a/resources/views/mail/user/alarm.blade.php
+++ b/resources/views/mail/user/alarm.blade.php
@@ -4,30 +4,30 @@
{{ $message }}
-
+
-{{ $table[0]['key'] }}
-${{ $table[0]['value'] }}
+{{ $tablecontent[0]['key'] }}
+${{ $tablecontent[0]['value'] }}
-{{ $table[1]['key'] }}
-${{ $table[1]['value'] }}
+{{ $tablecontent[1]['key'] }}
+${{ $tablecontent[1]['value'] }}
-{{ $table[2]['key'] }}
-${{ $table[2]['value'] }}
+{{ $tablecontent[2]['key'] }}
+${{ $tablecontent[2]['value'] }}
-{{ $table[3]['key'] }}
-${{ $table[3]['value'] }}
+{{ $tablecontent[3]['key'] }}
+${{ $tablecontent[3]['value'] }}
-{{ $table[4]['key'] }}
-${{ $table[4]['value'] }}
+{{ $tablecontent[4]['key'] }}
+${{ $tablecontent[4]['value'] }}
-{{ $table[5]['key'] }}
-${{ $table[5]['value'] }}
+{{ $tablecontent[5]['key'] }}
+${{ $tablecontent[5]['value'] }}
-{{ $table[6]['key'] }}
-${{ $table[6]['value'] }}
+{{ $tablecontent[6]['key'] }}
+${{ $tablecontent[6]['value'] }}
-
+
Thanks,
Alarm Monitoring Team