@extends('layouts.admin') @section('content')
| {{ __('Product') }} | @if ($gs->is_invoice_photo){{ __('Photo') }} | @endif{{ __('Details') }} | {{ __('Total') }} |
|---|---|---|---|
|
{{ $product['item']['name'] }} @php $prod = App\Models\Product::find($product['item']['id']); @endphp @if (isset($prod)){{ __('Product SKU') }} - {{ $prod->sku }} {{ __('Reference Code') }} - {{ $prod->ref_code }} @endif |
@if ($gs->is_invoice_photo)
|
@endif
@if ($product['size'])
{{ __('Size') }}: {{ str_replace('-', ' ', $product['size']) }} @endif @if ($product['color']){{ __('color') }} : @endif{{ __('Price') }} : {{ $order->currency_sign }}{{ number_format( $product['item']['price'] * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }} {{ $first_curr->sign . ' ' . __('Price') }} : {{ $first_curr->sign }}{{ number_format( $product['item']['price'], $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator, ) }} {{ __('Qty') }} : {{ $product['qty'] }} {{ $product['item']['measure'] }} @if (!empty($product['customizable_name'])){{ __('Custom Name') }}: {{ $product['customizable_name'] }} @endif @if (!empty($product['customizable_number'])){{ __('Custom Number') }}: {{ $product['customizable_number'] }} @endif @if (!empty($product['keys'])) @foreach (array_combine(explode(',', $product['keys']), explode('~', $product['values'])) as $key => $value){{ App\Models\Attribute::where('input_name', $key)->first()->name }} : {{ $value }} @endforeach @endif |
{{ $order->currency_sign }}{{ number_format(
$product['price'] * $order->currency_value,
$order_curr->decimal_digits,
$order_curr->decimal_separator,
$order_curr->thousands_separator,
) }}
{{ $first_curr->sign }}{{ number_format( $product['price'], $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator, ) }} |
@php
$subtotal += $product['price'] * $order->currency_value;
$subtotal_original += $product['price'];
@endphp
| @endif | {{ __('Subtotal') }} | {{ $order->currency_sign }}{{ number_format($subtotal, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($subtotal_original, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }} |
|
| @endif | {{ __('Shipping') }} |
{{ $order->currency_sign }}{{ number_format($order->shipping_cost * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($order->shipping_cost, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }} |
|
| @endif | {{ __('Packaging') }} | {{ $order->currency_sign }}{{ number_format( $order->packing_cost * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }} | |
| @endif | {{ __('TAX') }} | @php $tax_original = ($subtotal_original / 100) * $order->tax; $tax = $order->currency_value != 1 ? floor($tax_original * $order->currency_value) : $tax_original; @endphp
{{ $order->currency_sign }}{{ number_format($tax, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($tax_original, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }} |
|
| @endif | {{ __('Coupon Discount') }}({{ $order->currency_sign }}) | {{ $order->currency_sign }}{{ number_format( $order->coupon_discount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator, ) }} | |
| @endif | {{ __('Total') }} {{ $first_curr->sign . ' ' . __('Total') }} |
{{ $order->currency_sign }}{{ number_format($order->pay_amount * $order->currency_value, $order_curr->decimal_digits, $order_curr->decimal_separator, $order_curr->thousands_separator) }}
{{ $first_curr->sign }}{{ number_format($order->pay_amount, $first_curr->decimal_digits, $first_curr->decimal_separator, $first_curr->thousands_separator) }} |
|