{if $customer}{$customer.fname|htmlspecialchars} {$customer.lname|htmlspecialchars} - {/if} {trans key="orders.orders"}

{if $customer} {trans key="orders.edit_customer"} {/if}

{** search form starts here **}

{** search form ends here **}
{if $orders} {/if}
  {if $orders}
{foreach from=$orders item="order"} {*** COLOR NAME REFERENCE CHART: http://www.w3schools.com/html/html_colornames.asp ***} {if $order.status == 'New'} {assign var="color" value="LightGreen"} {elseif $order.status == 'Abandon'} {assign var="color" value="LightGray"} {elseif $order.status == 'Process'} {assign var="color" value="LightGreen"} {elseif $order.status == 'Backorder'} {assign var="color" value="LightYellow"} {elseif $order.status == 'Canceled'} {assign var="color" value="LightSalmon"} {elseif $order.status == 'Completed'} {assign var="color" value="LightSkyBlue"} {elseif $order.status == 'Failed'} {trans key="orders.status_options.Failed"} {assign var="color" value="OrangeRed"} {else} {assign var="color" value="White"} {/if} {/foreach}
{trans key="orders.order_id"} {trans key="orders.customer_name"} {trans key="orders.last_update"} {trans key="orders.fulfilled"} {trans key="orders.status"} {trans key="orders.payment"} {trans key="orders.amount"}
{if $order.status == "Abandon"}A{$order.oid}{else}{$order.order_num}{/if} {*START SAFETYNET POS*}{if $order.pos_order eq 'Yes'}POS Order{/if}{*END SAFETYNET POS*} {*START SAFETYNET AMAZON PAY*} {if $order.amazon_auth_id ne ''}Amazon Pay Order{/if} {*END SAFETYNET AMAZON PAY*} {$order.fname|gs} {$order.lname|gs} {$order.status_date_formatted} {if $order.fulfillment_status == 'partial'} {trans key="orders.fulfillment_options.partial"} {elseif $order.fulfillment_status == 'completed'} {trans key="orders.fulfillment_options.completed"} {else} {trans key="orders.fulfillment_options.pending"} {/if} {if $order.status == 'New'} {trans key="orders.status_options.New"} {elseif $order.status == 'Abandon'} {trans key="orders.status_options.Abandon"} {elseif $order.status == 'Process'} {trans key="orders.status_options.Process"} {elseif $order.status == 'Backorder'} {trans key="orders.status_options.Backorder"} {elseif $order.status == 'Canceled'} {trans key="orders.status_options.Canceled"} {elseif $order.status == 'Completed'} {trans key="orders.status_options.Completed"} {elseif $order.status == 'Failed'} {trans key="orders.status_options.Failed"} {/if} {if $order.payment_status == 'Pending'} {trans key="orders.payment_status_options.Pending"} {elseif $order.payment_status == 'Partial'} {trans key="orders.payment_status_options.Partial"} {elseif $order.payment_status == 'Received'} {trans key="orders.payment_status_options.Received"} {elseif $order.payment_status == 'Refunded'} {trans key="orders.payment_status_options.Refunded"} {elseif $order.payment_status == 'Declined'} {trans key="orders.payment_status_options.Declined"} {elseif $order.payment_status == 'Canceled'} {trans key="orders.payment_status_options.Canceled"} {elseif $order.payment_status == 'Error'} {trans key="orders.payment_status_options.Error"} {elseif $order.payment_status == 'Auth Expired'} {trans key="orders.payment_status_options.Auth_Expired"} {elseif $order.payment_status == 'Reversed'} {trans key="orders.payment_status_options.Reversed"} {elseif $order.payment_status == 'Review'} {trans key="orders.payment_status_options.Review"} {/if} {$order.total_amount_without_gift_cert|price} {trans key="common.edit"} {trans key="orders.invoice"} {trans key="orders.packing_slip"} {trans key="common.delete"}
{if $paginator->prevPage} {else} {/if} {if $paginator->nextPage} {else} {/if} {$paginator->itemsFrom}-{$paginator->itemsTo} {trans key="common.of"} {$paginator->itemsCount}
{else}
{trans key="orders.no_orders"}
{/if} {include file="templates/pages/order/modal-export.html"} {include file="templates/pages/order/modal-delete.html"} {include file="templates/pages/order/modal-bulk-update-status.html"} {include file="templates/pages/order/modal-bulk-fulfillment.html"}