<?xml version="1.0"?>
<t name="Portal Timesheet Table" t-name="hr_timesheet.portal_timesheet_table">
        <table class="o_portal_my_doc_table table table-sm table-striped">
            <thead>
              <tr>
                <th>Date</th>
                <th>Employee</th>
                <th>Description</th>
                <th class="text-end" name="t_label">Time Spent</th>
              </tr>
            </thead>
            <tr t-foreach="timesheets" t-as="timesheet" valign="middle">
                <td><t t-esc="timesheet.date" t-options="{&quot;widget&quot;: &quot;date&quot;}"/></td>
                <td t-attf-title="#{timesheet.employee_id.name}"><t t-esc="timesheet.employee_id.name"/></td>
                <td><t t-esc="timesheet.name"/></td>
                <td class="text-end">
                    <span t-if="is_uom_day" t-esc="timesheet._get_timesheet_time_day()" t-options="{&quot;widget&quot;: &quot;timesheet_uom&quot;}"/>
                    <span t-else="" t-field="timesheet.unit_amount" t-options="{&quot;widget&quot;: &quot;float_time&quot;}"/>
                </td>
            </tr>
        </table>
        <div class="container_subtotal">
            <div class="row justify-content-end">
                <div t-attf-class="{{'col-auto' if report_type != 'html' else 'col-sm-2'}}">
                    <table class="table table-sm">
                        <tr>
                            <td><strong>Total Time Spent: </strong></td>
                            <td class="text-end">
                                <span t-if="is_uom_day" t-esc="timesheets._convert_hours_to_days(task.effective_hours)" t-options="{'widget': 'timesheet_uom'}"/>
                                <span t-else="" t-esc="task.effective_hours" t-options="{&quot;widget&quot;: &quot;float_time&quot;}"/>
                            </td>
                        </tr>
                        <tr>
                            <div t-if="task.subtask_effective_hours">
                                <td><strong>Time recorded on sub-tasks: </strong></td>
                                <td class="text-end">
                                    <span t-if="is_uom_day" t-esc="timesheets._convert_hours_to_days(task.subtask_effective_hours)" t-options="{&quot;widget&quot;: &quot;timesheet_uom&quot;}"/>
                                    <span t-else="" t-esc="task.subtask_effective_hours" t-options="{&quot;widget&quot;: &quot;float_time&quot;}"/>
                                </td>
                            </div>
                        </tr>
                        <tr>
                            <div t-if="task.total_hours_spent and task.subtask_effective_hours" name="total_time">
                                <t t-if="is_uom_day">
                                    <td><strong>Total Days: </strong></td>
                                    <td class="text-end">
                                        <span t-esc="timesheets._convert_hours_to_days(task.total_hours_spent)" t-options="{&quot;widget&quot;: &quot;timesheet_uom&quot;}"/>
                                    </td>
                                </t>
                                <t t-else="">
                                    <td><strong>Total Hours: </strong></td>
                                    <td class="text-end">
                                        <span t-esc="task.total_hours_spent" t-options="{&quot;widget&quot;: &quot;float_time&quot;}"/>
                                    </td>
                                </t>
                            </div>
                        </tr>
                        <tr t-attf-class="{{task.remaining_hours &lt; 0 and 'text-danger' or ''}}">
                            <div t-if="task.allocated_hours &gt; 0" name="allocated_time">
                                <td><strong>Time Remaining: </strong></td>
                                <td class="text-end">
                                    <span t-if="is_uom_day" t-esc="timesheets._convert_hours_to_days(task.remaining_hours)" t-options="{&quot;widget&quot;: &quot;timesheet_uom&quot;}"/>
                                    <span t-else="" t-esc="task.remaining_hours" t-options="{&quot;widget&quot;: &quot;float_time&quot;}"/>
                                </td>
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </t>
