<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
	<meta http-equiv="Content-type" content="application/vnd.ms-excel; charset=UTF-8">
</head>
<body>
<div class="row">
	<div class="col-md-12">
		<div class="margin-top-20">
			<div class="card">
				<div class="table-responsive">				
					<table class="table table-striped" id="items_table" border="0">
						<thead>
							<tr>
								<th colspan="7"> <%= t("views.right_panel.detail.from_date") %> : <%= @from.strftime("%Y-%b-%d") rescue '-' %>  - <%= t("views.right_panel.detail.to_date") %> : <%= @to.strftime("%Y-%b-%d")  rescue '-'%></th>
							</tr>
							<% if @shift_from %>
							<tr>
								<% if @shift_data.employee %>		
								<% cashier_name = !@shift_data.nil? ? @shift_data.employee.name : '-' %>
								<% end %>			
								<th colspan="7"> <%= t("views.right_panel.detail.shift_name") %> =  <%= @shift_from %> - <%= @shift_to %> ( <%= cashier_name %> )</th>
							</tr>
							<% end %>
							<tr>
								<th><%= t("views.right_panel.detail.receipt_no") %></th>
								<th><%= t :commissioners %></th>
								<th><%= t :table %></th>
								<th><%= t("views.right_panel.detail.in_time") %></th>
								<th><%= t("views.right_panel.detail.out_time") %></th>
							</tr>	
						</thead>
						<tbody>
							<% if !@induty_data.nil? %>
								<% induty_arr = Array.new %>
								<% @induty_data.each do |induty| %>
									<tr>
										<td><%= induty.receipt_no %></td>
										<td><%= induty.name %></td>
										<td><%= induty.dining_name %></td>
										<td><%= induty.in_time.strftime("%d-%m-%Y - %I:%M") %></td>
										<td><%= induty.out_time.strftime("%d-%m-%Y - %I:%M") %></td>
									</tr>
								<% end %>
							<% end %>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>