Registration Report

@php $orders_grand_total = 0 @endphp @foreach($orders as $order) @if($order->transaction && $order->transaction->transaction_status != 'Voided') @php $orders_grand_total = $order->amount + $orders_grand_total @endphp @endif @endforeach
ID Created Date Status Payment Amount Contact Info Address Registrations Badge Names
Group
Affiliation
Golf Event Golfer Names Purchases Notes Repeat Customer
{{$order->id}} {{date('m/d g:i a', strtotime($order->created_at))}} @if($order->transaction) {{ucwords($order->transaction->transaction_status)}}
{{$order->transaction->transaction_no}}
@endif
${{number_format(floor($order->amount*100)/100,2, '.', '')}} {{$order->user->fullname}}
{{$order->user->email}}
Phone: {{localize_us_number($order->user->phone)}}
@if($order->user->affiliation_type) Affiliation: {{$order->user->affiliation_type->name}} @endif
{{$order->user->address}}
{{$order->user->city}}, {{$order->user->state}} {{$order->user->zip}}
@if($order->items()->where('item_id', 1)->count() > 0 && $order->items()->where('item_id', 1)->first()->quantity > 0) {{$order->items()->where('item_id', 1)->first()->quantity}} x Event Registration
@endif @if($order->items()->where('item_id', 2)->count() > 0 && $order->items()->where('item_id', 2)->first()->quantity > 0) {{$order->items()->where('item_id', 2)->first()->quantity}} x Pre Registration @endif
@foreach($order->attendees as $attendee) {{--
--}}
{{$attendee->tag_line_1}}
{{$attendee->tag_line_2}}
@if($attendee->tag_line_1 != '') {{$attendee->attendee_type}} @endif
@if($attendee->affiliation_type) {{$attendee->affiliation_type->name}} @endif
@endforeach
@if($order->items()->where('item_id', 3)->count() > 0 && $order->items()->where('item_id', 3)->first()->quantity > 0) {{$order->items()->where('item_id', 3)->first()->quantity}} x Golf Tournament
@endif @if($order->items()->where('item_id', 4)->count() > 0 && $order->items()->where('item_id', 4)->first()->quantity > 0) {{$order->items()->where('item_id', 4)->first()->quantity}} x 5K Walk/Run @endif
@foreach($order->attendees as $attendee) @if($attendee->golfer1 != '')
{{$attendee->golfer1}}
@endif @if($attendee->golfer2 != '')
{{$attendee->golfer2}}
@endif @if($attendee->golfer3 != '')
{{$attendee->golfer3}}
@endif @if($attendee->golfer4 != '')
{{$attendee->golfer4}}
@endif @endforeach
@if($order->items()->where('item_id', '>', 1)->count() > 0) @foreach($order->items()->where('item_id', '>', 1)->get() as $item) @if($item->quantity > 0) {{$item->quantity}} x {{$item->product->subtitle}} {{$item->product->title}}
@endif @if($item->product->category_id == 15) {{$item->custom_option}}
{{$item->custom_option2}}
@endif @endforeach @endif
{{$order->comments}} {{$order->repeat_customer == 0 ? 'First Online Submission' : 'Supplemental Submission'}}
Subtotal (this page):
Grand Total:
{{-- ${{number_format(floor($orders_grand_total*100)/100,2, '.', '')}}
--}} ${{number_format($orders_grand_total,2)}}
${{number_format($grossrevenue,2)}}
 
{{$orders->links()}}