<?php

$where = " WHERE 1=1";
$next_page_condition = "";

if($_REQUEST['hide_top']){
	$next_page_condition.="&hide_top=1";
}
if($_REQUEST['hide_left']){
	$next_page_condition.="&hide_left=1";
}

?>

<style type="text/css">
	.custom-bordered td {
			border: 1px solid #dee2e6;
		}

	.custom-bordered tfoot td[colspan="6"].text-end {
			border-left: none !important;
			border-bottom: none !important;
		}
    .label {
			display: inline-block;
			width: 120px; /* Adjust this width as needed */
			font-weight: ;
		}
	@page {
		margin: 0;
		/* size: landscape; */
		size: potrait;
		/* DIN A4 standard, Europe */
	}

	@media print {
		.bgblack {
			background-color: #000;
		}

		.font50print40 {
			font-size: 40px;
		}

		.content-wrapper,
		.right-side {
			background-color: #fff;
		}

		.box {
			border-top: 0 solid #d2d6de !important;
			box-shadow: none !important;
		}

		p {
			white-space: inherit !important;
		}

		.col-sm-1,
		.col-sm-2,
		.col-sm-3,
		.col-sm-4,
		.col-sm-5,
		.col-sm-6,
		.col-sm-7,
		.col-sm-8,
		.col-sm-9,
		.col-sm-10,
		.col-sm-11,
		.col-sm-12 {
			float: left;
		}

		.col-sm-12 {
			width: 100%;
		}

		.col-sm-11 {
			width: 91.66666667%;
		}

		.col-sm-10 {
			width: 83.33333333%;
		}

		.col-sm-9 {
			width: 75%;
		}

		.col-sm-8 {
			width: 66.66666667%;
		}

		.col-sm-7 {
			width: 58.33333333%;
		}

		.col-sm-6 {
			width: 50%;
		}

		.col-sm-5 {
			width: 41.66666667%;
		}

		.col-sm-4 {
			width: 33.33333333%;
		}

		.col-sm-3 {
			width: 25%;
		}

		.col-sm-2 {
			width: 16.66666667%;
		}

		.col-sm-1 {
			width: 8.33333333%;
		}
	}

	.col-sm-1,
	.col-sm-2,
	.col-sm-3,
	.col-sm-4,
	.col-sm-5,
	.col-sm-6,
	.col-sm-7,
	.col-sm-8,
	.col-sm-9,
	.col-sm-10,
	.col-sm-11,
	.col-sm-12 {
		float: left;
	}

	.col-sm-12 {
		width: 100%;
	}

	.col-sm-11 {
		width: 91.66666667%;
	}

	.col-sm-10 {
		width: 83.33333333%;
	}

	.col-sm-9 {
		width: 75%;
	}

	.col-sm-8 {
		width: 66.66666667%;
	}

	.col-sm-7 {
		width: 58.33333333%;
	}

	.col-sm-6 {
		width: 50%;
	}

	.col-sm-5 {
		width: 41.66666667%;
	}

	.col-sm-4 {
		width: 33.33333333%;
	}

	.col-sm-3 {
		width: 25%;
	}

	.col-sm-2 {
		width: 16.66666667%;
	}

	.col-sm-1 {
		width: 8.33333333%;
	}
</style>


<div class="container mt-3">
	<div class="row justify-content-center">
		<div class="col-sm-12">
			<div class="card">
				<div class="card-body">
					<div class="row" style="margin-left: -2.5px;">    
						<div class="col-sm-12">
							<p class="mb-0"><strong>Time Cards - Detail</strong></p>
							<p class="mb-0">Period: Custom Date Range 28/10/2024 - 03/11/2024</p>
							<p>Printed on 04/11/2024 06:21:27</p>
						</div>
						<div class="my-4"><br></div>
						<div class="col-sm-12">
						<div class="raw">
							<p class="col-sm-6"><span class="label"><strong>Name:</strong></span>Tongue, Jayne<?php echo $customer_name; ?></p>
							<p class="col-sm-6"><span class="label"><strong>Payroll Ref:</strong></span>99<?php echo $hh; ?></p>
						</div>	
						<div class="raw">
							<p class="col-sm-6"><span class="label"><strong>Company:</strong></span>Thermotec Plastics<?php echo $part_number; ?></p>
							<p class="col-sm-6"><span class="label"><strong>N.I. Number:</strong></span> <?php echo $part_description; ?></p>
						</div>
						<div class="raw">
							<p class="col-sm-6"><span class="label"><strong>Dept:</strong></span>CNC<?php echo $drawing_issue; ?></p>
							<p class="col-sm-6"><span class="label"><strong>Unique ID:</strong></span>99<?php echo $model_number; ?></p>
						</div>	
						</div>
					</div>
					<div class="container">
							<table class="table custom-bordered">
								<thead>
									<tr>
										<th>Date</th>
										<th>S</th>
										<th>IN</th>
										<th>OUT</th>
										<th>Breaks</th>
										<th>Period</th>
										<th>Standard</th>
										<th>1.33</th>
										<th>1.5</th>
										<th>2</th>
									</tr>
								</thead>
								<tbody>
								<?
								/*while($row_brought_out_part =mysqli_fetch_array($sql_brought_out_part)){ 
									$row_brought_out_part=utility::validate_crypt_data($row_brought_out_part);*/
					         	?>
									<tr>
										<td>Mon 28/10/2024</td>
										<td>9 </td>
										<!--<td><?php //echo $row_brought_out_part['exch_rate']?></td>-->
										<td>07:17</td>
										<td>16:45</td>
										<td>(0.50)</td>
										<td>9:00</td>
										<td>9:00</td>
										<td>0:00</td>
										<td>0:00</td>
										<td>0:00</td>
									</tr>
									  <tr>
										<td>Tue 29/10/2024</td>
										<td>9</td>
										<td>06:16</td>
										<td>16:45</td>
										<td>(0.50)</td>
										<td>9.75</td>
										<td>9.75</td>
										<td>0.00</td>
										<td>0.00</td>
										<td>0.00</td>
									  </tr>
									  <tr>
										<td>Wed 30/10/2024</td>
										<td>9</td>
										<td>06:15</td>
										<td>16:46</td>
										<td>(0.50)</td>
										<td>9.75</td>
										<td>9.75</td>
										<td>0.00</td>
										<td>0.00</td>
										<td>0.00</td>
									  </tr>
									  <tr>
										<td>Thu 31/10/2024</td>
										<td>9</td>
										<td>06:17</td>
										<td>16:46</td>
										<td>(0.50)</td>
										<td>9.75</td>
										<td>9.75</td>
										<td>0.00</td>
										<td>0.00</td>
										<td>0.00</td>
									  </tr>
								<?/* } */?>	
								</tbody>
								<tfoot>
									<tr>
										<td colspan="5" class="text-end" style="border-left: none !important; border-right: none !important; border-bottom: none !important;"><strong>Totals 28/10 - 03/11/2024</strong></td>
						                <td colspan="1" class="text-end" style="border-left: none !important;  border-right: none !important;border-bottom: none !important;">38.25</td>
										<td colspan="1" class="text-end" style="border-left: none !important;  border-right: none !important; border-bottom: none !important;">38.25</td>
										<td colspan="1" class="text-end" style="border-left: none !important;  border-right: none !important; border-bottom: none !important;">0.00</td>
										<td colspan="1" class="text-end" style="border-left: none !important; border-right: none !important; border-bottom: none !important;">0.00</td>
										<td colspan="1" class="text-end" style="border-left: none !important;  border-right: none !important; border-bottom: none !important;">0.00</td>

									</tr>
								
								  <tr>
										<th colspan="3" style="border-left: none !important; border-right: none !important; border-top: none !important;"></th>
									
										<th></th>
										<th>Absences</th>
										<th>Period</th>
										<th>Standard</th>
										<th>1.33</th>
										<th>1.5</th>
										<th>2</th>
									  </tr>
									  <tr>
										<th colspan="3" style="border-left: none !important; border-right: none !important; border-top: none !important; text-align: right;">Employee Totals</th>
										<th></th>
										<th>2</th>
										<th>38.25</th>
										<th>38.25</th>
										<th>0.00</th>
										<th>0.00</th>
										<th>0.00</th>
									  </tr>
									</tfoot>  
							</table>
							
					</div>					

				</div>
			</div>
		</div>
	</div>
</div>