|
{{ translate('Total Amount') }}
|
@if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($order->total_amount + ($order->discount_rate ?? $order->discount_rate)) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|
|
{{ translate('Taxable Value') }}
|
@if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($order->sub_total_amount - (float) $order->tax) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|
|
{{ translate('Total Tax') }}
|
@if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($order->tax) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|
{{-- @php
$totalPercentage = 0;
$taxes = [];
foreach ($order->orderDetails as $orderDetail) {
foreach ($orderDetail->productCountry->productTax as $item) {
$totalPercentage += $item['percentage'];
}
}
foreach ($order->orderDetails as $orderDetail) {
foreach ($orderDetail->productCountry->productTax as $item) {
$taxRate = $order->tax * ($item['percentage'] / $totalPercentage);
if (isset($taxes[$item['tax_label']])) {
$taxes[$item['tax_label']] += $taxRate;
} else {
$taxes[$item['tax_label']] = $taxRate;
}
}
}
@endphp
@foreach ($taxes as $label => $amount)
|
{{ translate($label) }} |
{{ decimal_price($amount) }} @if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($grand_total) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|
@endforeach --}}
@php
$taxes = get_split_tax($order);
@endphp
@foreach ($taxes as $tax)
| {{ $tax['key'] }}
({{ $tax['percentage'] }})
|
@if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($tax['value']) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|
@endforeach
|
{{ translate('Shipping Cost') }}
|
@if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($order->delivery_charge) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|
|
{{ translate('Coupon Discount') }}({{ $order->discount_percentage }}%)
|
@if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($order->discount_rate) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|
| {{ translate('Grand Total') }} |
@if (auth('admin')->user()->country->symbol_position == 'left')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
{{ decimal_price($order->total_amount) }}
@if (auth('admin')->user()->country->symbol_position == 'right')
{{ auth('admin')->user()->country->currency_symbol }}
@endif
|