@extends("admin/layouts.master") @section('title',"View Order : $inv_cus->order_prefix$order->order_id | ") @section("body") @php $orderlog = App\FullOrderCancelLog::where('order_id',$order->id)->first(); $i=0; @endphp
{{ date('d-m-Y | h:i A',strtotime($orderlog->updated_at)) }} • For Order #{{ $inv_cus->order_prefix.$order->order_id }} Few Items has been cancelled {{ $order->payment_method == 'COD' ? "." : "" }}
@if($orderlog->method_choosen == 'orignal')
and Amount {{ $orderlog->amount }}
is refunded to its orignal source with TXN ID [{{ $orderlog->txn_id }}].
@elseif($orderlog->method_choosen == 'bank')
@if($orderlog->is_refunded == 'completed')
and Amount {{ $orderlog->amount }}
is refunded to {{ $orderlog->user->name }}'s bank ac @if(isset($orderlog->bank->acno)) XXXX{{ substr($orderlog->bank->acno, -4) }} @endif with TXN/REF No {{ $orderlog->txn_id }} @if($orderlog->txn_fee !='')
(TXN FEE APPLIED) {{ $orderlog->txn_fee }} @endif.
@else
Amount {{ $orderlog->amount }}
is pending to {{ $orderlog->user->name }}'s bank ac @if(isset($orderlog->bank->acno)) XXXX{{ substr($orderlog->bank->acno, -4) }} @endif with TXN/REF. No: {{ $orderlog->txn_id }}.
@endif
@endif
{{ date('d-m-Y | h:i A',strtotime($orderlog->updated_at)) }} • For Order #{{ $inv_cus->order_prefix.$order->order_id }} has been cancelled {{ $order->payment_method == 'COD' ? "." : "" }}
@if($orderlog->method_choosen == 'orignal')
and Amount {{ $orderlog->amount }}
is refunded to its orignal source with TXN ID [{{ $orderlog->txn_id }}].
@elseif($orderlog->method_choosen == 'bank')
@if($orderlog->is_refunded == 'completed')
and Amount {{ $orderlog->amount }}
is refunded to {{ $orderlog->user->name }}'s bank ac @if(isset($orderlog->bank->acno)) XXXX{{ substr($orderlog->bank->acno, -4) }} @endif with TXN/REF No {{ $orderlog->txn_id }} @if($orderlog->txn_fee !='')
(TXN FEE APPLIED) {{ $orderlog->txn_fee }} @endif.
@else
Amount {{ $orderlog->amount }}
is pending to {{ $orderlog->user->name }}'s bank ac @if(isset($orderlog->bank->acno)) XXXX{{ substr($orderlog->bank->acno, -4) }} @endif with TXN/REF. No: {{ $orderlog->txn_id }}.
@endif
@endif
{{ date('d-m-Y | h:i A',strtotime($rlogs->updated_at)) }} • Item {{ $orivar2->products->name }}(@foreach($orivar2->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
) has been @if($rlogs->getorder->status == 'return_request')
requested for return
@else
@if($rlogs->getorder->status == 'ret_ref')
Returned and refunded
@else
{{ ucfirst($rlogs->getorder->status) }}
@endif
@endif
@if($rlogs->method_choosen == 'orignal')
and Amount {{ $rlogs->amount }}
is {{ $rlogs->status }} to its orignal source with TXN ID: {{ $rlogs->txn_id }}.
@elseif($rlogs->method_choosen == 'bank')
@if($rlogs->status == 'refunded')
and Amount {{ $rlogs->amount }}
is {{ $rlogs->status }} to {{ $rlogs->user->name }}'s bank ac @if(isset($rlogs->bank->acno)) XXXX{{ substr($rlogs->bank->acno, -4) }} @endif with TXN ID: {{ $rlogs->txn_id }} @if($rlogs->txn_fee !='')
(TXN FEE APPLIED) {{ $rlogs->txn_fee }} @endif.
@else
and Amount {{ $rlogs->amount }}
is pending to {{ $rlogs->user->name }}'s bank ac @if(isset($rlogs->bank->acno)) XXXX{{ substr($rlogs->bank->acno, -4) }} @endif with TXN ID/REF NO: {{ $rlogs->txn_id }} @if($rlogs->txn_fee !='')
(TXN FEE APPLIED) {{ $rlogs->txn_fee }} @endif.
@endif
@endif
{{ date('d-m-Y | h:i A',strtotime($cancellog->updated_at)) }} • Item {{ $orivar2->products->name }}(@foreach($orivar2->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
) has been canceled
@if($cancellog->method_choosen == 'orignal')
and Amount {{ $cancellog->amount }}
is refunded to its orignal source with TXN ID: {{ $cancellog->transaction_id }}.
@elseif($cancellog->method_choosen == 'bank')
@if($cancellog->is_refunded == 'completed')
and Amount {{ $cancellog->amount }}
is refunded to {{ $cancellog->user->name }}'s bank ac @if(isset($cancellog->bank->acno)) XXXX{{ substr($cancellog->bank->acno, -4) }} @endif with TXN ID {{ $cancellog->transaction_id }} @if($cancellog->txn_fee !='')
(TXN FEE APPLIED) {{ $cancellog->txn_fee }} @endif.
@else
and Amount {{ $cancellog->amount }}
is pending to {{ $cancellog->user->name }}'s bank ac XXXX{{ substr($cancellog->bank->acno, -4) }} with TXN ID/REF NO {{ $cancellog->transaction_id }} @if($cancellog->txn_fee !='')
(TXN FEE APPLIED) {{ $cancellog->txn_fee }} @endif.
@endif
@endif
Customer Information | Shipping Address | Billing Address |
---|---|---|
@php
$user = App\User::findorfail($order->user_id);
if($user->country_id !=''){
$c = App\Allcountry::where('id',$user->country_id)->first()->nicename;
$s = App\Allstate::where('id',$user->state_id)->first()->name;
$ci = App\Allcity::where('id',$user->city_id)->first()->name;
}
@endphp
{{$user->name}} {{ $user->email }} @if(isset($user->mobile)){{$user->mobile}} @endif @if(isset($c)){{$ci}}, {{ $s }}, {{ $c }} @endif |
{{ $address->name }}, {{ $address->phone }} {{ strip_tags($address->address) }}, @php $user = App\User::findorfail($order->user_id); $c = App\Allcountry::where('id',$address->country_id)->first()->nicename; $s = App\Allstate::where('id',$address->state_id)->first()->name; $ci = App\Allcity::where('id',$address->city_id)->first()->name; @endphp{{ $ci }}, {{ $s }}, {{ $ci }} {{ $address->pin_code }} |
{{ $order->billing_address['firstname'] }}, {{ $order->billing_address['mobile'] }} {{ strip_tags($order->billing_address['address']) }}, @php $c = App\Allcountry::where('id',$order->billing_address['country_id'])->first()->nicename; $s = App\Allstate::where('id',$order->billing_address['state'])->first()->name; $ci = App\Allcity::where('id',$order->billing_address['city'])->first()->name; @endphp{{ $ci }}, {{ $s }}, {{ $ci }} @if(isset($order->billing_address['pincode'])) {{ $order->billing_address['pincode'] }} @endif |
Order Summary | ||
---|---|---|
Total Qty: {{ $order->qty_total }} Order Total: {{ round($order->order_total,2) }} Payment Recieved: {{ ucfirst($order->payment_receive) }} |
Payment Method: {{ ucfirst($order->payment_method) }} Transcation ID: {{ $order->transaction_id }} |
Order Date: {{ date('d/m/Y @ h:i a', strtotime($order->created_at)) }} |
Order Details |
---|
Invoice No | Item Name | Qty | Status | Pricing & Tax | Total | # |
---|---|---|---|---|---|---|
{{ $inv_cus->prefix }}{{ $invoice->inv_no }}{{ $inv_cus->postfix }} |
@php
$orivar = App\AddSubVariant::withTrashed()->withTrashed()->findorfail($invoice->variant_id);
$varcount = count($orivar->main_attr_value);
$i=0;
$var_name_count = count($orivar['main_attr_id']);
unset($name);
$name = array();
$var_name;
$newarr = array();
for($i = 0; $i<$var_name_count; $i++){
$var_id =$orivar['main_attr_id'][$i];
$var_name[$i] = $orivar['main_attr_value'][$var_id];
$name[$i] = App\ProductAttributes::where('id',$var_id)->first();
}
try{
$url = url('details').'/'.$orivar->products->id.'?'.$name[0]['attr_name'].'='.$var_name[0].'&'.$name[1]['attr_name'].'='.$var_name[1];
}catch(Exception $e)
{
$url = url('details').'/'.$orivar->products->id.'?'.$name[0]['attr_name'].'='.$var_name[0];
}
@endphp
{{substr($orivar->products->name, 0, 25)}}{{strlen($orivar->products->name)>25 ? '...' : ""}}
(@foreach($orivar->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: {{$orivar->products->store->name}} Price: {{ round(($invoice->price),2) }} Tax: {{ round(($invoice->tax_amount/$invoice->qty),2) }} @if($invoice->variant->products->tax_r !='') ({{ $invoice->variant->products->tax_r.'% '.$invoice->variant->products->tax_name }} ) @endif |
{{ $invoice->qty }} | @if($invoice->status == 'delivered') {{ ucfirst($invoice->status) }} @elseif($invoice->status == 'processed') {{ ucfirst($invoice->status) }} @elseif($invoice->status == 'shipped') {{ ucfirst($invoice->status) }} @elseif($invoice->status == 'return_request') Return Request @elseif($invoice->status == 'returned') Returned @elseif($invoice->status == 'cancel_request') Cancelation Request @elseif($invoice->status == 'canceled') Canceled @elseif($invoice->status == 'refunded') Refunded @elseif($invoice->status == 'ret_ref') Returned & Refunded @else {{ ucfirst($invoice->status) }} @endif | Total Price: {{ round(($invoice->price*$invoice->qty),2) }} Total Tax: {{ round(($invoice->tax_amount),2) }} Shipping Charges: {{ round($invoice->shipping,2) }} (Price & TAX Multiplied with Quantity) |
{{ round($invoice->qty*$invoice->price+$invoice->tax_amount+$invoice->shipping,2) }}
(Incl. of TAX & Shipping) |
|
Subtotal | {{ round($order->order_total+$order->discount,2) }} | |||||
Coupon Discount | - {{ round($order->discount,2) }} ({{ $order->coupon }}) | |||||
Handling Charge | + {{ round($order->handlingcharge,2) }} | |||||
Grand Total | {{ round($order->order_total+$order->handlingcharge,2) }} |