wip
This commit is contained in:
1 parent
160a816775
commit
325e82208b
2 files changed
+19
-9
No files matched your search
@@ -59,10 +59,20 @@ class NotifyAlarms
|
||||
if (! $send) {
|
||||
$send = StoreSend::store($event_id, $user_id, $bookmaker_id, $alarm_level_id, $fieldname, 'notify_by_mail');
|
||||
|
||||
$message = 'ALARM LEVEL '.$alarm_level_id;
|
||||
switch ($alarm_level_id) {
|
||||
case 1:
|
||||
$message = '<div style="color:rgb(0, 166, 62);">ALARM LEVEL '.$alarm_level_id.'</div>';
|
||||
break;
|
||||
case 2:
|
||||
$message = '<div style="color:rgb(21, 93, 252);">ALARM LEVEL '.$alarm_level_id.'</div>';
|
||||
break;
|
||||
default:
|
||||
$message = '<div style="color:rgb(231, 0, 11)">ALARM LEVEL '.$alarm_level_id.'</div>';
|
||||
break;
|
||||
}
|
||||
$tablecontent = [
|
||||
['key' => 'League', 'value' => $event->competition_group->name],
|
||||
['key' => 'Event', 'value' => $event->home.' vs '.$event->away],
|
||||
['key' => 'Event', 'value' => $event->home->name.' vs '.$event->away->name],
|
||||
['key' => 'Startime', 'value' => $event->starttime],
|
||||
['key' => 'Bookmaker', 'value' => $bookmaker->name],
|
||||
['key' => 'Bettype', 'value' => $bet['bettype']],
|
||||
|
||||
@@ -7,25 +7,25 @@
|
||||
<x-mail::table>
|
||||
|
||||
{{ $tablecontent[0]['key'] }}
|
||||
${{ $tablecontent[0]['value'] }}
|
||||
{{ $tablecontent[0]['value'] }}
|
||||
|
||||
{{ $tablecontent[1]['key'] }}
|
||||
${{ $tablecontent[1]['value'] }}
|
||||
{{ $tablecontent[1]['value'] }}
|
||||
|
||||
{{ $tablecontent[2]['key'] }}
|
||||
${{ $tablecontent[2]['value'] }}
|
||||
{{ $tablecontent[2]['value'] }}
|
||||
|
||||
{{ $tablecontent[3]['key'] }}
|
||||
${{ $tablecontent[3]['value'] }}
|
||||
{{ $tablecontent[3]['value'] }}
|
||||
|
||||
{{ $tablecontent[4]['key'] }}
|
||||
${{ $tablecontent[4]['value'] }}
|
||||
{{ $tablecontent[4]['value'] }}
|
||||
|
||||
{{ $tablecontent[5]['key'] }}
|
||||
${{ $tablecontent[5]['value'] }}
|
||||
{{ $tablecontent[5]['value'] }}
|
||||
|
||||
{{ $tablecontent[6]['key'] }}
|
||||
${{ $tablecontent[6]['value'] }}
|
||||
{{ $tablecontent[6]['value'] }}
|
||||
|
||||
</x-mail::table>
|
||||
|
||||
|
||||
Reference in new issue
Block a user