@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 @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) @if($breakfast_total > 0) @php $item = \App\Models\Product::find(48); @endphp @endif @if($aa_total > 0) @php $item = \App\Models\Product::find(44); @endphp @endif @if($banquet_total > 0) @php $item = \App\Models\Product::find(46); @endphp @endif @endif

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
{{$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, '.', '')}}
Item Total Vegetarian
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, '.', '')}}
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, '.', '')}}
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, '.', '')}}
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) @foreach($order->attendees as $a) @endforeach @endif @if($order->golfers->count() > 0) @endif
Badge Names Group/City Affiliation
{{$a->tag_line_1}} {{$a->tag_line_2}} {{$a->affiliation_type ? $a->affiliation_type->name : null}}


Golfer Names
{{$order->golfers[0]->golfer1}}
{{$order->golfers[0]->golfer2}}
{{$order->golfers[0]->golfer3}}
{{$order->golfers[0]->golfer4}}
Notes/Group Seating/Special Requests
{{$order->comments}}

{{$order->repeat_customer == 0 ? 'This is my FIRST online submission' : 'This is a supplemental submission'}}