{{-- resources/views/admin/orders/print.blade.php --}} {{ __('orders.print.title', ['order_id' => $order->id]) }}

{{ __('orders.print.header', ['order_id' => $order->id]) }}

{{ __('orders.print.order_information') }}

{{ __('orders.print.order_id') }}: {{ $order->id }}

{{ __('orders.print.status') }}: {{ ucfirst(__($order->status)) }}

@if ($order->our_po_number)

{{ __('orders.print.our_po_number') }}: {{ $order->our_po_number }}

@endif @if ($order->amazon_po_number)

{{ __('orders.print.amazon_po_number') }}: {{ $order->amazon_po_number }}

@endif @if (!$order->our_po_number && !$order->amazon_po_number)

{{ __('orders.print.po_number') }}: {{ __('orders.print.not_available_short') }}

@endif

{{ __('orders.print.contact_email') }}: {{ $order->contact_email }}

{{ __('orders.print.order_date') }}: {{ $order->created_at->format('M d, Y H:i A') }}


{{ __('orders.print.product_value') }}: ${{ number_format($order->total_product_value, 2) }}

{{ __('orders.print.donation_amount') }}: ${{ number_format($order->donation_amount, 2) }}

{{-- Convenience Fee Information --}} @if (isset($order->surcharge_percentage) && $order->surcharge_percentage > 0)

{{ __('orders.print.convenience_fee') }}: {{ number_format($order->surcharge_percentage, 2) }}% (${{ number_format($order->surcharge_amount ?? 0, 2) }})

@else

{{ __('orders.print.convenience_fee') }}: {{ __('orders.print.not_applied') }}

@endif

{{ __('orders.print.grand_total') }}: ${{ number_format($order->total_product_value + $order->donation_amount, 2) }}


{{-- Marketing Opt-in Information --}}

{{ __('orders.print.marketing_opt_in') }}: @if (isset($order->marketing_opt_in) && $order->marketing_opt_in) {{ __('orders.print.yes') }} @else {{ __('orders.print.no') }} @endif

@if ($order->user)

{{ __('orders.print.donor_information') }}

{{ __('orders.print.name') }}: {{ $order->user->first_name }} {{ $order->user->last_name }}

{{ __('orders.print.email') }}: {{ $order->user->email }}

@else

{{ __('orders.print.donor_information') }}

{{ __('orders.print.guest_order') }}

@endif
@if ($order->campaign)

{{ __('orders.print.campaign') }}

{{ $order->campaign->title }}

@else

{{ __('orders.print.campaign') }}

{{ __('orders.print.not_available_short') }}

@endif
@if ($order->shippingAddress)

{{ __('orders.print.shipping_address') }}

{{ __('orders.print.nickname') }}: {{ $order->shippingAddress->nickname ?? __('orders.print.not_available_short') }}

{{ $order->shippingAddress->contact_name ?? ($order->user ? $order->user->first_name . ' ' . $order->user->last_name : $order->contact_email) }}

@if ($order->shippingAddress->company)

{{ $order->shippingAddress->company }}

@endif

{{ $order->shippingAddress->address_line_1 }}

@if ($order->shippingAddress->address_line_2)

{{ $order->shippingAddress->address_line_2 }}

@endif

{{ $order->shippingAddress->city }}, {{ $order->shippingAddress->state }} {{ $order->shippingAddress->zip_code }}

{{ $order->shippingAddress->country }}

@if ($order->shippingAddress->phone)

{{ __('orders.print.phone') }}: {{ $order->shippingAddress->phone }}

@endif
@endif @if ($order->billing_info)

{{ __('orders.print.billing_information') }}

@php $billingInfo = $order->billing_info; @endphp

{{ __('orders.print.name') }}: {{ $billingInfo['first_name'] ?? '' }} {{ $billingInfo['last_name'] ?? '' }}

{{ __('orders.print.company') }}: {{ $billingInfo['company'] ?? __('orders.print.not_available_short') }}

{{ $billingInfo['address_line_1'] ?? '' }}

@if (!empty($billingInfo['address_line_2']))

{{ $billingInfo['address_line_2'] }}

@endif

{{ $billingInfo['city'] ?? '' }}, {{ $billingInfo['state'] ?? '' }} {{ $billingInfo['zip_code'] ?? '' }}

{{ $billingInfo['country'] ?? '' }}

@endif @if ($order->cart_items)

{{ __('orders.print.items_ordered') }}

@php $cartItems = $order->cart_items; @endphp @foreach ($cartItems as $item) @endforeach
{{ __('orders.print.product_name') }} {{ __('orders.print.asin') }} {{ __('orders.print.quantity') }} {{ __('orders.print.price') }} {{ __('orders.print.subtotal') }}
{{ $item['name'] ?? __('orders.print.not_available_short') }} {{ $item['attributes']['asin'] ?? __('orders.print.not_available_short') }} {{ $item['quantity'] ?? __('orders.print.not_available_short') }} ${{ number_format($item['price'] ?? 0, 2) }} ${{ number_format(($item['price'] ?? 0) * ($item['quantity'] ?? 0), 2) }}
@endif