@extends('admin.layouts.master') @section('title','Payout Detail | ') @section('body')
Order Payment Details
From
{{ $genrals_settings->project_name }}
{{ $genrals_settings->address }}
Phone: {{ $genrals_settings->mobile }}
Email: {{ $genrals_settings->email }}
@php $seller = App\User::withTrashed()->findorfail($order->sellerid); @endphp To
{{$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 }}
Invoice #{{ $inv_cus->prefix.$order->singleorder->inv_no.$inv_cus->postfix }}
Order ID: #{{ $inv_cus->order_prefix.$order->singleorder->order->order_id }}
Payment Due
@if($order->singleorder->variant) @else @endif
# Item Qty Delivered at Grand Total
{{$order->singleorder->variant->products->name}} ({{ variantname($order->singleorder->variant) }})
Sold By: {{$order->singleorder->variant->products->store->name}}
{{$order->singleorder->simple_product->product_name}}
Sold By: {{$order->singleorder->simple_product->store->name}}
{{$order->singleorder->qty}} {{ date('d-M-Y | h:iA',strtotime($order->singleorder->updated_at)) }} {{ $order->paid_in.' '.sprintf("%.2f",$order->orderamount) }}

Payment Methods:

Paypal bank_transfer
Note:
@if($order->singleorder->order->handlingcharge ==0) @if($order->singleorder->order->payment_method !='COD')
  • Handling fee {{ $order->paid_in }} {{ sprintf("%.2f",$order->singleorder->order->handlingcharge) }} already paid out in your account
  • @endif @endif
  • Paypal payout fee additionally applied by Paypal at Transcation time
  • Please refer to this for payout fees for following payment gatways:
  • @php $total = round(($order->orderamount)-$commissionRate,2); @endphp
    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:{{ $total }}
    @csrf @php $amount = Crypt::encrypt(round($order->orderamount-$commissionRate,2)); @endphp
    @endsection @section('custom-script') @endsection