\RequirePackage{luatex85}
\documentclass[border = 2pt]{standalone}
\input{../../commons/header}
\input{definitions.tex}
\input{reportConfig.tex}
\input{reportCardConfig.tex}
\input{reportCardDictionary.tex}

\begin{document}
	\ifdefstring{\reportLang}{english}{\selectlanguage{english}}{}
	\ifdefstring{\reportLang}{polish}{\selectlanguage{polish}}{}
	
	\noindent
	\footnotesize
	\begin{tabularx}{16,5cm}{ | X | }
		\hline
		%%%%%%%%%%%%%%%%%%%%%% 1 wiersz %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\noindent\parbox[c]{\hsize}{ \vspace*{4mm} 			
			\begin{tabularx}{\hsize}{   p{.07\linewidth}   p{.55\linewidth}  p{.3\linewidth}  }
				\noindent\parbox[l]{\hsize}{\includegraphics[width=0.9\hsize]{../../commons/titlePage/logoAGH}} & 
				\noindent\parbox[l]{\hsize}{ \vspace*{1mm} 
					\textbf{\GetTranslation{daneUczelni} \vspace*{1mm}}} & 
				\noindent\parbox[l]{\hsize}{ \vspace*{2mm} \GetTranslation{zleceniodawca}\\ \textbf{\zleceniodawca} \vspace*{1mm}} \\
			\end{tabularx}
		\vspace*{1mm}}\\     \hline
		
		%%%%%%%%%%%%%%%%%%%%%%% 2 wiersz %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\noindent\parbox[c]{\hsize}{\centering \vspace*{4mm} \textbf{\large  \GetTranslation{tytul} \\ \small \GetTranslation{podTytul}} \vspace*{4mm}} \\  \hline
		
		%%%%%%%%%%%%%%%%%%%%%%% 3 wiersz %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\noindent\parbox[c]{\hsize}{ \vspace*{4mm} 	
			\begin{tabularx}{\textwidth}{   p{.5\linewidth}   p{.5\linewidth}  }
				%%%%%%%%%%%%%%%%%%%%%%% lewa komĂłrka %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
				\noindent\parbox[l]{\hsize}{\vspace*{1mm} 
					\textbf{\GetTranslation{nazwaProbki} \\
					\GetTranslation{probka} \\[2em]
					\GetTranslation{producent} \\
					\ifdefempty{\producent}{\zleceniodawca}{\producent}} \\[2em]
					\begin{figure}[H]
						\centering
						\includegraphics[width=0.7\linewidth]{\zdjecieProbki}
					\end{figure}
				\vspace*{1mm}}
			& 	%%%%%%%%%%%%%%%%%%%%%%% prawa komĂłrka %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%		
				\noindent\parbox[l]{\hsize}{\vspace*{1mm} 
				\begin{tabularx}{0.95\hsize}{ X >{\raggedleft \arraybackslash \bf}p{1.8cm} }
					\GetTranslation{dataPomiaru} &  \dataPomiaru \\[2em]
					\textbf{\GetTranslation{probkaPomiarowa}} & \\
					\ifdefstring{\tubeSize}{Small}{}{\GetTranslation{probkaPomiarowaLF} & $\phi 100 x \gruboscProbki $ \\}
					\ifdefstring{\tubeSize}{Large}{}{\GetTranslation{probkaPomiarowaHF} & $\phi 29 x \gruboscProbki $} \\ [2em]
					\textbf{\GetTranslation{warunkiPomiaru}} &  \\
					\GetTranslation{temp} $t[^{\circ} C$]: & \temperatura\\
					\GetTranslation{wilgotnosc}[\%]: & \wilgotnosc\\
					\GetTranslation{liczbaUsrednien} & \liczbaUsrednien \\					
				\end{tabularx}
				\vspace*{1mm}}
			\end{tabularx}
		\vspace*{1mm}}\\
	
		%%%%%%%%%%%%%%%%%%%%%% 4 wiersz %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\noindent\parbox[c]{\hsize}{ \vspace*{4mm} 			
		\begin{tabularx}{\hsize}{   p{.32\linewidth}   p{.65\linewidth}  }
			\noindent\parbox[l]{\hsize}{
				\input{reportCardDataTable}
			} & 
			\noindent\parbox[l]{\hsize}{ \vspace*{1mm} 
				\input{../../commons/reportCardChart}
				\begin{description}[noitemsep,topsep=0pt]						
					\item[$\boldsymbol{\alpha}$] \GetTranslation{opisAlpha}
					\item[$\boldsymbol{f}$~[Hz\char93 ] \GetTranslation{opisF}
				\end{description}	 
			}
		\end{tabularx}
		\vspace*{1mm}}\\ \hline
	
	%%%%%%%%%%%%%%%%%%%%%% 5 wiersz %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		\noindent\parbox[c]{\hsize}{			
		\begin{tabularx}{\hsize}{   p{.3\linewidth} |  p{.3\linewidth} | p{.3\linewidth}  }
			\noindent\parbox[t][][t]{\hsize}{\textbf{\GetTranslation{pieczec}}} & 
			\noindent\parbox[t][][t]{\hsize}{\textbf{\GetTranslation{kierownik}} \\
										\kierownikPracy \\
										\email\\
										\vspace*{1cm} } &  
			\noindent\parbox[t][][t]{\hsize}{\textbf{\GetTranslation{wykonal}}\\ \wykonawcy} \\
		\end{tabularx}
	} 
	
	%%%%%%%%%%%%%%%%%%%%%%% Koniec tabeli %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\\ \hline
	\end{tabularx}
\end{document}