Attendize/resources/views/fr/Emails/OrderNotification.blade.php

130 lines
3.3 KiB
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('en.Emails.Layouts.Master')
@section('message_content')
Bonjour,<br><br>
Vous avez reçu une nouvelle commande poour l'événement <b>{{$order->event->title}}</b>.<br><br>
@if(!$order->is_payment_received)
<b>Note : cette commande attend encore d'être réglée.</b>
<br><br>
@endif
Résumé de la commande :
<br><br>
Référence de la commande : <b>{{$order->order_reference}}</b><br>
Nom de la commande : <b>{{$order->full_name}}</b><br>
Date de la commande : <b>{{$order->created_at->toDayDateTimeString()}}</b><br>
Courriel de la commande : <b>{{$order->email}}</b><br>
<h3>Éléments de la commande</h3>
<div style="padding:10px; background: #F9F9F9; border: 1px solid #f1f1f1;">
<table style="width:100%; margin:10px;">
<tr>
<th>
Billet
</th>
<th>
Quantité
</th>
<th>
Prix
</th>
<th>
Frais de réservation
</th>
<th>
Total
</th>
</tr>
@foreach($order->orderItems as $order_item)
<tr>
<td>
{{$order_item->title}}
</td>
<td>
{{$order_item->quantity}}
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
GRATUIT
@else
{{money($order_item->unit_price, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
-
@else
{{money($order_item->unit_booking_fee, $order->event->currency)}}
@endif
</td>
<td>
@if((int)ceil($order_item->unit_price) == 0)
GRATUIT
@else
{{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}}
@endif
</td>
</tr>
@endforeach
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Sous-total</b>
</td>
<td colspan="2">
{{$orderService->getOrderTotalWithBookingFee(true)}}
</td>
</tr>
@if($order->event->organiser->charge_tax == 1)
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>{{$order->event->organiser->tax_name}}</b>
</td>
<td colspan="2">
{{$orderService->getTaxAmount(true)}}
</td>
</tr>
@endif
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<b>Total</b>
</td>
<td colspan="2">
{{$orderService->getGrandTotal(true)}}
</td>
</tr>
</table>
<br><br>
Vous pouvez gérer cette commande sur : {{route('showEventOrders', ['event_id' => $order->event->id, 'q'=>$order->order_reference])}}
<br><br>
</div>
<br><br>
Merci
@stop