@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')
{{ __("Back")}}
@endslot ​ @endcomponent
@if ($errors->any()) @endif
{{__("Payout Slip for Order Item")}} #{{ $inv_cus->prefix.$order->singleorder->inv_no.$inv_cus->postfix }} Date: {{ date('d/m/Y',strtotime($order->created_at)) }}
{{__("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:")}} {{ __("Paypal Payouts") }}
  • @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