<div class='checkout'>
						<div class="row">
							<div class="col-md-5 col-sm-12">
								<div class='order py-2'>
									<p class="background">LISTA DE ITENS MESA <span id="mesa-label-consumo-pdv"></span> 

										<a data-bs-toggle="modal" data-bs-target="#modalObs" style="text-decoration:none" class="text-light ml-2" href="#" title="Ver Observações"><i class="bi bi-exclamation-circle"></i> <small>OBSERVAÇÕES</small> </a>

									</p>

									<span id="listar-itens-pdv">

									</span>


								</div>
							</div>



							<div id='payment' class='payment col-md-7'>
								<div class="row py-2">

									<p class="background">LISTA DE PRODUTOS</p>

									<small>
										<table id="example" class="table table-sm my-4" style="width:98%;">
											<thead>
												<tr>
													<td style="display:none">Categoria</td>
													<th style="width:35%">Nome</th>
													<th style="text-align:center; width:20%">Valor</th>
													<th style="text-align:center">Estoque</th>
													<th style="text-align:center">Imagem</th>

													<th style="text-align:center">Quantidade</th>

													<th style="text-align:center">ADD</th>

												</tr>
											</thead>
											<tbody>
												<?php 
												$query = $pdo->query("SELECT * FROM produtos where estoque > 0 order by id desc");
												$res = $query->fetchAll(PDO::FETCH_ASSOC);
												for($i=0; $i < @count($res); $i++){
													foreach ($res[$i] as $key => $value){	}
														$id_reg = $res[$i]['id'];


													$valor_venda = number_format($res[$i]['valor_venda'], 2, ',', '.');

													$id_cat = $res[$i]['categoria'];

					//BUSCAR O NOME RELACIONADO
													$query2 = $pdo->query("SELECT * FROM categorias where id = '$id_cat'");
													$res2 = $query2->fetchAll(PDO::FETCH_ASSOC);
													$nome_cat = $res2[0]['nome'];


													?>
													<tr>
														<td style="display:none">R$ <?php echo $nome_cat ?></td>
														<td style="width:40%"><?php echo $res[$i]['nome'] ?></td>

														<td style="text-align:center; width:20%">R$ <?php echo $valor_venda ?></td>


														<td style="text-align:center"><?php echo $res[$i]['estoque'] ?></td>
														<td style="text-align:center"><img src="../img/produtos/<?php echo $res[$i]['imagem'] ?>" width="25"></td>


														<td style="text-align:center">

															<input class="form-control form-control-sm" value="1" type="number" id="qtd-<?php echo $id_reg ?>" >

														</td>

														<td style="text-align:center">

															<a href="" onclick="addProduto(<?php echo $id_reg ?>, 'Produto')" title="Add Produto">
																<i class="bi bi-check-square text-primary"></i></a>

															</td>
														</tr>

													<?php } ?>

												</tbody>
											</table>
											<div class="mt-4" id="mensagem-add"></div>
										</small>

										<p class="background mt-2">LISTA DE PRATOS</p>

										<small>
											<table id="example2" class="table table-sm my-4" style="width:98%;">
												<thead>
													<tr>
														<td style="display:none">Categoria</td>
														<th style="width:40%">Nome</th>
														<th style="text-align:center; width:20%">Valor</th>

														<th style="text-align:center">Imagem</th>

														<th style="text-align:center">Quantidade</th>

														<th style="text-align:center">ADD</th>

													</tr>
												</thead>
												<tbody>
													<?php 
													$query = $pdo->query("SELECT * FROM pratos order by id desc");
													$res = $query->fetchAll(PDO::FETCH_ASSOC);
													for($i=0; $i < @count($res); $i++){
														foreach ($res[$i] as $key => $value){	}
															$id_reg = $res[$i]['id'];


														$valor_venda = number_format($res[$i]['valor'], 2, ',', '.');

														$id_cat = $res[$i]['categoria'];

					//BUSCAR O NOME RELACIONADO
														$query2 = $pdo->query("SELECT * FROM categorias where id = '$id_cat'");
														$res2 = $query2->fetchAll(PDO::FETCH_ASSOC);
														$nome_cat = $res2[0]['nome'];


														?>
														<tr>
															<td style="display:none">R$ <?php echo $nome_cat ?></td>
															<td style="width:40%"><?php echo $res[$i]['nome'] ?></td>

															<td style="text-align:center; width:20%">R$ <?php echo $valor_venda ?></td>



															<td style="text-align:center"><img src="../img/pratos/<?php echo $res[$i]['imagem'] ?>" width="25"></td>


															<td style="text-align:center">

																<input class="form-control form-control-sm" value="1" type="number" id="qtdPrato-<?php echo $id_reg ?>" >

															</td>

															<td style="text-align:center">

																<a href="" onclick="addProduto(<?php echo $id_reg ?>, 'Prato')" title="Add Prato">
																	<i class="bi bi-check-square text-primary"></i></a>

																</td>
															</tr>

														<?php } ?>

													</tbody>
												</table>
											</small>


										</div>


									</div>


								</div>
							</div>
