<div class="page-header">
  <ul class="breadcrumb">
    <li><a href="<%= origami_root_path %>">Home</a></li>
    <li><a href="<%= origami_in_duties_path %>">In Duties</a></li>

    <span style="float: right">
  </span>
  </ul>
</div>
<div class="card">
  <div class="card-block">
    <h4 class="card-title">In Duty</h4>
    <table class="table">

      <tbody>

      <tr>
        <td style="width:20%">Dining Facility Name</td>
        <td><%= @in_duty.dining_facility.name%></td>
      </tr>
      <tr>
        <td style="width:20%">Commissioner Name</td>
        <td>
          <%= @in_duty.commissioner.name rescue '-' %>
        </td>
      </tr>
      <tr>
        <td style="width:20%">In Time</td>
        <td><%= @in_duty.in_time.strftime("%Y-%m-%d/%I:%M %p") rescue '-' %></td>
      </tr>
      <tr>
        <td style="width:20%">Out Time</td>
        <td><%= @in_duty.out_time.strftime("%Y-%m-%d/%I:%M %p") rescue '-' %></td>
      </tr>
      </tbody>
    </table>
    <%= link_to 'Back', origami_in_duties_path, class: 'btn btn-success' %>
    <%= link_to t("views.btn.edit"), edit_origami_in_duty_path(@in_duty), class: 'btn btn-info' %>
    <%= link_to t("views.btn.delete"), origami_in_duty_path(@in_duty), method: :delete, data: {confirm: 'Are you sure?'}, class: 'btn btn-danger' %>
  </div>
</div>

</div>
