90 lines
3.3 KiB
Plaintext
Executable File
90 lines
3.3 KiB
Plaintext
Executable File
<div class="page-header">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
|
|
<li class="breadcrumb-item"><a href="<%= transactions_orders_path %>"><%= t("views.right_panel.detail.order") %></a></li>
|
|
<li class="breadcrumb-item active"><%= t :details %></li>
|
|
<span class="float-right">
|
|
<%= link_to 'Back', transactions_orders_path %>
|
|
</span>
|
|
</ol>
|
|
</div>
|
|
<hr>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
<div class="main-box-body clearfix p-l-5 p-r-5">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th><%= t :table %>/<%= t :room %></th>
|
|
<th><%= t("views.right_panel.detail.order_by") %></th>
|
|
<th><%= t("views.right_panel.detail.type") %></th>
|
|
<th><%= t :customer %></th>
|
|
<th><%= t("views.right_panel.detail.order_status") %></th>
|
|
<th><%= t("views.right_panel.detail.order_date") %></th>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td><%= @dining.type %>-<%= @dining.name %></td>
|
|
<td> <%= @order.waiters rescue '-' %> </td>
|
|
<td><%= @order.order_type %></td>
|
|
<td><%= @order.customer.name rescue '-' %></td>
|
|
<td><%= @order.status %></td>
|
|
<td> <%= @order.date.utc.getlocal.strftime("%d-%m-%Y %I:%M %p") %> </td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<h5><%= t("views.right_panel.detail.order_items") %></h5>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("views.right_panel.detail.item") +" "+ t("views.right_panel.detail.name") %></th>
|
|
<th><%= t("views.right_panel.detail.qty") %></th>
|
|
<th><%= t("views.right_panel.detail.unit_price") %></th>
|
|
<th><%= t("views.right_panel.detail.total_price") %></th>
|
|
<!-- <th>Option</th> -->
|
|
<th><%= t("views.right_panel.detail.status") %></th>
|
|
<!-- <th><%= t("views.right_panel.detail.order_by") %></th> -->
|
|
<th><%= t("views.right_panel.detail.created_at") %></th>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @order.order_items.each do |order| %>
|
|
|
|
<tr>
|
|
<td><%= order.item_name %></td>
|
|
<td><%= order.qty %></td>
|
|
<td><%= order.price %></td>
|
|
<td><%= order.qty * order.price %></td>
|
|
<!-- <td> <%= order.options %> </td> -->
|
|
<td> <%= order.order_item_status %> </td>
|
|
<!-- <td> <%= order.item_order_by %> </td> -->
|
|
<td> <%= order.created_at.strftime("%d-%m-%Y") %> </td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- <div class="col-lg-1 col-md-1 col-sm-1">
|
|
<a href="<%= transactions_orders_path%>" class="btn btn-primary">
|
|
<i class="fa fa-arrow-left fa-xs"></i> Back
|
|
</a>
|
|
</div> -->
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|