diff --git a/app/Helpers/sendMailNotification.php b/app/Helpers/sendMailNotification.php index 0865865a..5779135f 100755 --- a/app/Helpers/sendMailNotification.php +++ b/app/Helpers/sendMailNotification.php @@ -189,64 +189,66 @@ class sendMailNotification foreach ($array_list as $item) { if (count($item) != 0) { - $table_content .= '
| Name | '; $table_content .= 'Relation | '; $table_content .= 'Date Of Birth | '; $table_content .= 'Sum Insured | '; - - //Only Display SI Topup and Dependent Addon + + // Only Display SI Topup and Dependent Addon if ($is_addon == 2 || $is_addon == 3) { $table_content .= 'Premium | '; $table_content .= 'GST | '; } - + $table_content .= '
|---|
| Policy Name | Additional Premium | GST | Total |
|---|
| Policy Name | '; + $table_content .= 'Additional Premium | '; + $table_content .= 'GST | '; + $table_content .= 'Total | '; + $table_content .= '
|---|---|---|---|
| ' . $value['policy_name'] . ' | '; + $total_addon = $value['gst'] + $value['addtional_premium']; + $sum_total += $total_addon; + + $table_content .= '|||
| ' . $value['policy_name'] . ' | '; $table_content .= '₹' . format_indian_number($value['addtional_premium']) . ' | '; $table_content .= '₹' . format_indian_number($value['gst']) . ' | '; - $table_content .= '₹' . format_indian_number(($value['gst'] + $value['addtional_premium'])) . ' | ₹' . format_indian_number($total_addon) . ' | '; + $table_content .= ''; } - - $sum_total_words = numberToWords($sum_tolal); - $table_content .= '
| Total | ₹' . format_indian_number($sum_tolal) . ' |
| Name | '; $table_content .= 'Relation | '; $table_content .= 'Date Of Birth | '; $table_content .= 'Sum Insured | '; - - //Only Display SI Topup and Dependent Addon + + // Only Display SI Topup and Dependent Addon if ($is_addon == 2 || $is_addon == 3) { $table_content .= 'Premium | '; $table_content .= 'GST | '; } - + $table_content .= '
|---|
| Policy Name | '; $table_content .= 'Additional Premium | '; @@ -433,8 +456,9 @@ class sendMailNotification $table_content .= 'Total | '; $table_content .= '
|---|
| Name | '; $table_content .= 'Relation | '; $table_content .= 'Date Of Birth | '; $table_content .= 'Sum Insured | '; - - //Only Display SI Topup and Dependent Addon + + // Only Display SI Topup and Dependent Addon if ($is_addon == 2 || $is_addon == 3) { $table_content .= 'Premium | '; $table_content .= 'GST | '; } - + $table_content .= '
|---|
| Policy Name | '; $table_content .= 'Additional Premium | '; @@ -603,8 +633,9 @@ class sendMailNotification $table_content .= 'Total | '; $table_content .= '
|---|