<%= t :dashboard %>

help
<%= t :sale_count %>
attach_money
<%= t :total_sale %>
person_add
<%= t :total_credit %>
credit_card
<%= t :total_card %>
<% if current_user.role == 'administrator' || current_user.role == 'manager' %>

dashboard<%= (t :top) + " " + (t :products) %>

<%= pie_chart @top_products %>

dashboard<%= (t :bottom) + " " + (t :products) %>

<%= pie_chart @bottom_products %>

av_timer<%= (t :hourly) + " " + (t :sale) %>

<%= column_chart @hourly_sales %>

assignment_ind<%= (t :staff) + " " + (t :sale) %>

<%= column_chart @employee_sales %>
<% if !@summ_sale.nil? %>
Sale
Total Receipt : <%= @summ_sale.total_receipt %>
Total Sale : <%= @summ_sale.total_amount %>
Total Discount : <%= @summ_sale.total_discount %>
Total Tax : <%= @summ_sale.total_tax %>
Grand Total : <%= @summ_sale.grand_total %>
<% if !(@total_payment_methods.nil?) %> <% @total_payment_methods.each do |payment| %> <% if !@sale_data[0].empty? %> <% if payment.payment_method == 'mpu' || payment.payment_method == 'visa' || payment.payment_method == 'master' || payment.payment_method == 'jcb' %> <% else %> <% end %> <% end %> <% end %> <% end %>
Card Sale : <% @sale_data.each do |data| %> <%= data["card"] %> <% end %>
<%= payment.payment_method.to_s.capitalize %> Sale : <% @sale_data.each do |data| %> <% pay_mth = payment.payment_method %> <%= data[""+pay_mth+""] %> <% end %>
<% end %>
Customer
<% if !@total_customer.nil? %> <% end %> <% if !@total_dinein.nil? %> <% end %> <% if !@total_takeaway.nil? %> <% end %> <% if !@total_other_customer.nil? %> <% end %> <% if !@total_membership.nil? %> <% end %>
Total Customer : <%= @total_customer.total_cus %>
Dine in : <%= @total_dinein.total_dinein_cus %>
Takeaway : <%= @total_takeaway.total_take_cus %>
Customer : <%= @total_other_customer.total_cus %>
Membership : <%= @total_membership.total_memb_cus %>
Order
<% if !@total_order.nil? %> <% end %> <% if !(@total_accounts.nil?) %> <% @total_accounts.each do |account| %> <% end %> <% end %> <% if !@top_items.nil? %> <% end %> <% if !@total_foc_items.nil? %> <% end %>
Total Order : <%= @total_order.total_order %>
<%= account.title %> (Account) : <% @account_data.each do |data| %> <% acc = account.title %> <%= data[""+acc+""] %> <% if !data[''+acc+''].nil? %> ( <%= data[''+acc+'_amount'] %> ) <% end %> <% end %>
Top Item : <%= @top_items.item_name %>
(<%= @top_items.item_total_price %>)
Total FOC Item : <%= @total_foc_items %>
<% end %>