@php use App\Course; use App\OrderItems; use App\OrderItemsRefund; use App\VirtualCourse; use App\Enumerables\Currency; /** * @var Course|VirtualCourse $course * @var OrderItems $newOrder * @var OrderItems $order * @var OrderItemsRefund $refund */ $currency = $order->currency; $currencySign = Currency::CURRENCY_SIGN[$currency]; $discountedPrice = $course->currentPriceListPrice($currency); $applicationFees = $course->thirdPartyFee($currency); $serviceFees = $course->originalPriceListPrice($currency); $total = $applicationFees + $discountedPrice; $discount = $serviceFees - $discountedPrice; $newCurrencySign = Currency::CURRENCY_SIGN[$newOrder->currency]; $newDiscount = $newOrder->discountValue + $newOrder->discountEvent; $newApplicationFees = $newOrder->applicationFees; $newServiceFees = $newOrder->serviceFees; $newDepositFees = $newOrder->depositFees; $totalServiceFee = $newDepositFees + $newServiceFees; $refundTotal = $refund->applicationFeesRefunded + $refund->depositFeesRefunded + $refund->serviceFeesRefunded; $newTotal = $newApplicationFees + $newServiceFees + $newDepositFees; $isCurrencyChanged = ($newOrder->currency != $order->currency) ? 1 : 0; $currency = Currency::CURRENCY_STRING[$currency]; @endphp

{{__('Current course information')}}

{{__('Order Number')}}
{{$order->details->displayOrderNo}}
{{__('Order Time')}}
{{$order->details->order_time}}
{{__('Third-party Application Fee')}}
{{$currencySign.$order->applicationFees}}
{{__('Service Fee')}}
{{$currencySign.$order->serviceFees}}
{{__('Deposit')}}
{{$currencySign.$order->depositFees}}
{{__('Total')}}
{{$currencySign.$order->totalFees}}
{{__('Discount')}}
{{$currencySign.number_format($order->discountValue + $order->discountEvents,2)}}
{{__('Paid')}}
{{$currencySign.$order->totalPaid}}
{{__('Currency')}}
{{$currency}}
{{__('Payment Method')}}
{{$order->paymentMethod}}

{{__('Changed Course Information')}}

{{$newCourse->getUniversity()->uniName}}
{{$newCourse->courseName}}
Start Date: {{$newOrder->startDate}}
{{__('Application Fee')}}
{{$newCurrencySign.$newApplicationFees}}
{{__('Service Fee/Deposit')}}
@if($newDiscount != 0) {!!$newCurrencySign.''.$totalServiceFee.' / '.($totalServiceFee - $newDiscount)!!} @else {{$newCurrencySign.$totalServiceFee}} @endif
{{__('Total')}}
{{$newCurrencySign.$newTotal}}
{{__('Discount')}}
{{$newCurrencySign.$newDiscount}}
{{__('Refund amount')}}
{{$currencySign.number_format($refundTotal, 2, '.',',')}}
@if(!$isCurrencyChanged)
{{__('Payable amount')}}
{{$newCurrencySign.number_format($newTotal - $newDiscount - $refundTotal, 2, '.',',')}}
@endif
@if($isCurrencyChanged)
{{__('Exchange Rate')}}
{{$refund->exchange_rate}}
{{__('New Refund amount')}}
{{$newCurrencySign.number_format(($refundTotal*$refund->exchange_rate), 2, '.',',')}}
{{__('Payable amount')}}
{{$newCurrencySign.number_format($newTotal - $newDiscount - ($refundTotal*$refund->exchange_rate), 2, '.',',')}}
@endif
courseChangeType == 'none') checked="checked" @endif disabled="disabled" >
courseChangeType == 'charge') checked="checked" @endif disabled="disabled">
courseChangeType == 'refund') checked="checked" @endif disabled="disabled">