feat(notification): implement email notifications for user registration and purchase events
This commit is contained in:
12
resources/views/mail/notifications/purchase-paid.blade.php
Normal file
12
resources/views/mail/notifications/purchase-paid.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<h1 style="margin: 0 0 20px;">¡Recibimos tu pago!</h1>
|
||||
<p>La compra <strong>#{{ $purchase->id }}</strong> fue confirmada correctamente.</p>
|
||||
<table role="presentation" style="width: 100%; border-collapse: collapse; margin: 20px 0;">
|
||||
@foreach ($purchase->items as $item)
|
||||
<tr>
|
||||
<td style="padding: 8px 0; border-bottom: 1px solid #e2e8f0;">{{ $item->item_nombre }}</td>
|
||||
<td style="padding: 8px 0; border-bottom: 1px solid #e2e8f0; text-align: center;">× {{ $item->cantidad }}</td>
|
||||
<td style="padding: 8px 0; border-bottom: 1px solid #e2e8f0; text-align: right;">${{ number_format((float) $item->total, 2, ',', '.') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
<p style="font-size: 18px;"><strong>Total pagado: ${{ number_format((float) $purchase->total, 2, ',', '.') }}</strong></p>
|
||||
@@ -0,0 +1,7 @@
|
||||
<h1 style="margin: 0 0 20px;">Tus tickets ya están disponibles</h1>
|
||||
<p>Generamos {{ $tickets->count() }} {{ $tickets->count() === 1 ? 'ticket' : 'tickets' }} para la compra <strong>#{{ $purchase->id }}</strong>.</p>
|
||||
<ul style="padding-left: 20px;">
|
||||
@foreach ($tickets as $ticket)
|
||||
<li style="margin-bottom: 8px;">{{ $ticket->name }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
3
resources/views/mail/notifications/welcome.blade.php
Normal file
3
resources/views/mail/notifications/welcome.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<h1 style="margin: 0 0 20px;">¡Bienvenido a {{ $tenant->nombre }}!</h1>
|
||||
<p>Hola {{ $user->nombre_apellido }}, tu cuenta fue creada correctamente.</p>
|
||||
<p>Ya podés ingresar y comenzar a comprar.</p>
|
||||
Reference in New Issue
Block a user