@extends('master.front') @section('title') {{ __('Invoice') }} @endsection @section('content')
| {{ __('Products') }} | {{ __('Attribute') }} | {{ __('Quantity') }} | {{ __('Price') }} | ||
|---|---|---|---|---|---|
|
{{ $item['name'] }}
@if ($main_item) @if ($item['item_type'] == 'digital') @if ($order->payment_status == 'Paid') @if ($main_item['file_type'] == 'link') {{ __('Click Here') }} @else {{ __('Download') }} @endif @endif @endif @if ($item['item_type'] == 'license') @if ($order->payment_status == 'Paid') @if ($main_item['file_type'] == 'link') {{ __('Click Here') }} {{ __('License Information') }} : {{ $item['item_l_n'] }} : {{ $item['item_l_k'] }} @else {{ __('Download') }}{{ __('License Information') }} : {{ $item['item_l_n'] }} : {{ $item['item_l_k'] }} @endif @endif @endif @endif |
@if(isset($item['attribute']['names']))
@foreach($item['attribute']['names'] as $index => $name)
{{ $name }} : {{ $item['attribute']['option_name'][$index] }} @endforeach @else -- @endif |
{{ $item['qty'] }} | @php $total_price = ($item['main_price'] + $item['attribute_price']) * $item['qty']; @endphp @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ round($total_price * $order->currency_value, 2) }} @else {{ round($total_price * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||
| {{ __('Tax') }} | @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ round($order->tax * $order->currency_value, 2) }} @else {{ round($order->tax * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| {{ __('Coupon discount') }} ({{ $discount['code']['code_name'] }}) | @if ($setting->currency_direction == 1) -{{ $order->currency_sign }}{{ round($discount['discount'] * $order->currency_value, 2) }} @else -{{ round($discount['discount'] * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| {{ __('Shipping') }} | @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ round($shipping['price'] * $order->currency_value, 2) }} @else {{ round($shipping['price'] * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| {{ __('State Tax') }} | @if ($setting->currency_direction == 1) {{ isset($state['type']) && $state['type'] == 'percentage' ? ' (' . $state['price'] . '%) ' : '' }} {{ $order->currency_sign }}{{ round($order['state_price'] * $order->currency_value, 2) }} @else {{ isset($state['type']) && $state['type'] == 'percentage' ? ' (' . $state['price'] . '%) ' : '' }} {{ round($order['state_price'] * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| @if ($order->payment_method == 'Cash On Delivery') {{ __('Total amount') }} @else {{ __('Total amount due') }} @endif | @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ PriceHelper::OrderTotal($order) }} @else {{ PriceHelper::OrderTotal($order) }}{{ $order->currency_sign }} @endif | ||||