{% block body %}
<body>
{% for attendenceAction in attendenceActions %}
<table style='width:100%;' cellpadding='0' cellspacing='0' border='0'>
  <tr>  
    <td style='font-family: Arial; font-size: 18px; font-weight: bold'>  &nbsp;&nbsp;&nbsp;</td>  
    <td style='font-family: Arial; font-size: 18px; font-weight: bold'>   CROSS-WORLD</td>  
    <td align='right'    style='font-family: Arial; font-size: 16px; font-weight: bold; color:red;'>    CONFIDENTIAL</td>  
    <td align='right'     style='font-family: Arial; font-size: 16px; font-weight: bold'>    &nbsp;&nbsp;&nbsp;</td>   
  </tr>    
  <tr>   
        <td>    &nbsp;</td>    <td>   <br /><br /> {{ "now"|date("l, F j, Y","Asia/Dhaka") }} <br />    <br />   </td>   
        <td>       &nbsp;</td>   
        <td>       &nbsp;</td>    
  </tr>  
  <tr>    
        <td align='left'>         &nbsp;</td>     
        <td colspan='2' align='left' style='font-family: Arial; font-size: 12px'>        
            <strong>{{attendenceAction.Pin}}</strong><br />         {{attendenceAction.Emp_Name}}<br />        <br />        <br />        <br />       <br />    
        </td>     
        <td align='left'>        &nbsp;
        </td>    
  </tr>    
  <tr>      
     <td align='left'>        &nbsp;</td>    
     <td colspan='2' align='left'           style='font-family: Arial; font-size: 13px; font-weight: bold'>       
       Subject: Attendance report for the month of  {% if attendenceAction.Month == 1  %}  
                                                            January
                                                        {% elseif attendenceAction.Month == 2 %}
                                                            February
                                                        {% elseif attendenceAction.Month == 3 %}
                                                            March
                                                        {% elseif attendenceAction.Month == 4 %}
                                                            April
                                                        {% elseif attendenceAction.Month == 5 %}
                                                            May
                                                        {% elseif attendenceAction.Month == 6 %}
                                                            June
                                                        {% elseif attendenceAction.Month == 7 %}
                                                            July            
                                                        {% elseif attendenceAction.Month == 8 %}
                                                            August
                                                        {% elseif attendenceAction.Month == 9 %}
                                                            September    
                                                        {% elseif attendenceAction.Month == 10 %}
                                                            October
                                                        {% elseif attendenceAction.Month == 11 %}
                                                            November
                                                        {% else  %}
                                                            December
                                                        {% endif %}     {{ attendenceAction.FiscalYear }} 
     </td>    
     <td align='left'>        &nbsp;</td>    
  </tr>
  <tr>     
        <td align='left'>        &nbsp;</td>    
        <td colspan='2' align='left' style='font-size: 12px; font-family: Arial'>      
          <br />         Dear {% if attendenceAction.Sex == 'Male' %} Mr. {% else %} Mrs. {% endif %} {{ attendenceAction.Emp_Name }}<br />      <br />      
           HR department serves this letter as a reminder for your recent attendance      
            records which unfortunately failed to adhere to the ‘Working Hour &amp; Attendance      
             Policy’ of the Company. We would like to make it clear to you that all     
              employees’ attendance is very closely monitored and any unauthorized late    
                attendance, early out or leave make employee liable to adjust from his/her leave     
                 or salary if required. As such you will find your attendance and leave positions     
                  for the said month above in following table.    
            <br />     <br />     <br />   
        </td>  
        <td align='left'>      &nbsp;</td>   
  </tr>  
   <tr>    
        <td align='left'>       &nbsp;</td>  
        <td colspan='2' align='left' style='font-size: 12px; font-family: Arial;'>     
            <table style='width:100%;border: 1px solid #000000;'  cellpadding='0' cellspacing='0' border='0' > 
                <tr align='center'> 
                    <td style='border: 1px solid #000000;'>Working <br />Days<br /><br /></td>
                    <td style='border: 1px solid #000000;'>Holidays</td>
                    <td style='border: 1px solid #000000;'>Present</td> 
                    <td style='border: 1px solid #000000;'>Absent</td> 
                    <td style='border: 1px solid #000000;'>Late</td> 
                    <td style='border: 1px solid #000000;'>Early <br /> Out</td> 
                    <td style='border: 1px solid #000000;'>Late + Early<br />Out</td> 
                    <td style='border: 1px solid #000000;'>Exit<br />(No Data)</td>
                    <td style='border: 1px solid #000000;'>Leave</td>
                    <td style='border: 1px solid #000000;'>AL <br />Adjusted</td>
                    <td style='border: 1px solid #000000;'>CL<br />Adjusted</td>
                    <td style='border: 1px solid #000000;'>Salary<br />Adjusted<br /> (for day)</td>
                </tr>  
                <tr align='center'>   
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.working_day }}</td>   
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.holiday_day }}</td>   
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.working_day - attendenceAction.absent_day }}</td>   
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.absent_day }}</td>   
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.late_day }}</td>    
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.early_day }}</td>     
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.lateEarly_day }}</td>    
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.unothorize_day }} </td>    
                    <td style='border: 1px solid #000000;'>    {{ attendenceAction.leave_day }}</td>   
                    <td style='border: 1px solid #000000;'>    {{ leaveAdj['Al'] }}</td>  
                    <td style='border: 1px solid #000000;'>    {{ leaveAdj['Cl'] }}</td>  
                    <td style='border: 1px solid #000000;'>    {{ leaveAdj['Salary'] }}</td>   
                </tr>   
            </table>    
        </td> 
        <td align='left'>    &nbsp;</td>   
    </tr>  
    <tr>  
        <td align='left'>    &nbsp;</td>   
        <td colspan='2' align='left' style='font-size: 12px; font-family: Arial'>    
            <br />    Should you have issue or problems that you need to discuss, please do not     hesitate to contact us.<br />    <br />    <br />    <br />    <br />   
        </td>   
        <td align='left'>      &nbsp;</td>  
    </tr>  
    <tr>  
        <td align='left'>    &nbsp;</td>   
        <td colspan='2' align='left' style='font-size: 12px; font-family: Arial'>   <br />       <br />  <br />    </td>  
        <td align='left'>     &nbsp;</td>  
    </tr>  
    <tr>  
        <td align='left'>    &nbsp;</td>   
        <td colspan='2' align='left' style='font-size: 12px; font-family: Arial'>   <br /> <strong>  HR &amp; OD Department</strong><br />     ---------------------------------------------------------------------------------------- <br />    This is a system generated letter and doesn’t require signature
        </td>  
        <td align='left'>     &nbsp;</td>  
    </tr>  
    <tr>     
        <td align='left'>   &nbsp;</td>   
        <td colspan='2' align='left' style='font-size: 12px; font-family: Arial'>     &nbsp;
        </td> 
         <td align='left'>     &nbsp;</td>  
    </tr>  
</table> 
{% endfor %}
</body>
{% endblock %}