Skip to content

Commit

Permalink
Use blade syntax on all mail templates
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 19, 2023
1 parent 8efa273 commit 4a22788
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions views/mail/review_chase.blade.php
Original file line number Diff line number Diff line change
@@ -1,57 +1,59 @@
subject = "{site_name} please leave a review - {order_number}"
subject = "{{$site_name}} please leave a review - {{$order_number}}"
==
Thank you for your order!

Hi, {first_name} {last_name}
Hi, {{$first_name}} {{$last_name}}

Thank you for your order with us - we hope you enjoyed your meal.

We would really appreciate you leaving a review to tell us how we did and help us improve our service.

Please use the URL below:
{order_view_url}
{{$order_view_url}}

Your order number is {order_number}
This is a {order_type} order.
Your order number is {{$order_number}}
This is a {{$order_type}} order.

Order date: {order_date}
Requested {order_type} time: {order_time}
Order date: {{$order_date}}
Requested {{$order_type}} time: {{$order_time}}

{order_address}
Restaurant: {location_name}
{{$order_address}}
Restaurant: {{$location_name}}

{order_comment}
{{$order_comment}}

{order_menus}
{menu_quantity} x {menu_name}
{menu_options}
- {menu_price}
- {menu_subtotal}
{menu_comment}
@if(!empty($order_menus))
@foreach($order_menus as $order_menu)
{{ $order_menu['menu_quantity'] }} x {{ $order_menu['menu_name'] }}
{!! $order_menu['menu_options'] !!}
- {{ $order_menu['menu_price'] }}
- {{ $order_menu['menu_subtotal'] }}
{!! $order_menu['menu_comment'] !!}
@endforeach
@endif

{/order_menus}

{order_totals}
{order_total_title}
{order_total_value}

{/order_totals}
@if(!empty($order_totals))
@foreach($order_totals as $order_total)
{{ $order_total['order_total_title'] }}
{{ $order_total['order_total_value'] }}
@endforeach
@endif

==
Hi {first_name} {last_name},
Hi {{$first_name}} {{$last_name}},

## Thank you for your order with us - we hope you enjoyed your meal!

We would really appreciate you leaving a review to tell us how we did and help us improve our service.

[Click here]({order_view_url}) to leave a review.
[Click here]({{$order_view_url}}) to leave a review.

**Requested {order_type} time:** {order_time}<br>
**Payment Method:** {order_payment}<br>
**Restaurant:** {location_name}<br>
**Delivery Address:** {order_address}
**Requested {{$order_type}} time:** {{$order_time}}<br>
**Payment Method:** {{$order_payment}}<br>
**Restaurant:** {{$location_name}}<br>
**Delivery Address:** {{$order_address}}

{order_comment}
{{$order_comment}}

@partial('table')
<table border="0" cellpadding="0" cellspacing="0" width="100%">
Expand Down

0 comments on commit 4a22788

Please sign in to comment.