<%include preamble.tex%>

\begin{document}

\pagestyle{empty}

\fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont

\parbox[t]{12cm}{
  <%company%>

  <%address%>}
\hfill
\parbox[t]{6cm}{\hfill <%source%>}

\vspace*{0.6cm}

<%text_amount%> \dotfill <%decimal%>/100 \makebox[0.5cm]{\hfill}

\vspace{0.5cm}

\hfill <%datepaid%> \makebox[2cm]{\hfill} <%net%>

\vspace{0.5cm}

<%name%>

<%address1%>

<%address2%>

<%city%>
<%if state%>
\hspace{-1mm}, <%state%>
<%end state%>
<%zipcode%>

<%country%>

\vspace{1.8cm}

<%memo%>

\vspace{0.8cm}

<%company%>

\vspace{0.5cm}

<%name%> \hfill <%datepaid%> \hfill For Pay Period: <%dateto%> \hfill <%source%>

\vspace{0.5cm}

\begin{tabularx}{.3\textwidth}[t]{@{}lX@{}}
  Regular & \dotfill <%regularpay%> \\
  Overtime & \dotfill <%overtimepay%> \\
  Travel & \dotfill <%travelpay%> \\
  Stat Holiday &  \dotfill <%holidaypay%> \\\hline
  Gross & \dotfill <%gross%> \\
\end{tabularx}
\hfill
\begin{tabularx}{.3\textwidth}[t]{@{}lX@{}}
  <%foreach deduction%>
  <%deduction%> & \dotfill <%amount%> \\
  <%end deduction%>
  \hline Withheld & \dotfill <%withheld%> \\
\end{tabularx}
\hfill
\begin{tabularx}{.3\textwidth}[t]{@{}lX@{}}
  Gross & \dotfill <%gross%> \\
  Withheld & \dotfill <%withheld%> \\
  Benefits & \dotfill <%benefits%> \\\hline
  Net &  \dotfill <%net%> \\
\end{tabularx}

\vspace{1cm}

\hfill
\begin{tabular}{lrr}
  Regular: & <%regular%> & <%regularrate%> \\
  Overtime: & <%overtime%> & <%overtimerate%> \\
  Travel: & <%travel%> & <%travelrate%> \\
  Stat Holiday: & <%holiday%> & \\
\end{tabular}


\end{document}

