@if (is_null($logo))

{{ setting('store_name') }}

@else
logo
@endif
{{ trans('storefront::invoice.invoice') }}
{{ trans('storefront::invoice.order_id') }}: #{{ $order->id }}
{{ trans('storefront::invoice.date') }}: {{ $order->created_at->toFormattedDateString() }}
{{ trans('storefront::invoice.order_details') }}
{{ trans('storefront::invoice.email') }}: {{ $order->customer_email }}
{{ trans('storefront::invoice.phone') }}: {{ $order->customer_phone }}
{{ trans('storefront::invoice.payment_method') }}: {{ $order->payment_method }} @if($order->payment_method==='Bank Transfer')
{{setting('bank_transfer_instructions')}} @endif
{{ trans('storefront::invoice.shipping_address') }}
{{ $order->shipping_full_name }} {{ $order->shipping_address_1 }} {{ $order->shipping_address_2 }} {{ $order->shipping_city }}, {{ $order->shipping_state_name }} {{ $order->shipping_zip }} {{ $order->shipping_country_name }}
{{ trans('storefront::invoice.billing_address') }}
{{ $order->billing_full_name }} {{ $order->billing_address_1 }} {{ $order->billing_address_2 }} {{ $order->billing_city }}, {{ $order->billing_state_name }} {{ $order->billing_zip }} {{ $order->billing_country_name }}
@foreach ($order->products as $product) @endforeach
@if ($product->hasAnyOption()) @endif
{{ $product->name }}
@foreach ($product->options as $option) {{ $option->name }}: @if ($option->option->isFieldType()) {{ $option->value }} @else {{ $option->values->implode('label', ', ') }} @endif @endforeach
{{ trans('storefront::invoice.unit_price') }}: {{ $product->unit_price->convert($order->currency, $order->currency_rate)->format($order->currency) }}
{{ trans('storefront::invoice.quantity') }}: {{ $product->qty }}
{{ trans('storefront::invoice.line_total') }}: {{ $product->line_total->convert($order->currency, $order->currency_rate)->format($order->currency) }}
@if ($order->hasShippingMethod()) @endif @if ($order->hasCoupon()) @endif @foreach ($order->taxes as $tax) @endforeach
{{ trans('storefront::invoice.subtotal') }} {{ $order->sub_total->convert($order->currency, $order->currency_rate)->format($order->currency) }}
{{ $order->shipping_method }} {{ $order->shipping_cost->convert($order->currency, $order->currency_rate)->format($order->currency) }}
{{ trans('storefront::invoice.coupon') }} ({{ $order->coupon->code }}) {{ $order->discount->convert($order->currency, $order->currency_rate)->format($order->currency) }}
{{ $tax->name }} {{ $tax->order_tax->amount->convert($order->currency, $order->currency_rate)->format($order->currency) }}
{{ trans('storefront::invoice.total') }} {{ $order->total->convert($order->currency, $order->currency_rate)->format($order->currency) }}