@extends('apps::frontend.layouts.master') @section('title', __('order::frontend.orders.invoice.details_title') ) @section('content')

{{ __('order::frontend.orders.invoice.title') }}

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

{{ __('order::frontend.orders.invoice.date') }}{{ $order->created_at }}

{{ __('order::frontend.orders.invoice.method') }} @if($order->transactions->method == 'cash') {{ __('order::frontend.orders.invoice.cash') }} @else {{ __('order::frontend.orders.invoice.online') }} @endif

@if($order->unknownOrderAddress)

{{ __('order::frontend.orders.invoice.client_address.name') }} : {{ $order->unknownOrderAddress->receiver_name }}

{{ __('order::frontend.orders.invoice.client_address.state') }} :{{ $order->unknownOrderAddress->state->title }}

{{ __('order::frontend.orders.invoice.client_address.mobile') }} :{{ $order->unknownOrderAddress->receiver_mobile }}

@else

{{ __('order::frontend.orders.invoice.client_address.state') }} : {{ $order->orderAddress->state->title }}

{{ __('order::frontend.orders.invoice.client_address.block') }} :{{ $order->orderAddress->block }}

{{ __('order::frontend.orders.invoice.client_address.building') }} :{{ $order->orderAddress->building }}

@if(!empty($order->orderAddress->address))

{{ __('order::frontend.orders.invoice.client_address.details') }} :{{ $order->orderAddress->address }}

@endif
@endif
@if($order->orderCoupons && !empty($order->orderCoupons->products)) @endif @if(count($order->orderProducts) > 0) @foreach ($order->orderProducts as $key => $orderProduct) @if(isset($orderProduct->product_variant_id) && !empty($orderProduct->product_variant_id)) @else @endif @if(isset($orderProduct->product_variant_id) && !empty($orderProduct->product_variant_id)) @if($order->orderCoupons && !empty($order->orderCoupons->products) && in_array($orderProduct->variant->product->id, $order->orderCoupons->products ?? [])) @endif @else @if($order->orderCoupons && !empty($order->orderCoupons->products) && in_array($orderProduct->product->id, $order->orderCoupons->products ?? [])) @endif @endif @endforeach @endif
# {{ __('order::frontend.orders.invoice.product_title') }} {{ __('order::frontend.orders.invoice.product_qty') }} {{ __('order::frontend.orders.invoice.product_price') }}{{ __('order::frontend.orders.invoice.product_discount') }}
{{ $key }} {{ generateVariantProductData($orderProduct->variant->product, $orderProduct->product_variant_id, $orderProduct->variant->productValues->pluck('option_value_id')->toArray())['name'] }} {{ $orderProduct->product->title }}{{ $orderProduct->qty }} {{ $orderProduct->price }} {{ __('apps::frontend.master.kwd') }} @if($order->orderCoupons->discount_type == 'value') {{ $order->orderCoupons->discount_value }} {{ __('apps::frontend.master.kwd') }} @else {{ round($order->orderCoupons->discount_percentage, 1) }} % @endif @if($order->orderCoupons->discount_type == 'value') {{ $order->orderCoupons->discount_value }} {{ __('apps::frontend.master.kwd') }} @else {{ round($order->orderCoupons->discount_percentage, 1) }} % @endif
{{ __('order::frontend.orders.invoice.subtotal') }} {{ $order->subtotal }} {{ __('apps::frontend.master.kwd') }}
{{ __('order::frontend.orders.invoice.shipping') }} {{ $order->shipping }} {{ __('apps::frontend.master.kwd') }}
{{ __('order::frontend.orders.invoice.total') }} {{ $order->total }} {{ __('apps::frontend.master.kwd') }}
@endsection @section('externalJs') @endsection