@extends('admin.layouts.master-soyuz') @section('title',__('Payout Detail | ')) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading') {{ __('Order Payment Details') }} @endslot @slot('menu2') {{ __("Order Payment Details") }} @endslot @slot('button')
@endslot @endcomponent{{ $error}}
@endforeach
{{ $genrals_settings->project_name }}
{{ $genrals_settings->address }}
Phone : {{ $genrals_settings->mobile }}
Email : {{ $genrals_settings->email }}
{{$seller->name}}
{{ $seller->store->address }}
{{ $seller->store->city['name'] }},
{{ $seller->store->state['name'] }},{{ $seller->store->country['nicename'] }}
Phone : @if(isset($seller->mobile)){{$seller->mobile}}@endif
Email : {{ $seller->email }}
{{__("Order ID :")}} #{{ $inv_cus->order_prefix.$order->singleorder->order->order_id }}
{{ __("Payment Due") }}
# | {{ __('Item') }} | {{ __("Qty") }} | {{ __("Delivered at") }} | {{__("Grand Total")}} | ||
---|---|---|---|---|---|---|
{{$order->singleorder->variant->products->name}}
({{ variantname($order->singleorder->variant) }})
{{ __("Sold By:") }} {{$order->singleorder->variant->products->store->name}} |
@else
{{$order->singleorder->simple_product->product_name}}
{{ __("Sold By:") }} {{$order->singleorder->simple_product->store->name}} |
@endif
{{$order->singleorder->qty}} | {{ date('d-M-Y | h:iA',strtotime($order->singleorder->updated_at)) }} | {{ $order->paid_in.' '.sprintf("%.2f",$order->orderamount) }} |
{{__("Payment Methods:")}}
{{ __("Subtotal:") }} | +{{ sprintf("%.2f", $order->subtotal) }}
({{__("Gift charge inluded if any")}}) |
---|---|
{{__("Tax:")}} | + {{ sprintf("%.2f",$order->tax) }} |
{{__("Shipping:")}} | + {{ sprintf("%.2f",$order->shipping) }} |
Total | + {{ sprintf("%.2f",$order->orderamount) }} |
{{__("Commission:")}} | - @php $commissions = App\CommissionSetting::all(); $commissionRate = 0; if($order->singleorder->variant){ foreach ($commissions as $commission) { if ($commission->type == "flat") { if ($commission->p_type == "f") { $price = $order->singleorder->variant->products->vender_price + $commission->rate; $offer = $order->singleorder->variant->products->vender_offer_price + $commission->rate; $sellPrice = $price; $sellofferPrice = $offer; $cursym = $defCurrency->currency_symbol; echo "$commissionRate = $commission->rate "; } else { $taxrate = $commission->rate; $price1 = $order->singleorder->variant->products->vender_price; $price2 = $order->singleorder->variant->products->vender_offer_price; $tax1 = ($price1 * (($taxrate / 100))); $tax2 = ($price2 * (($taxrate / 100))); $sellPrice = $price1 + $tax1; $sellofferPrice = $price2 + $tax2; $cursym = $defCurrency->currency_symbol; if (!empty($tax2)) { $commissionRate = $tax2; echo sprintf("%.2f",$commissionRate)." "; } else { $commissionRate = $tax1; echo sprintf("%.2f",$commissionRate)." "; } } } else { $cursym = $defCurrency->currency_symbol; $comm = App\Commission::where('category_id', $order->singleorder->variant->products->category_id)->first(); if (isset($comm)) { if ($comm->type == 'f') { $price = $order->singleorder->variant->products->vender_price + $comm->rate; $offer = $order->singleorder->variant->products->vender_offer_price + $comm->rate; $sellPrice = $price; $sellofferPrice = $offer; $commissionRate = $comm->rate; echo sprintf("%.2f",$commissionRate).""; } else { $taxrate = $comm->rate; $price1 = $order->singleorder->variant->products->vender_price; $price2 = $order->singleorder->variant->products->vender_offer_price; $tax1 = ($price1 * (($taxrate / 100))); $tax2 = ($price2 * (($taxrate / 100))); $price = $price1 + $tax1; $offer = $price2 + $tax2; $sellPrice = $price; $sellofferPrice = $offer; if (!empty($tax2)) { $commissionRate = $tax2; echo sprintf("%.2f",$commissionRate).""; } else { $commissionRate = $tax1; echo sprintf("%.2f",$commissionRate).""; } } } } } } if($order->singleorder->simple_product){ $commissionRate = $order->singleorder->simple_product->commission_rate; echo $commissionRate.' '; } /**/ @endphp |
{{__("Payable Amount:")}} | @php $total = round(($order->orderamount)-$commissionRate,2); @endphp{{ $total }} |