@extends('apps::frontend.layouts.master') @section('title', __('order::frontend.orders.invoice.details_title') ) @section('content')
{{ __('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
{{ __('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| # | {{ __('order::frontend.orders.invoice.product_title') }} | {{ __('order::frontend.orders.invoice.product_qty') }} | {{ __('order::frontend.orders.invoice.product_price') }} | @if($order->orderCoupons && !empty($order->orderCoupons->products)){{ __('order::frontend.orders.invoice.product_discount') }} | @endif||
|---|---|---|---|---|---|---|
| {{ $key }} | @if(isset($orderProduct->product_variant_id) && !empty($orderProduct->product_variant_id)){{ generateVariantProductData($orderProduct->variant->product, $orderProduct->product_variant_id, $orderProduct->variant->productValues->pluck('option_value_id')->toArray())['name'] }} | @else{{ $orderProduct->product->title }} | @endif{{ $orderProduct->qty }} | {{ $orderProduct->price }} {{ __('apps::frontend.master.kwd') }} | @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 ?? []))@if($order->orderCoupons->discount_type == 'value') {{ $order->orderCoupons->discount_value }} {{ __('apps::frontend.master.kwd') }} @else {{ round($order->orderCoupons->discount_percentage, 1) }} % @endif | @endif @else @if($order->orderCoupons && !empty($order->orderCoupons->products) && in_array($orderProduct->product->id, $order->orderCoupons->products ?? []))@if($order->orderCoupons->discount_type == 'value') {{ $order->orderCoupons->discount_value }} {{ __('apps::frontend.master.kwd') }} @else {{ round($order->orderCoupons->discount_percentage, 1) }} % @endif | @endif @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') }} |