@extends('admin::layouts.master') @section('page_title') {{ __('admin::app.sales.invoices.add-title') }} @stop @section('content-wrapper')
@csrf()
{{ __('admin::app.sales.orders.order-info') }}
{{ __('admin::app.sales.invoices.order-id') }} #{{ $order->increment_id }}
{{ __('admin::app.sales.orders.order-date') }} {{ core()->formatDate($order->created_at, 'Y-m-d H:i:s') }}
{{ __('admin::app.sales.orders.order-status') }} {{ $order->status_label }}
{{ __('admin::app.sales.orders.channel') }} {{ $order->channel_name }}
{{ __('admin::app.sales.orders.account-info') }}
{{ __('admin::app.sales.orders.customer-name') }} {{ $order->customer_full_name }}
{{ __('admin::app.sales.orders.email') }} {{ $order->customer_email }}
@if ( $order->billing_address || $order->shipping_address )
@if ($order->billing_address)
{{ __('admin::app.sales.orders.billing-address') }}
@include ('admin::sales.address', ['address' => $order->billing_address])
@endif @if ($order->shipping_address)
{{ __('admin::app.sales.orders.shipping-address') }}
@include ('admin::sales.address', ['address' => $order->shipping_address])
@endif
@endif
{{ __('admin::app.sales.orders.payment-info') }}
{{ __('admin::app.sales.orders.payment-method') }} {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}
{{ __('admin::app.sales.orders.currency') }} {{ $order->order_currency_code }}
@php $additionalDetails = \Webkul\Payment\Payment::getAdditionalDetails($order->payment->method); @endphp @if (! empty($additionalDetails))
{{ $additionalDetails['title'] }} {{ $additionalDetails['value'] }}
@endif
@if ($order->shipping_address)
{{ __('admin::app.sales.orders.shipping-info') }}
{{ __('admin::app.sales.orders.shipping-method') }} {{ $order->shipping_title }}
{{ __('admin::app.sales.orders.shipping-price') }} {{ core()->formatBasePrice($order->base_shipping_amount) }}
@endif
@foreach ($order->items as $item) @if ($item->qty_to_invoice > 0) @endif @endforeach
{{ __('admin::app.sales.orders.SKU') }} {{ __('admin::app.sales.orders.product-name') }} {{ __('admin::app.sales.invoices.qty-ordered') }} {{ __('admin::app.sales.invoices.qty-to-invoice') }}
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} {{ $item->name }} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif
{{ $item->qty_ordered }}
@stop