信件內容及網頁內容更新

This commit is contained in:
ericli1018
2025-06-26 19:20:25 +08:00
parent 6a4eec7fb4
commit ce4c781d02
16 changed files with 188 additions and 110 deletions

View File

@ -317,41 +317,49 @@ class EventHealthAllowanceCrudController extends CrudController
switch($entry->check_state) {
case '2': //過通
try {
Mail::to($entry->email)->send(new EventNotifyMail([
"title" => "轉代謝新人生 皮蛇疫苗加碼補 審核通過",
"body" => "恭喜您審核通過!"
."\n\n登記資料:"
."\n流水號: C-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
Mail::to($entry->email)->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「翻轉代謝新人生皮蛇疫苗加碼補審核通過信件。',
[
"title" => "翻轉代謝新人生,皮蛇疫苗加碼補 審核通過!",
"body" => "一、登記資料:"
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$entry->hospital_name
."\n姓名:".$entry->name
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
."\n行動電話:".$entry->phone
."\n電子信箱:".$entry->email
."\n收件地址:".$entry->address
."\n\n補助方式將後續通知。"
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
."\n電話號碼".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
."\n\n二、補助通知:"
."\n感謝您參與「114年桃園市健康管理計畫翻轉代謝新人生 皮蛇疫苗加碼補」。"
."\n請至本局指定醫療院所完成疫苗接種,並備妥以下資料申請經費補助:"
."\n1.活動審核通過通知信"
."\n2.帶狀皰疹疫苗接種收據或紀錄"
."\n3.本人帳戶影本如非臺灣銀行帳戶將扣除30元匯費"
."\n4.切結書"
."\n\n三、為確保資源分配公平,提醒您「翻轉代謝新人生 皮蛇疫苗加碼補」活動與「114年桃園市帶狀疱疹疫苗接種補助計畫」不可重複申請應擇一參加。如經查證您已參加「114年桃園市帶狀疱疹疫苗接種補助計畫」本活動所接受之經費補助將不予補助並需退還已補助之費用5,000元。"
."\n\n四、備妥以上資料於114年12月5日前以掛號方式寄至桃園市政府衛生局健康促進科桃園市桃園區縣府路55號信封註明114年桃園市健康管理計畫帶狀疱疹疫苗補助。"
."\n\n敬請配合,以利後續作業。"
,
]));
]));
} catch (Exception $ex) {
}
break;
case '3': //未通過
try {
Mail::to($entry->email)->send(new EventNotifyMail([
"title" => "轉代謝新人生 皮蛇疫苗加碼補 未通過審核!",
"body" => "抱歉,您的審核未通過!"
."\n請依以下理由重新上活動網站登記"
Mail::to($entry->email)->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「翻轉代謝新人生皮蛇疫苗加碼補」審核未通過信件。',
[
"title" => "翻轉代謝新人生,皮蛇疫苗加碼補 審核未通過!",
"body" => "抱歉,您的審核未通過!請依以下理由重新上活動網站登記。"
."\n理由:".$entry->check_reson
."\n\n登記資料:"
."\n流水號: C-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$entry->hospital_name
."\n姓名:".$entry->name
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
."\n行動電話:".$entry->phone
."\n電子信箱:".$entry->email
."\n收件地址:".$entry->address
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
."\n電話號碼".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
,
]));
]));
} catch (Exception $ex) {
}

View File

@ -346,44 +346,42 @@ class EventImprovedHealthCrudController extends CrudController
switch($entry->check_state) {
case '2': //過通
try {
Mail::to($entry->email)->send(new EventNotifyMail([
"title" => "健康達標GO 大獎汽車不是夢 審核通過",
"body" => "恭喜您審核通過!"
."\n\n登記資料:"
."\n流水號: B-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n疾病類別:".$diseaseTypes[$entry->disease_type]
Mail::to($entry->email)->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「健康達標GO大獎汽車不是夢審核通過信件。',
[
"title" => "健康達標GO大獎汽車不是夢 審核通過!",
"body" => "登記資料:"
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$entry->hospital_name
."\n姓名:".$entry->name
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
."\n行動電話:".$entry->phone
."\n電子信箱:".$entry->email
."\n收件地址:".$entry->address
."\n抽獎說明本活動將於10月抽出得獎名單並公告於「<a href=\"". route('news') ."\" target=\"_blank\">活動網站/最新消息</a>」及「<a href=\"https://dph.tycg.gov.tw/News.aspx?n=4219&sms=10121\" target=\"_blank\">桃園市政府衛生局網站/訊息公告/最新消息</a>」。"
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
."\n電話號碼".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
."\n\n抽獎說明:"
."\n本活動將於10月抽出得獎名單並公告於「<a href=\"". route('news') ."\" target=\"_blank\">活動網站/最新消息</a>」及「<a href=\"https://dph.tycg.gov.tw/News.aspx?n=4219&sms=10121\" target=\"_blank\">桃園市政府衛生局網站/訊息公告/最新消息</a>」。"
,
]));
]));
} catch (Exception $ex) {
}
break;
case '3': //未通過
try {
Mail::to($entry->email)->send(new EventNotifyMail([
"title" => "健康達標GO 大獎汽車不是夢 審核未通過",
"body" => "抱歉,您的審核未通過!"
."\n請依以下理由重新上活動網站登記"
Mail::to($entry->email)->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「健康達標GO大獎汽車不是夢審核未通過信件。',
[
"title" => "健康達標GO大獎汽車不是夢 審核未通過!",
"body" => "抱歉,您的審核未通過!請依以下理由重新上活動網站登記。"
."\n理由:".$entry->check_reson
."\n\n登記資料:"
."\n流水號: B-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n疾病類別:".$diseaseTypes[$entry->disease_type]
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$entry->hospital_name
."\n姓名:".$entry->name
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
."\n行動電話:".$entry->phone
."\n電子信箱:".$entry->email
."\n收件地址:".$entry->address
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
."\n電話號碼".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
,
]));
]));
} catch (Exception $ex) {
}

View File

@ -289,42 +289,43 @@ class EventMetabolismCrudController extends CrudController
switch($entry->check_state) {
case '2': //過通
try {
Mail::to($entry->email)->send(new EventNotifyMail([
"title" => "符合代謝新收案 早鳥報名最划算 審核通過",
"body" => "恭喜您審核通過!"
."\n\n登記資料:"
Mail::to($entry->email)->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「符合代謝新收案早鳥報名最划算審核通過信件。',
[
"title" => "符合代謝新收案,早鳥報名最划算 審核通過!",
"body" => "登記資料:"
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$entry->hospital_name
."\n姓名:".$entry->name
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
."\n行動電話:".$entry->phone
."\n電子信箱:".$entry->email
."\n收件地址:".$entry->address
."\n\n禮券發送方式說明凡報名經審核通過者我們將於3個工作天內將 7-ELEVEN 電子禮券序號寄送至您報名時所填寫的電子信箱,敬請留意收信。"
."\n抽獎說明:本活動將於10月抽出得獎名單並公告於「<a href=\"". route('news') ."\" target=\"_blank\">活動網站/最新消息</a>」及「<a href=\"https://dph.tycg.gov.tw/News.aspx?n=4219&sms=10121\" target=\"_blank\">桃園市政府衛生局網站/訊息公告/最新消息</a>」。"
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
."\n電話號碼".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
."\n\n禮券發送方式說明:"
."\n凡報名經審核通過者我們將於3個工作天內將7-ELEVEN電子禮券序號寄送至您報名時所填寫的電子信箱敬請留意收信。"
."\n抽獎說明:"
."\n本活動將於10月抽出得獎名單並公告於「<a href=\"". route('news') ."\" target=\"_blank\">活動網站/最新消息</a>」及「<a href=\"https://dph.tycg.gov.tw/News.aspx?n=4219&sms=10121\" target=\"_blank\">桃園市政府衛生局網站/訊息公告/最新消息</a>」。"
,
]));
]));
} catch (Exception $ex) {
}
break;
case '3': //未通過
try {
Mail::to($entry->email)->send(new EventNotifyMail([
"title" => "符合代謝新收案 早鳥報名最划算 審核未通過",
"body" => "抱歉,您的審核未通過!"
."\n請依以下理由重新上活動網站登記"
Mail::to($entry->email)->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「符合代謝新收案早鳥報名最划算審核未通過信件。',
[
"title" => "符合代謝新收案,早鳥報名最划算 審核未通過!",
"body" => "抱歉,您的審核未通過!請依以下理由重新上活動網站登記。"
."\n理由:".$entry->check_reson
."\n\n登記資料:"
."\n流水號: A-".str_pad($entry->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$entry->hospital_name
."\n姓名:".$entry->name
."\n身份證字號:".substr($entry->twid,0,2)."xxxx".substr($entry->twid,-4)
."\n行動電話:".$entry->phone
."\n電子信箱:".$entry->email
."\n收件地址:".$entry->address
."\n姓名:".(mb_strlen($entry->name) > 2 ? mb_substr($entry->name,0,1)."*".mb_substr($entry->name,-1) : mb_substr($entry->name,0,1)."*")
."\n身份證字號:".substr($entry->twid,0,2)."****".substr($entry->twid,-4)
."\n電話號碼".substr($entry->phone,0,2)."****".substr($entry->phone,-4)
,
]));
]));
} catch (Exception $ex) {
}

View File

@ -358,18 +358,20 @@ class HealthAllowanceFillFormController extends Controller
DB::commit();
try {
Mail::to($request->input('email'))->send(new EventNotifyMail([
"title" => "轉代謝新人生 皮蛇疫苗加碼補 登記成功",
"body" => "登記資料:"
."\n流水號: C-".str_pad($eventItem->id, 6, '0', STR_PAD_LEFT)
Mail::to($request->input('email'))->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「翻轉代謝新人生皮蛇疫苗加碼補登記成功信件',
[
"title" => "翻轉代謝新人生,皮蛇疫苗加碼補 登記成功!",
"body" => "我們將於3個工作天內進行審核您的資料並通知您審核結果敬請留意收信。"
."\n\n登記資料:"
."\n流水號: A-".str_pad($eventItem->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$request->input('hospital_name')
."\n姓名:".$request->input('name')
."\n身份證字號:".substr($request->input('twid'),0,2)."xxxx".substr($request->input('twid'),-4)
."\n行動電話:".$request->input('phone')
."\n電子信箱:".$request->input('email')
."\n收件地址:".$request->input('address')
."\n姓名:".(mb_strlen($request->input('name')) > 2 ? mb_substr($request->input('name'),0,1)."*".mb_substr($request->input('name'),-1) : mb_substr($request->input('name'),0,1)."*")
."\n身份證字號:".substr($request->input('twid'),0,2)."****".substr($request->input('twid'),-4)
."\n電話號碼".substr($request->input('phone'),0,2)."****".substr($request->input('phone'),-4)
,
]));
]));
} catch (Exception $ex) {
}

View File

@ -347,18 +347,20 @@ class ImprovedHealthFillFormController extends Controller
DB::commit();
try {
Mail::to($request->input('email'))->send(new EventNotifyMail([
"title" => "健康達標GO 大獎汽車不是夢 登記成功!",
"body" => "登記資料:"
."\n流水號: B-".str_pad($eventItem->id, 6, '0', STR_PAD_LEFT)
Mail::to($request->input('email'))->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「健康達標GO大獎汽車不是夢」登記成功信件',
[
"title" => "健康達標GO大獎汽車不是夢 登記成功!",
"body" => "我們將於3個工作天內進行審核您的資料並通知您審核結果敬請留意收信。"
."\n\n登記資料:"
."\n流水號: A-".str_pad($eventItem->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$request->input('hospital_name')
."\n姓名:".$request->input('name')
."\n身份證字號:".substr($request->input('twid'),0,2)."xxxx".substr($request->input('twid'),-4)
."\n行動電話:".$request->input('phone')
."\n電子信箱:".$request->input('email')
."\n收件地址:".$request->input('address')
."\n姓名:".(mb_strlen($request->input('name')) > 2 ? mb_substr($request->input('name'),0,1)."*".mb_substr($request->input('name'),-1) : mb_substr($request->input('name'),0,1)."*")
."\n身份證字號:".substr($request->input('twid'),0,2)."****".substr($request->input('twid'),-4)
."\n電話號碼".substr($request->input('phone'),0,2)."****".substr($request->input('phone'),-4)
,
]));
]));
} catch (Exception $ex) {
}

View File

@ -274,18 +274,19 @@ class MetabolismFillFormController extends Controller
DB::commit();
try {
Mail::to($request->input('email'))->send(new EventNotifyMail([
"title" => "符合代謝新收案 早鳥報名最划算 登記成功",
"body" => "登記資料:"
Mail::to($request->input('email'))->send(new EventNotifyMail(
'桃園市政府衛生局114年桃園市健康管理計畫「符合代謝新收案早鳥報名最划算登記成功信件',
[
"title" => "符合代謝新收案,早鳥報名最划算 登記成功!",
"body" => "我們將於3個工作天內進行審核您的資料並通知您審核結果敬請留意收信。"
."\n\n登記資料:"
."\n流水號: A-".str_pad($eventItem->id, 6, '0', STR_PAD_LEFT)
."\n就醫院所:".$request->input('hospital_name')
."\n姓名:".$request->input('name')
."\n身份證字號:".substr($request->input('twid'),0,2)."xxxx".substr($request->input('twid'),-4)
."\n行動電話:".$request->input('phone')
."\n電子信箱:".$request->input('email')
."\n收件地址:".$request->input('address')
."\n姓名:".(mb_strlen($request->input('name')) > 2 ? mb_substr($request->input('name'),0,1)."*".mb_substr($request->input('name'),-1) : mb_substr($request->input('name'),0,1)."*")
."\n身份證字號:".substr($request->input('twid'),0,2)."****".substr($request->input('twid'),-4)
."\n電話號碼".substr($request->input('phone'),0,2)."****".substr($request->input('phone'),-4)
,
]));
]));
} catch (Exception $ex) {
}

View File

@ -13,14 +13,16 @@ class EventNotifyMail extends Mailable
{
use Queueable, SerializesModels;
public $subject;
public $data;
/**
* Create a new message instance.
*/
public function __construct($data)
public function __construct($subject, $data)
{
//
$this->subject = $subject;
$this->data = $data;
}
@ -30,7 +32,7 @@ class EventNotifyMail extends Mailable
public function envelope(): Envelope
{
return new Envelope(
subject: '桃園市政府衛生局 114年慢性病防治管理暨多元行銷宣導',
subject: $this->subject,
);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 KiB

After

Width:  |  Height:  |  Size: 377 KiB

View File

@ -573,4 +573,18 @@ body {
.anchor-point {
text-decoration: none;
color: unset;
}
.main-area .inner-table,
.main-area .inner-table th,
.main-area .inner-table tr,
.main-area .inner-table td {
border: solid 1px gray;
padding: 0.4em;
font-size: unset;
}
.main-area .inner-table td p {
font-size: unset;
margin: 0;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -11,7 +11,8 @@
</pre>
<p>&nbsp;</p>
<p>活動網站網址:<a href="https://health.goodcake.tw/" target="_blank">https://health.goodcake.tw/</a></p>
<p>客服電話:(02) 2297-0109 / 客服信箱info@shibasays.com</p>
<p>客服電話:(02)2297-0109</p>
<p>客服信箱:<a href="mailto:info@shibasays.com">info@shibasays.com</a></p>
<p>- Ⓒ2025 桃園市政府衛生局-定期追蹤不落拍-健康管理醫起來-活動網站 -</p>
</body>
</html>

View File

@ -6,7 +6,7 @@
<div class="row justify-content-center">
<div class="col-md-8 main-area">
<h1 style="text-align: center;">
轉代謝新人生 皮蛇疫苗加碼補
轉代謝新人生 皮蛇疫苗加碼補
</h1>
</div>
</div>
@ -28,12 +28,15 @@
</li>
<li>
活動對象<br>
設籍桃園市且年滿50歲代謝症候群防治計畫個案。
設籍桃園市且50歲(含)以上代謝症候群防治計畫個案。
</li>
<li>
活動方式<br>
步驟一|至桃園市代謝症候群防治計畫診所追蹤。<br>
步驟二代謝症候群指標達標請醫師於記錄小卡「註4」處核章並取得檢查報告(<a href="{{asset('assets/doc/114health-exam-form.pdf')}}" target="_blank">格式下載</a>)<br>
達標定義<br>
1.代謝症候群者改善已非屬代謝症候群者即代謝症候群指標3項或3項以上達標<br>
2.糖尿病前期者改善已非糖尿病前期即HbA1c5.7%<br>
步驟三|資料上傳活動平台。<br>
紀錄小卡(核章)<br>
身分證正反面<br>
@ -85,6 +88,21 @@
<td>男性 > 40 mg/dL女性 > 50 mg/dL</td>
</tr>
</table>
<br>
糖尿病前期指標<br>
<table style="border: solid 1px gray; font-size:1.0em">
<tr>
<td>項目</td>
<td>&nbsp;</td>
<td>標準值</td>
</tr>
<tr style="border: solid 1px gray">
<td>糖化血色素(HbA1c)</td>
<td>&nbsp;</td>
<td>5.7%</td>
</tr>
</table>
</li>
</ol>
<p>&nbsp;</p>

View File

@ -37,6 +37,37 @@
活動方式<br>
步驟一|至桃園市醫療院所追蹤。<br>
步驟二|健康達標並請醫師於記錄小卡對應疾病處核章、並取得檢查報告(<a href="{{asset('assets/doc/114health-exam-form.pdf')}}" target="_blank">格式下載</a>)<br>
<table class="inner-table">
<tr>
<th>對象</th>
<th>達標定義</th>
</tr>
<tr>
<th>代謝症候群個案</th>
<td>
1.代謝症候群者改善已非屬代謝症候群者即代謝症候群指標3項或3項以上達標<br>
2.糖尿病前期者改善已非糖尿病前期即HbA1c5.7%
</td>
</tr>
<tr>
<th>糖尿病個案</th>
<td>
於桃園市同一院所進行2次以上照護收案、追蹤管理、年度評估且至少2次HbA1c值於80歲以下≦7%81歲以上≦8%
</td>
</tr>
<tr>
<th>初期慢性腎臟病個案</th>
<td>
於桃園市同一院所進行1次以上照護追蹤管理且判定慢性腎臟病分期較前次照護時改善或維持之個案如由stage2改善為stage1或維持在stage2者
</td>
</tr>
<tr>
<td colspan="2">
<p style="text-indent: -3em; padding-left: 3em;">備註:若為糖尿病合併初期慢性腎臟病個案,可同時進行糖尿病及初期慢性腎臟病之抽獎活動,但不可重複獲獎。</p>
</td>
</tr>
</table>
步驟三|資料上傳活動平台。<br>
  記錄小卡(核章)<br>
  身分證正反面<br>

View File

@ -126,7 +126,7 @@
</li>
<li class="nav-item nav-btn4">
<a class="nav-link" href="/health_allowance">
轉代謝新人生 皮蛇疫苗加碼補
轉代謝新人生 皮蛇疫苗加碼補
</a>
</li>
<li class="nav-item"><hr style="width:80%; margin: 0 auto;"></li>

View File

@ -16,9 +16,9 @@
<div class="col-md-8 main-area">
<h3>代謝症候群防治計畫|好禮二重送!</h3>
<p>
為鼓勵代謝症候群收案條件
(血壓偏高、血糖偏高、血脂偏高、腰圍過粗、好的膽固醇不足)
5項中符合3項且尚待收案者加入計畫進行健康管理,
為鼓勵符合代謝症候群收案條件
血壓偏高、血糖偏高、血脂偏高、腰圍過粗、好的膽固醇不足5項中符合3項或糖尿病前期
且尚待收案者加入計畫進行健康管理,
在活動期間新被收案且完成資料上傳,
即可獲得禮券並參加抽獎!
</p>
@ -30,7 +30,7 @@
</li>
<li>
活動對象<br>
設籍桃園市,並於活動期間於桃園市代謝症候群防治計畫診所新被收案之民眾。
設籍桃園市,並於活動期間於桃園市代謝症候群防治計畫診所新被收案之民眾(符合代謝症候群或糖尿病前期)
</li>
<li>
活動方式<br>