@if($o->status == 'delivered')
{{ __('staticwords.Your Product is deliverd on') }}
{{ date('d-m-Y @ h:i:a',strtotime($o->updated_at)) }}
@endif
@if($o->status == 'return_request')
@endif
@if($o->status == 'ret_ref')
@endif
@if($o->status == 'cancel_request')
{{ __('staticwords.Cancellation requested') }}
@endif
@if($o->status == 'canceled')
{{ __('Order is canceled') }}
@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')
{{ __('staticwords.Return Request
Intiated with Ref. No:') }}
[{{ $refundlog->txn_id }}]
@if($refundlog->method_choosen == 'bank')
{{ __('staticwords.Choosen bank:') }}
@if(!$refundlog->bank)
{{ __('staticwords.Choosen bank has been deleted !') }}
@else
{{$refundlog->bank->bankname}} (XXXX{{
substr($refundlog->bank->acno, -4) }})
@endif
@endif
@else
@if($refundlog->method_choosen == 'orignal')
@else
{{ __('staticwords.Refund Amount') }}
{{ $refundlog->amount }} is
{{$refundlog->status}} {{ __('staticwords.to your Requested
bank a/c') }} {{$refundlog->bank->bankname ?? 'Bank
account deleted'}}
(XXXX{{ substr($refundlog->bank->acno, -4) }})
@if($refundlog->status !='refunded')
{{ __('staticwords.and will be reflected to your a/c in 1-2
working days.') }}@endif
({{ __('staticwords.TXN ID:')
}}
{{ $refundlog->txn_id }})
.
@if($refundlog->txn_fee != '')
{{ __('staticwords.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')
@elseif($log->method_choosen == 'bank' && $log->is_refunded ==
'pending' )
{{ __('staticwords.Refund Amount') }} {{$log->amount}}
{{ __('staticwords.refelect14days') }}
({{ __('staticwords.refno') }} {{ $log->transaction_id
}})
@if(isset($log->bank))
{{ __('staticwords.Choosen bank:') }} {{
$log->bank->bankname }} ({{ $log->bank->acno
}})
@else
{{ __('staticwords.bankkdelete') }}
@endif
@elseif($log->method_choosen == 'bank' && $log->is_refunded ==
'completed' )
{{ __('staticwords.amt') }} {{$log->amount}}
{{ __('staticwords.refundbank') }}
@if($log->txn_fee !='')
{{ __('Transcation FEE:') }} {{
$log->txn_fee }}
@if(isset($log->bank))
{{ __('staticwords.Choosen bank:') }} {{
$log->bank->bankname }} ({{ $log->bank->acno
}})
@else
{{ __('Choosen Bank ac deleted !') }}
@endif
@endif
({{ __('staticwords.TXN ID:') }} {{
$log->transaction_id }})
@endif
@elseif(isset($orderlog))
@if(in_array($o->id, $orderlog->inv_id))
@if($orderlog->method_choosen == 'orignal')
{{ __('staticwords.Refund Amount111') }}
@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
{{ __('staticwords.is refunded to original source')
}} ({{ $o->order->payment_method }}).
{{ __('staticwords.reflect12days') }}
({{ __('staticwords.TXN ID:') }} {{
$orderlog->txn_id }})
@elseif($orderlog->method_choosen == 'bank' &&
$orderlog->is_refunded == 'pending' )
{{ __('staticwords.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
{{ __('staticwords.refelect14days') }}
({{ __('staticwords.refno') }} {{ $orderlog->txn_id
}})
@if(isset($orderlog->bank))
{{ __('staticwords.Choosen bank:') }} {{
$orderlog->bank->bankname }} ({{ $orderlog->bank->acno
}})
@else
{{ __('staticwords.bankmodifyordelete') }}
@endif
@endif
@if($orderlog->method_choosen == 'bank' &&
$orderlog->is_refunded == 'completed' )
@if(in_array($o->id, $orderlog->inv_id))
{{ __('staticwords.amt') }}
@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 {{ __('staticwords.refundbank') }}
@if($orderlog->txn_fee !='')
{{ __("Transcation FEE:") }} {{
$orderlog->txn_fee }}
@endif
({{ __('staticwords.TXN ID:') }} {{
$orderlog->txn_id }})
@php
$bank = $orderlog->bank;
@endphp
@if(isset($bank))
{{ __('staticwords.Choosen bank:') }} {{
$bank->bankname }} ({{ $bank->acno }})
@else
{{ __('staticwords.bankkdelete') }}
@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 != '')
{{ __('staticwords.ordershippedvia') }} {{
$o->courier_channel }} {{ __('staticwords.trackpkg') }} {{
$o->tracking_link }} {{__('staticwords.expecteddelivery'.
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)) }} •
{{ __('staticwords.expandmore') }}
@endif
@endif