\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]
					\GetTranslation{opisProbki}}\\
					\GetTranslation{opisUstroju}
				\vspace*{1mm}}
			& 	%%%%%%%%%%%%%%%%%%%%%%% prawa komórka %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%		
				\noindent\parbox[l]{\hsize}{\vspace*{1mm} 
				\begin{tabularx}{0.95\hsize}{ X >{\raggedleft \arraybackslash \bf}p{2.4cm} }
					\GetTranslation{dataPomiaru} &  \dataPomiaru \\[2em]
					\GetTranslation{warunkiPomiaru} & \\
					\GetTranslation{wymiarCalkowity} [mm]: & \wymiaryProbki \\
					\GetTranslation{wymiarElementu} [mm]: & \wymiaryElementow \\
					\GetTranslation{liczbaElementow} & \liczbaElementow \\
					\GetTranslation{powierzchnia} [$m^2$]: & \polePowierzchniProbki \\
					\GetTranslation{sposobMontazu} & \GetTranslation{sposobMontazuVal} \\[2em]
					\GetTranslation{tempZProbka} $t[^{\circ} C$]: & \temperaturaPowietrzaProbka \\
					\GetTranslation{tempBezProbki} $t[^{\circ} C$]: & \temperaturaPowietrzaPusta \\
					\GetTranslation{wilgotnoscZProbka}[\%]: & \wilgotnoscWzglednaProbka\\
					\GetTranslation{wilgotnoscBezProbki}[\%]: & \wilgotnoscWzglednaPusta\\
					\GetTranslation{liczbaMikrofonow} & \liczbaMikrofonow \\
					\GetTranslation{liczbaZrDzwieku} & \liczbaZrodelDzwieku \\
					\GetTranslation{liczbaElRozpr} & \liczbaElemRozpraszajacych \\
					\GetTranslation{objetoscKomory} $[m^3]$: & \objetoscKomory \\
					\GetTranslation{powierzchniaKomory} $[m^2]$: & \polePowierzchniKomory \\					
				\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}
				\ifdefstring{\reportType}{alpha}{
					\begin{description}[noitemsep,topsep=0pt]					
						\item[$\boldsymbol{\alpha_s}$] \GetTranslation{opisAlphaS}
						\item[$\boldsymbol{\alpha_p}$] \GetTranslation{opisAlphaP}
						\item[$\boldsymbol{\alpha_w}$] \GetTranslation{opisAlphaW}
						\item[$\boldsymbol{T_1, T_2}$] \GetTranslation{opisT}
					\end{description}
				}{}
				\ifdefstring{\reportType}{A}{
					\begin{description}[noitemsep,topsep=0pt]						
						\item[$\boldsymbol{A_{obj}}$] \GetTranslation{opisAobj}
						\item[$\boldsymbol{T_1, T_2}$] \GetTranslation{opisT}
					\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}