anchor.diff:  <% if q == "orders" 
     orders = Order.where(user_id: params[:id]).where.not(status: "in cart").order(submitted: :desc).paginate(page: params[:page], per_page: 10) %>
     
  +  
  +  <%= link_to new_admin_store_order_path(user_id: params[:id]), class: "btn btn-default btn-sm pull-right" do %>
  +    <i class="fa fa-plus"></i> New order
  +  <% end %>
  +  
     <%= will_paginate orders %>
     <table class="table table-striped table-condensed">
     	<tr>
  +      <th></th>
     		<th>Order #</th>
         <th>Sales Channel</th>
     		<th>Date</th>
     		<th>Customer</th>
     		<th>Location</th>
     		<th>Amount</th>
  +      <th></th>
     		<th>Status</th>
     	</tr>
  -  	<% orders.each do |order| %>
  -  	<tr>
  -  		<td>
  -        <%= link_to order.id, admin_store_order_path(order) %>
  -        <% if order.auto_ship %>
  -          &nbsp; <i class="fa text-success fa-refresh"></i>
  -        <% end %>
  -      </td>
  -      <td><%= order.sales_channel %></td>
  -  		<td><%= systime order.submitted if order.submitted%></td>
  -  		<td><%= order.shipping_name || order.billing_name %></td>
  -  		<td><%= order.shipping_city %>, <%= order.shipping_state %></td>
  -  		<td><%= number_to_currency(order.total) %></td>
  -  		<td><%= order_status(order) %></td>
  -  	</tr>
  -  	<% end %>
  -  </table>
  -  
  -  <%= link_to new_admin_store_order_path(user_id: params[:id]), class: "btn btn-default btn-sm" do %>
  -    <i class="fa fa-plus"></i> New order
  -  <% end %>
  +    <%= render partial: 'admin/store/orders/order', collection: orders%>
  +  </table>
  +  
  +  <%= render 'admin/shared/table_summary', data: orders%>
  +  
     
   <% elsif q == "autoship" 
     items = AutoShipItem.where(user_id: params[:id]) %>
  
positive.code:   <table class="table table-striped table-condensed">
    	<tr>
    		<th>Item ID</th>
        <th>Description</th>
    		<th class="text-center">Qty</th>
        <th class="text-center">Frequency</th>
    		<th class="text-center">Last Shipped</th>
    		<th class="text-center">Next Ship Date</th>
    	</tr>
    	<% items.each do |item| %>
    	<tr>
    		<td><%= link_to item.item_id, admin_store_product_path(item.product_id) %></td>
        <td><%= item.description %></td>
    		<td class="text-center"><%= item.quantity %></td>
        <td class="text-center"><%= pluralize(item.days, "day") %></td>
    		<td class="text-center"><%= item.last_shipped %></td>
    		<td class="text-center"><%= item.next_ship_date %></td>
    	</tr>
    	<% end %>
    </table>
    <%= link_to "new autoship item", new_admin_store_auto_ship_item_path(user_id: params[:id]), class: "btn btn-default btn-sm" %>
  
  <% elsif q == "tickets" %>
  
negative.code:       <th>ID</th>
        <th>Date</th>
        <th>Customer</th>
        <th></th>
        <th>Item</th>
        <th>Method</th>
        <th>Memo</th>
        <th>Amount</th>
      </tr>
      <%= render partial: 'admin/billing/payments/payment', collection: payments %>
    </table>
    
    
  