admin mail

This commit is contained in:
Thibault Richy 2019-02-27 16:17:32 +01:00
parent f439e1023b
commit 6ce9970178

View file

@ -10,7 +10,7 @@
<div style='height:20px; background-color: #393939;'></div>
<p style='font-family: arial; font-size:18px; text-align: center; color: #393939;'>Alerte sur les bons de réduction</p><br/>
{{-- Alerte de seuil --}}
@if (!empty($couponSeuilGlobal))
@if (!empty($couponSeuil))
<p style='font-family: arial; font-size:15px; color: #393939; font-weight: bold;'>Coupons bientôt épuisés :<p><br/>
<table align='center' cellpadding='0' cellspacing='0'style='font-family:arial; color: #3F3F3F; font-size:13px;' >
@ -20,7 +20,7 @@
<td style='border-bottom: 1px solid #ddd; font-weight: bold; width: 200px; padding: 8px;'>Nom du coupon</td>
<td style='font-weight: bold; border-bottom: 1px solid #ddd; width: 100px; padding: 8px;'>Quantité restante</td>
</tr>
@foreach ($couponSeuilGlobal as $site => $cpseuil)
@foreach ($couponSeuil as $site => $cpseuil)
<tr>
<td style='border-bottom: 1px solid #ddd; width: 200px; padding: 8px;'>{{ $site }}</td>
<td style='border-bottom: 1px solid #ddd; width: 100px; padding: 8px;'>{{ $cpseuil->coupon_code }}</td>
@ -31,7 +31,7 @@
</table><br/>
@endif
{{-- Alerte de max date diffusion --}}
@if (!empty($couponDiffusionGlobal))
@if (!empty($couponDiffusion))
<p style='font-family: arial; font-size:15px; color: #393939; font-weight: bold;'>Coupons en fin de diffusion d'ici 30 jours :<p><br/>
<table align='center' cellpadding='0' cellspacing='0'style='font-family:arial; color: #3F3F3F; font-size:13px;' >
@ -41,7 +41,7 @@
<td style='border-bottom: 1px solid #ddd; font-weight: bold; width: 200px; padding: 8px;'>Nom du coupon</td>
<td style='font-weight: bold; border-bottom: 1px solid #ddd; width: 100px; padding: 8px;'>Date de fin de diffusion</td>
</tr>
@foreach ($couponDiffusionGlobal as $site => $cpdiffusion)
@foreach ($couponDiffusion as $site => $cpdiffusion)
<tr>
<td style='border-bottom: 1px solid #ddd; width: 200px; padding: 8px;'>{{ $site }}</td>
<td style='border-bottom: 1px solid #ddd; width: 100px; padding: 8px;'>{{ $cpdiffusion->coupon_code }}</td>