@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::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
# Item Qty Delivered at Grand Total
{{$order->singleorder->variant->products->name}} @php $i=0; $varcount = count($order->singleorder->variant->main_attr_value); @endphp (@foreach($order->singleorder->variant->main_attr_value as $key=> $orivars) @php $getattrname = App\ProductAttributes::where('id',$key)->first()->attr_name; $getvarvalue = App\ProductValues::where('id',$orivars)->first(); @endphp @if($i < $varcount) @if(strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null) @if($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour") {{ $getvarvalue->values }}, @else {{ $getvarvalue->values }}{{ $getvarvalue->unit_value }}, @endif @else {{ $getvarvalue->values }}, @endif @else @if(strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null) @if($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour") {{ $getvarvalue->values }} @else {{ $getvarvalue->values }}{{ $getvarvalue->unit_value }} @endif @else {{ $getvarvalue->values }} @endif @endif @endforeach )
Sold By: {{$order->singleorder->variant->products->store->name}}
{{$order->qty}} {{ date('d-M-Y | h:iA',strtotime($order->singleorder->updated_at)) }} {{ $order->paid_in.' '.$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) }}
    Tax + {{ sprintf("%.2f",$order->tax) }}
    Commission: - @php $commissions = App\CommissionSetting::all(); $commissionRate = 0; 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).""; } } } } } /**/ @endphp
    Total:{{ $total }}
    @csrf @php $amount = Crypt::encrypt(round($order->orderamount-$commissionRate,2)); @endphp
    @endsection @section('custom-script') @endsection