From dda7fa71ed7ad870fb7d836afd3fe82aeccda9c1 Mon Sep 17 00:00:00 2001 From: Etienne Marais Date: Sat, 8 Jun 2019 18:37:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FIX:=20Add=20business=20details?= =?UTF-8?q?=20to=20order=20tickets=20email.=20Clean=20up=20html=20a=20litt?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TicketMailer/SendOrderTickets.blade.php | 111 ++++++++---------- 1 file changed, 46 insertions(+), 65 deletions(-) diff --git a/resources/views/en/Mailers/TicketMailer/SendOrderTickets.blade.php b/resources/views/en/Mailers/TicketMailer/SendOrderTickets.blade.php index dc5b3279..ec43a774 100644 --- a/resources/views/en/Mailers/TicketMailer/SendOrderTickets.blade.php +++ b/resources/views/en/Mailers/TicketMailer/SendOrderTickets.blade.php @@ -3,99 +3,88 @@ @section('message_content') Hello,

-Your order for the event {{$order->event->title}} was successful.

+Your order for the event {{$order->event->title}} was successful.

-Your tickets are attached to this email. You can also view you order details and download your tickets at: {{route('showOrderDetails', ['order_reference' => $order->order_reference])}} +Your tickets are attached to this email. You can also view you order details and download your tickets +at: {{route('showOrderDetails', ['order_reference' => $order->order_reference])}} @if(!$order->is_payment_received)

-Please note: This order still requires payment. Instructions on how to make payment can be found on your order page: {{route('showOrderDetails', ['order_reference' => $order->order_reference])}} +Please note: This order still requires payment. Instructions on how to make payment can be found on your + order page: {{route('showOrderDetails', ['order_reference' => $order->order_reference])}}

@endif

Order Details

-Order Reference: {{$order->order_reference}}
-Order Name: {{$order->full_name}}
-Order Date: {{$order->created_at->format(config('attendize.default_datetime_format'))}}
-Order Email: {{$order->email}}
+Order Reference: {{$order->order_reference}}
+Order Name: {{$order->full_name}}
+Order Date: {{$order->created_at->format(config('attendize.default_datetime_format'))}}
+Order Email: {{$order->email}}
+@if ($order->is_business) +Business: {{$order->business_name}}
+Tax number: {{$order->business_tax_number}}
+Business Address: {{$order->business_address}}
+@endif + Add To Calendar

Order Items

@foreach($order->orderItems as $order_item) - - - - - - - - @endforeach + + - + + @endforeach + + + @if($order->event->organiser->charge_tax == 1) + - - - @endif - - - - + +
- Ticket + Ticket - Qty. + Qty. - Price + Price - Fee + Fee - Total + Total
- {{$order_item->title}} - - {{$order_item->quantity}} - - @if((int)ceil($order_item->unit_price) == 0) - FREE - @else - {{money($order_item->unit_price, $order->event->currency)}} - @endif - - - @if((int)ceil($order_item->unit_price) == 0) - - - @else - {{money($order_item->unit_booking_fee, $order->event->currency)}} - @endif - - - @if((int)ceil($order_item->unit_price) == 0) - FREE - @else - {{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}} - @endif - -
{{$order_item->title}}{{$order_item->quantity}} + @if((int)ceil($order_item->unit_price) == 0) + FREE + @else + {{money($order_item->unit_price, $order->event->currency)}} + @endif + @if((int)ceil($order_item->unit_price) == 0) + - + @else + {{money($order_item->unit_booking_fee, $order->event->currency)}} + @endif + @if((int)ceil($order_item->unit_price) == 0) + FREE + @else + {{money(($order_item->unit_price + $order_item->unit_booking_fee) * ($order_item->quantity), $order->event->currency)}} + @endif - Sub Total -
Sub Total {{$orderService->getOrderTotalWithBookingFee(true)}}
- - - - {{$order->event->organiser->tax_name}} + {{$order->event->organiser->tax_name}}({{$order->event->organiser->tax_value}}%) {{$orderService->getTaxAmount(true)}} @@ -103,21 +92,13 @@ Order Email: {{$order->email}}
- - - - Total - Total {{$orderService->getGrandTotal(true)}}
-