{{ __('Order Status') }}
@php $statusClass= ''; if(isset($order->estimate_start_date) && $order->status == 'processing' && (count($order->invoices) > 0) && $order->estimate_start_date <= date('Y-m-d H:i:s') && $order-> invoices[0]->state == 'paid'){ $statusClass = 'badge badge-sm badge-info'; } elseif($order->status == 'processing' && (count($order->invoices) > 0) && ($order->invoices[0]->state == 'pending')) { $statusClass='badge badge-sm badge-warning'; } elseif($order->status == 'processing' || $order->status == 'completed'){ $statusClass = 'badge badge-sm badge-success'; } elseif($order->status == 'canceled' || $order->status == 'fraud'){ $statusClass = 'badge badge-sm badge-danger'; } elseif($order->status == 'pending' || $order->status == 'pending_payment'){ $statusClass = 'badge badge-sm badge-warning'; } elseif($order->status == 'closed'){ $statusClass='badge badge-sm badge-info'; } @endphp @if(isset($order->estimate_start_date) && $order->status == 'processing' && (count($order->invoices) > 0) && $order->invoices[0]->state == 'paid' && $order->estimate_start_date <= date('Y-m-d H:i:s')) {{ __('Shipping') }} @elseif($order->status == 'processing' && (count($order->invoices) > 0) && ($order->invoices[0]->state == 'pending')) {{ __('Pending Payment') }} @else {{ $order->status_label }} @endif{{ __('Schedule') }}
calendar_month{{ __('Billing') }}
edit{{ __('Shipping') }}
edit{{ __('admin::app.sales.orders.payment-method') }}
credit_card_gearCustomer History
Order History
-
@if (count(
$order->comments()->orderBy('id', 'desc')->get()))
@foreach ($order->comments()->orderBy('id', 'desc')->get() as $comment)
@if($comment->created_by == 2)
-
{{ $comment->created_by_user_name ? $comment->created_by_user_name . ' -' : '' }} {{$comment->comment }}
@elseif($comment->created_by == 1)
-
{{ $comment->created_by_user_name ? $comment->created_by_user_name . ' -' : '' }} {{$comment->comment }}
@endif
@endforeach
@else
- No Record Found @endif
{{ __('admin::app.sales.orders.SKU') }} | {{ __('admin::app.sales.orders.product-name') }} | @if(auth()->guard('admin')->user()->role->name == 'Administrator' || auth()->guard('admin')->user()->role->name == 'Manager'){{ __('Cost') }} | @endif{{ __('Price') }} | |
---|---|---|---|---|
@if($item->product->attribute_family_id != 1)
@if (isset($item->product) && !empty($item->product) &&
count($item->product->images) > 0)
|
@if($item->product->attribute_family_id != 1)
{{ $item->getTypeInstance()->getOrderedItem($item)->sku }} @php $producthasStock = ''; if($item->product){ $producthasStock =$item->product->inventories() ->where('inventory_source_id', 1)->where('qty','>','0')->first(); } @endphp @if($order->status != 'completed' && isset($item->product) && $item->product->attribute_family_id == 4) @if($item->canInvoice()) Not Confirmed @elseif(!$item->canInvoice() && !empty($producthasStock)) Received @elseif(!$item->canInvoice() && empty($producthasStock))
Purchased
@endif
@endif
@endif
|
{{ $item->name }}
@if ($key + 1 != $items_count)
@endif @if (isset($item->additional['attributes'])) @endif |
@if(auth()->guard('admin')->user()->role->name == 'Administrator' ||
auth()->guard('admin')->user()->role->name == 'Manager' )
@php
$cost = 0;
if(isset($item->product) &&
isset($item->product->attribute_values)){
$cost =
$item->product->attribute_values->where('attribute_id','12')->pluck('float_value')->first();
}
@endphp
{{ core()->formatBasePrice($cost) ?? number_format('0', 2) }} @if(isset($item->product) && $item->product->attribute_family_id == 4)({{ number_format('0', 2) }}%) @endif |
@endif
{{ core()->formatBasePrice($item->base_total + $item->base_tax_amount) }} @if(isset($item->product) && $item->product->attribute_family_id == 4) @php $price = $item->base_total + $item->base_tax_amount ?? 0; $cost = $item->product->attribute_values->where('attribute_id','12')->pluck('float_value')->first(); $val = $price > 0 ? ($price - $cost)/($price) * 100 : 0; @endphp ({{ number_format($val, 2) }}%) @endif |
{{ __('admin::app.sales.orders.subtotal') }} | - | {{ core()->formatBasePrice($order->base_sub_total) }} | |
{{ __('admin::app.sales.orders.shipping-handling') }} | - | {{ core()->formatBasePrice($order->base_shipping_amount) }} | |
{{ __('admin::app.sales.orders.discount') }} @if ($order->coupon_code) ({{ $order->coupon_code }}) @endif | - | ({{ core()->formatBasePrice($order->base_discount_amount) }}) | |
{{ __('admin::app.sales.orders.tax') }} {{ number_format($order->tax_percentage, 2) }} % | - | {{ core()->formatBasePrice($order->base_tax_amount) }} | |
{{ __('admin::app.sales.orders.grand-total') }} | - | {{ core()->formatBasePrice($order->base_grand_total) }} | |
{{ __('Paid By wallet') }} | - | {{ core()->formatBasePrice($order->base_grand_total - $remain) }} | |
{{ __('Remaining Grand Total') }} | - | {{ core()->formatBasePrice($remain) }} | |
{{ __('admin::app.sales.orders.total-paid') }} | - | {{ core()->formatBasePrice($order->base_grand_total_invoiced) }} | |
{{ __('admin::app.sales.orders.total-refunded') }} | - | {{ core()->formatBasePrice($order->base_grand_total_refunded) }} | |
{{ __('admin::app.sales.orders.total-due') }} | - | @if ($order->base_total_due > 0){{ core()->formatBasePrice($remain) }} | @elseif ($duePayment > 0){{ core()->formatBasePrice($duePayment) }} | @endif
{{ __('admin::app.sales.orders.total-due') }} | - | {{ core()->formatBasePrice($duePayment) }} |
{{ __('admin::app.sales.shipments.id') }} | {{ __('admin::app.sales.shipments.date') }} | {{ __('admin::app.sales.shipments.carrier-title') }} | {{ __('admin::app.sales.shipments.tracking-number') }} | {{ __('admin::app.sales.shipments.total-qty') }} | {{ __('admin::app.sales.shipments.action') }} | |
---|---|---|---|---|---|---|
#{{ $shipment->id }} | {{ $shipment->created_at }} | {{ $shipment->carrier_title }} | {{ $shipment->track_number }} | {{ $shipment->total_qty }} | ||
{{ __('admin::app.common.no-result-found') }} | ||||||
{{ date('m/d h:i A', strtotime($customerHistory->date_created)) }} : {{ $customerHistory->subject }}