Thank you for your order.
|
{{$settings->where('key', 'EVENT_NAME')->first()->value}} Registration Receipt |
{{$settings->where('key', 'ORG_NAME')->first()->value}}
{{$settings->where('key', 'ORG_OFFICE_ADDRESS')->first()->value}}
{{$settings->where('key', 'ORG_OFFICE_CITY')->first()->value}}, {{$settings->where('key', 'ORG_OFFICE_STATE')->first()->value}} {{$settings->where('key', 'ORG_OFFICE_ZIP')->first()->value}}
Message Phone: {{$settings->where('key', 'ORG_PHONE')->first()->value}}
|
Order Number: {{$order->id}}
@if($order->transaction) Transaction Number: {{$order->transaction->transaction_no}} @endif
|
{{$order->user->firstname}} {{$order->user->lastname}}
{{$order->user->address}}
{{$order->user->city}}, {{$order->user->state}} {{$order->user->zip}}
Phone: {{localize_us_number($order->user->phone)}} | Email: {{$order->user->email}}
|
Invoice Date: {{date('F j, Y g:i A')}}
|
Customer ID: {{$order->user->id}}
|
|
Quantity
|
Item Description
|
Unit Price
|
Amount
|
@php
$aa_total = 0;
$aa_vegetarian = 0;
$banquet_total = 0;
$banquet_vegetarian = 0;
$breakfast_total = 0;
$breakfast_vegetarian = 0;
@endphp
@foreach($order->items as $p)
@if($p->quantity > 0 & !in_array($p->item_id, [44,45,46,47,48,49]))
@php $item = \App\Models\Product::find($p->item_id); @endphp
{{$p->quantity}}
|
{{$item->subtitle}} {{$item->title}}
@if($item->category_id == 15)
Personalized text:
{{$p->custom_option}} {{$p->custom_option2}}
@endif
|
${{number_format(floor($p->amount * 100)/100,2, '.', '')}}
|
${{number_format(floor($p->quantity * $p->amount * 100)/100,2, '.', '')}}
|
@elseif($p->quantity > 0 & in_array($p->item_id, [44,45,46,47,48,49]))
@php
$item = \App\Models\Product::find($p->item_id);
if($p->item_id == 44 || $p->item_id == 45) {
$aa_total += $p->quantity;
if($p->item_id == 44) {
$aa_vegetarian += $p->quantity;
}
}
if($p->item_id == 46 || $p->item_id == 47) {
$banquet_total += $p->quantity;
if($p->item_id == 46) {
$banquet_vegetarian += $p->quantity;
}
}
if($p->item_id == 48 || $p->item_id == 49) {
$breakfast_total += $p->quantity;
if($p->item_id == 48) {
$breakfast_vegetarian += $p->quantity;
}
}
@endphp
@endif
@endforeach
@if($breakfast_total > 0 || $aa_total > 0 || $banquet_total > 0)
Item |
Total |
Vegetarian |
|
|
@if($breakfast_total > 0)
@php $item = \App\Models\Product::find(48); @endphp
Breakfast |
{{$breakfast_total - $breakfast_vegetarian}} |
{{$breakfast_vegetarian}} |
${{number_format(floor($item->price * 100)/100,2, '.', '')}}
|
${{number_format(floor($breakfast_total * $item->price * 100)/100,2, '.', '')}}
|
@endif
@if($aa_total > 0)
@php $item = \App\Models\Product::find(44); @endphp
Al-Anon Luncheon |
{{$aa_total - $aa_vegetarian}} |
{{$aa_vegetarian}} |
${{number_format(floor($item->price * 100)/100,2, '.', '')}}
|
${{number_format(floor($aa_total * $item->price * 100)/100,2, '.', '')}}
|
@endif
@if($banquet_total > 0)
@php $item = \App\Models\Product::find(46); @endphp
Banquet |
{{$banquet_total - $banquet_vegetarian}} |
{{$banquet_vegetarian}} |
${{number_format(floor($item->price * 100)/100,2, '.', '')}}
|
${{number_format(floor($banquet_total * $item->price * 100)/100,2, '.', '')}}
|
@endif
@endif
|
Total
|
${{number_format(floor($order->amount * 100)/100,2, '.', '')}}
|
|
Paid
|
${{number_format(floor($order->amount * 100)/100,2, '.', '')}}
|
|
Balance
|
${{number_format(floor(0 * 100)/100,2, '.', '')}}
|
@if($order->attendees->count() > 0)
Badge Names
|
Group/City
|
Affiliation
|
@foreach($order->attendees as $a)
{{$a->tag_line_1}} |
{{$a->tag_line_2}} |
{{$a->affiliation_type ? $a->affiliation_type->name : null}} |
@endforeach
@endif
@if(isset($order->attendees[0]) && $order->attendees[0]->golfer1 != '')
|
Golfer Names
|
@if($order->attendees[0]->golfer1 != '')
{{$order->attendees[0]->golfer1}} |
@endif
@if($order->attendees[0]->golfer2 != '')
{{$order->attendees[0]->golfer2}} |
@endif
@if($order->attendees[0]->golfer3 != '')
{{$order->attendees[0]->golfer3}} |
@endif
@if($order->attendees[0]->golfer4 != '')
{{$order->attendees[0]->golfer4}} |
@endif
@endif
Notes/Group Seating/Special Requests
|
{{$order->comments}}
{{$order->repeat_customer == 0 ? 'This is my FIRST online submission' : 'This is a supplemental submission'}} |
|