<?php
  require_once("../../session_check.php");
  require_once("../../../classes/main_classes.php");

    $retrieveObj=new RETRIEVE();

  //get last inserted item
  $get_product=$retrieveObj->retriever("products","*","products.user_id",$user_id,"products.p_id","DESC","fetch");
?>
<h4 class="page-title">
  <span class="la la-cubes"></span>
  Products
</h4>
<p><a href="#" class="bold" onclick="products_view()">Products</a> <span class="fas fa-angle-right"></span> Supporting images for <strong><?php  echo $get_product->p_name; ?></strong></p>
<div class="content-wrapper ">
    <div class="row">
        <div class="col-md-12">
          <div class="mx-auto card p-2">
            <p class="text-center lead">Add product : <i>Supporting images</i></p>
            <form id="add_product_supporting_images_form" enctype="multipart/form-data">
				<div class="row my-1">
					<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
						<div class="input-group bg-light ">
			                <input class="form-control" type="file" name="upload_supporting_images[]" id="upload_supporting_images" multiple>
						</div>	
					</div>
				</div>
				<div id="add_product_supporting_images_response"></div>
				<div class="text-right py-3">
					<input type="hidden" name="add_product_supporting_images_note">
					<button class="btn btn-primary ml-auto" type="submit" onclick="add_product_supporting_images()">Finish</button>
				</div>
			</form>
          </div>
        </div>
    </div>
</div>