|
|
|
|
{{config('languageString.to')}}
{{$name}} {{$address}} , {{$city}} {{$country}} {{$number}}
|
|
|
{{ config('languageString.invoice') }}
{{ config('languageString.id') }}#: {{$trxID}}
{{ config('languageString.issue_date') }} : {{now()}}
{{ config('languageString.status') }}:
{{$orderStatus}}
|
|
|
|
|
{{ config('languageString.name')}} |
{{ config('languageString.qty') }} |
{{ config('languageString.unit_price') }} |
{{ config('languageString.amount') }} |
@php
$productsDataArray = $data;
$totalPrice = 0;
$totalPriceAPP = 0;
@endphp
@foreach($SlDetailData as $var)
{{-- {{dd($SlHead->std_is_discount_active)}}--}}
{{$var['product']->name}} |
{{$var['std_qty']}} |
@if($var['std_is_discount_active'] == 1){{number_format($var['std_discounted_price'] * $SlHead['sth_user_order_currency_ex_rate'],2)}} @else {{number_format($var['std_price'] * $SlHead['sth_user_order_currency_ex_rate'],2)}} @endif |
@if($var['std_is_discount_active'] == 1){{number_format($var['std_discounted_price'] * $var['std_qty'] * $SlHead['sth_user_order_currency_ex_rate'],2)}} @else {{number_format($var['std_price'] * $var['std_qty'] * $SlHead['sth_user_order_currency_ex_rate'],2)}} @endif |
@php
$totalPrice += ($var['std_is_discount_active'] == 1)?$var['std_discounted_price'] * $var['std_qty'] * $SlHead['sth_user_order_currency_ex_rate'] : $var['std_price'] * $var['std_qty'] * $SlHead['sth_user_order_currency_ex_rate'];
$totalPriceAPP += ($var['std_is_discount_active'] == 1)?$var['std_discounted_price'] * $var['std_qty'] * $SlHead['sth_base_currency_ex_rate'] : $var['std_price'] * $var['std_qty'] * $SlHead['sth_base_currency_ex_rate'];
@endphp
@endforeach
{{-- @php--}}
{{-- $productsDataArray = $data;--}}
{{-- $totalPrice = 0;--}}
{{-- @endphp--}}
{{-- @foreach($productsDataArray as $var)--}}
{{-- --}}
{{-- {{$var['product_name']}} | --}}
{{-- {{$var['purchase_qty']}} | --}}
{{-- {{number_format($var['charge_price'],2)}} | --}}
{{-- {{number_format($var['charge_price'] * $var['purchase_qty'],2)}} | --}}
{{-- --}}
{{-- @php--}}
{{-- $totalPrice += $var['charge_price'] * $var['purchase_qty'];--}}
{{-- @endphp--}}
{{-- @endforeach--}}
|
|
{{config('languageString.sub_total')}}
{{config('languageString.shipping_fee')}}
{{config('languageString.total_amount')}}
{{config('languageString.total_amount_kwd')}}
|
{{number_format($totalPrice,2)}}
{{number_format((5 * $SlHead['sth_user_order_currency_ex_rate']),2)}}
{{$SlHead->OrderCurrency->code}}
{{number_format(($totalPrice+(5 * $SlHead['sth_user_order_currency_ex_rate'])),2)}}
{{$SlHead->baseCurrency->code}}
{{number_format(($totalPriceAPP+(5 * $SlHead['sth_base_currency_ex_rate'])),2)}}
|
|
|
|
|
@include('emails.emailFooter')