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

    $retrieveObj=new RETRIEVE();

  //get last inserted item
  $get_mg=$retrieveObj->retriever("miscellaneous_goods","*","miscellaneous_goods.user_id",$user_id,"miscellaneous_goods.mg_id","DESC","fetch");
?>

<h4 class="page-title">
  <span class="la la-cubes"></span>
  Miscellaneous goods
</h4>
<p><a href="#" class="bold" onclick="miscellaneous_goods_view()">Miscellaneous goods</a>  <span class="fas fa-angle-right"></span> Supporting images for <strong><?php  echo $get_mg->mg_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 miscellaneous goods : <i>Supporting images</i></p>
            <form id="add_miscellaneous_good_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_miscellaneous_good_supporting_images_response"></div>
				<div class="text-right py-3">
					<input type="hidden" name="add_miscellaneous_good_supporting_images_note">
					<button class="btn btn-primary ml-auto" type="submit" onclick="add_miscellaneous_good_supporting_images()">Finish</button>
				</div>
			</form>
          </div>
        </div>
    </div>
</div>


