• {{ __('Admin') }}
  • {{ __('Orders') }}
  • {{ __('Order Detail') }}
  • Order Detail

    Order ID {{ $order->id }} @if($order->voided == 1) (Refunded) @endif
    Sold to:
    Address
    {{ $order->user->address }}
    {{ $order->user->city }}, {{ $order->user->state }} {{ $order->user->zip }}
    {{ $order->user->country }}
    Email: {{ $order->user->email }}
    Phone: {{ localize_us_number($order->user->phone) }}
    @if($transaction)
    Transaction Details:
    Order Date: {{ date('F j, Y h:m A',strtotime($order->created_at)) }}
    Transaction Date: {{ date('F j, Y h:m A',strtotime($transaction->created_at)) }}
    Transaction Amount: ${{ number_format($transaction->payment_amount,2) }}
    Transaction Status: {{ ucfirst($transaction->transaction_status) }}
    Order Status: {{ $transaction->order->order_status?->name }}
    @if($order->voided == 1)
    This order was refunded!
    @endif @if($order->comments != "")
    Comments: {{ $order->comments }}
    @endif @if($order->admin_comments != "")
    Admin Comments: {{ $order->admin_comments }}
    @endif @else
    This order has no associated transaction.
    It is likely that this was a decline or other transaction error.
    Please contact Westlinks Online to investigate.
    @endif
    {{-- @if($order->attendees->count() > 0) --}}

    Badges

    @if($order->attendees->count() > 0) @if($order->golfers->count() > 0) @endif
    Badge 1 Manage Badge 1
    Name {{$order->attendees[0]->tag_line_1}}
    City/Group: {{$order->attendees[0]->tag_line_2}}
    Affiliation: {{$order->attendees[0]->affiliation_type?->name}}
    Golf: Yes
    @endif @if(count($order->attendees) > 1)

    Additional Registrants

    @for($i = 1; $i < count($order->attendees); $i++) @if($order->golfers->count() > 0) @else @endif
    Badge {{($i + 1)}} Manage Badge {{($i + 1)}}
    Name {{$order->attendees[$i]->tag_line_1}}
    City/Group: {{$order->attendees[$i]->tag_line_2}}
    Affiliation: {{$order->attendees[$i]->affiliation_type->name}}
    Golf:YesNo
    @endfor @endif @foreach($order->golfers as $golfer)

    Golfers

    Golfer 1 {{$golfer->golfer1}}
    Golfer 2 {{$golfer->golfer2}}
    Golfer 3 {{$golfer->golfer3}}
    Golfer 4 {{$golfer->golfer4}}
    @endforeach
    @if($order->items) @foreach($order->items as $item) @php $subtotal = $item->quantity * $item->product->price; @endphp @endforeach @if($order->comments != "") @endif
    Items Ordered
    Item Qty Each Total
    {{ $item->product->subtitle }} {{ $item->product->title }} @if($item->product->category_id == 15)

    Personalized text:

    {{$item->custom_option}}
    {{$item->custom_option2}}
    @endif
    {{ $item->quantity }} ${{ number_format($item->product->price,2) }}${{ number_format($subtotal,2) }}
    Order Total ${{number_format($order->amount,2)}} @if($order->voided == 1)
    (subsequently refunded)@endif

    Notes or special requests

    {!! $order->comments !!}
    @endif