@endif
@if(isset($o->simple_product))
@if($o->status == 'delivered')
{{ __('Your Product is deliverd on') }}
{{ date('d-m-Y @ h:i:a',strtotime($o->updated_at)) }}
@endif
@if($o->status == 'return_request')
{{ __('Return Requested') }}
@endif
@if($o->status == 'ret_ref')
{{ __('Returned & Refunded') }}
@endif
@if($o->status == 'cancel_request')
{{ __('Cancellation requested') }}
@endif
@if($o->status == 'canceled')
{{ __('Cancelled') }}
@endif
@if($o->status == 'refunded' || $o->status == 'return_request' || $o->status == 'returned' ||
$o->status == 'ret_ref')
@php
$refundlog = $o->refundlog;
@endphp
@if(isset($refundlog))
@if($refundlog->status == 'initiated')
{{ __('Return Request Intiated with Ref. No:') }}
[{{ $refundlog->txn_id }}]
@if($refundlog->method_choosen == 'bank')
{{ __('Choosen bank:') }}
@if(!$refundlog->bank)
{{ __('Choosen bank has been deleted !') }}
@else
{{$refundlog->bank->bankname}} (XXXX{{ substr($refundlog->bank->acno, -4) }})
@endif
@endif
@else
@if($refundlog->method_choosen == 'orignal')
{{ __('Refund Amount') }} {{ $refundlog->amount }} {{ __('is') }}
{{$refundlog->status}} {{ __('to your Requested payment source') }} {{ $refundlog->pay_mode }}
{{ __('and will be reflected to your a/c in 1-2 working days.') }}
({{ __('TXN ID:') }}
{{ $refundlog->txn_id }})
@else
{{ __('Refund Amount') }}
{{ $refundlog->amount }} is
{{$refundlog->status}} {{ __('to your Requested bank a/c') }} {{$refundlog->bank->bankname ?? 'Bank account deleted'}}
(XXXX{{ substr($refundlog->bank->acno, -4) }}) @if($refundlog->status !='refunded')
{{ __('and will be reflected to your a/c in 1-2 working days.') }}@endif
(TXN ID:
{{ $refundlog->txn_id }})
.
@if($refundlog->txn_fee != '')
{{ __('Transcation FEE Charge:') }} {{ $refundlog->txn_fee }}
@endif
@endif
@endif
@endif
@endif
@php
$log = App\CanceledOrders::where('inv_id', '=', $o->id)
->where('user_id',Auth::user()->id)
->with('bank')
->first();
$orderlog = App\FullOrderCancelLog::where('order_id','=',$order->id)
->with('bank')
->first();
@endphp
@if(isset($log))
@if($log->method_choosen == 'orignal')
Refund Amount {{$log->amount}}
{{ __('is refunded to original source') }} ({{ $o->order->payment_method }}).
{{ __("IF it don't than it will take 1-2 days to reflect in your account.") }}
({{ __("TXN ID:") }} {{ $log->transaction_id }})
@elseif($log->method_choosen == 'bank' && $log->is_refunded == 'pending' )
{{ __('Refund Amount') }} {{$log->amount}}
{{ __('is proceeded to your bank ac, amount will be reflected to your bank ac in 14 working days.') }}
({{ __('Refrence No.') }} {{ $log->transaction_id }})
@if(isset($log->bank))
Choosen Bank: {{ $log->bank->bankname }} ({{ $log->bank->acno }})
@else
{{ __('Choosen Bank ac deleted !') }}
@endif
@elseif($log->method_choosen == 'bank' && $log->is_refunded == 'completed' )
{{ __('Amount') }} {{$log->amount}}
{{ __('is refunded to your bank ac.') }}
@if($log->txn_fee !='')
{{ __('Transcation FEE:') }} {{ $log->txn_fee }}
@if(isset($log->bank))
{{ __('Choosen Bank:') }} {{ $log->bank->bankname }} ({{ $log->bank->acno }})
@else
{{ __('Choosen Bank ac deleted !') }}
@endif
@endif
({{ __('TXN ID:') }} {{ $log->transaction_id }})
@endif
@elseif(isset($orderlog))
@if(in_array($o->id, $orderlog->inv_id))
@if($orderlog->method_choosen == 'orignal')
{{ __('Refund Amount') }}
@if($o->order->discount !=0)
@if($o->order->distype == 'product')
@if($o->discount != 0)
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
@elseif($o->order->distype == 'category')
@if($o->discount != 0)
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
@elseif($o->order->distype == 'cart')
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@endif
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
{{ __('is refunded to original source') }} ({{ $o->order->payment_method }}).
{{ __("IF it don't than it will take 1-2 days to reflect in your account.") }}
({{ __("TXN ID:") }} {{ $orderlog->txn_id }})
@elseif($orderlog->method_choosen == 'bank' && $orderlog->is_refunded == 'pending' )
{{ __("Refund Amount") }}
@if($o->order->discount !=0)
@if($o->order->distype == 'product')
@if($o->discount != 0)
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
@elseif($o->order->distype == 'category')
@if($o->discount !=0 || $o->discount !='')
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
@elseif($o->order->distype == 'cart')
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@endif
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
{{ __("is proceeded to your bank ac, amount will be reflected to your bank ac in 14 working days.") }}
({{ __('Refrence No.') }} {{ $orderlog->txn_id }})
@if(isset($orderlog->bank))
{{ __("Choosen Bank:") }} {{ $orderlog->bank->bankname }} ({{ $orderlog->bank->acno }})
@else
{{ __("Choosen Bank ac modified or deleted !") }}
@endif
@endif
@if($orderlog->method_choosen == 'bank' && $orderlog->is_refunded == 'completed' )
@if(in_array($o->id, $orderlog->inv_id))
{{ __('Amount') }} @if($o->order->discount
!=0)
@if($o->order->distype == 'product')
@if($o->discount != 0)
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
@elseif($o->order->distype == 'category')
@if($o->discount != 0)
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif
@else
{{ price_format(($o->qty*$o->price+$o->tax_amount+$o->shipping)-$o->discount,2) }}
@endif
@else
{{ price_format($o->qty*$o->price+$o->tax_amount+$o->shipping,2) }}
@endif {{ __("is refunded to your bank ac.") }}
@if($orderlog->txn_fee !='')
{{ __("Transcation FEE:") }} {{ $orderlog->txn_fee }}
@endif
({{ __("TXN ID:") }} {{ $orderlog->txn_id }})
@php
$bank = $orderlog->bank;
@endphp
@if(isset($bank))
{{ __("Choosen Bank:") }} {{ $bank->bankname }} ({{ $bank->acno }})
@else
{{ __("Choosen Bank ac deleted !") }}
@endif
@endif
@endif
@endif
@endif
@if($o->local_pick =='')
@if($o->status == 'pending' || $o->status == 'processed' || $o->status == 'shipped')
{{ __('staticwords.Track') }}
@if($o->courier_channel != '' && $o->tracking_link != '' && $o->exp_delivery_date != '')
{{__("Your order has been shipped via")}} {{ $o->courier_channel }} {{ __("you can track your package here with ") }} {{ $o->tracking_link }} {{__('and expected delivery date is :date',['date' => date("d-M-Y",strtotime($o->exp_delivery_date))] )}}.
@endif
@endif
@else
@if($o->status != 'delivered' && $o->status !='refunded' && $o->status !='ret_ref' && $o->status
!='returned' && $o->status != 'canceled' && $o->status != 'return_request')
{{ __('staticwords.lpickupdatetext') }}
{{ $o->loc_deliv_date == '' ? "Yet to update" : date('d/m/Y',strtotime($o->loc_deliv_date)) }} •
{{__('Expand more')}}
@endif
@endif