{{-- resources/views/admin/orders/print.blade.php --}}
{{ __('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) }}
{{ __('orders.print.marketing_opt_in') }}: @if (isset($order->marketing_opt_in) && $order->marketing_opt_in) {{ __('orders.print.yes') }} @else {{ __('orders.print.no') }} @endif
{{ __('orders.print.name') }}: {{ $order->user->first_name }} {{ $order->user->last_name }}
{{ __('orders.print.email') }}: {{ $order->user->email }}
@else{{ __('orders.print.guest_order') }}
@endif{{ $order->campaign->title }}
@else{{ __('orders.print.not_available_short') }}
@endif{{ __('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{{ __('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'] ?? '' }}
| {{ __('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) }} |