<?php require_once('header.php'); ?>

<?php if($allPermissions['statusChange']['read']=="1"){ ?>


<section class="content-header">
	<div class="content-header-left">
		<h1>Delivery Bulk Upload</h1>
	</div>
	<div class="content-header-right" style="margin-right: 1%;">
		<a href="excel/create_delivery_bulkUpload.php" target="_blank" class="btn btn-danger btn-sm">Download Sample File Format </a>
	</div>
	<div class="content-header-right" style="margin-right: 1%;">
		<a href="delivery.php" class="btn btn-danger btn-sm">List All</a>
	</div>
</section>

<section class="content">
	<div class="row">
		<div class="col-md-12">

			<?php if($error_message): ?>
			<div class="callout callout-danger">
				<p>
					<?php echo $error_message; ?>
				</p>
			</div>
			<?php endif; ?>

			<?php if($success_message): ?>
			<div class="callout callout-success">
				<p><?php echo $success_message; ?></p>
			</div>
			<?php endif; ?>

			<form class="form-horizontal" action="delivery_bulk_upload_status.php" method="post" enctype="multipart/form-data">
				<div class="box box-info">
					<div class="box-body">
					    <div class="form-group">
							<label for="" class="col-sm-2 control-label">Select Type <span>*</span></label>
							<div class="col-sm-9" style="padding-top:5px">
								<select class="form-control" name="type">
								    <option value='cscs_awb'>CSCS AWB</option>
								    <option value='3pl_awb'>3PL AWB</option>
								    <option value='ref_no'>Ref No</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="" class="col-sm-2 control-label">Select CSV File <span>*</span></label>
							<div class="col-sm-9" style="padding-top:5px">
								<input type="file" name="file" accept=".csv" required>(Only csv Format)
							</div>
						</div>
						<div class="form-group">
							<label for="" class="col-sm-2 control-label"></label>
							<div class="col-sm-6">
								<button type="submit" class="btn btn-success pull-left" name="Import">Submit</button>
							</div>
						</div>
					</div>
				</div>
			</form>
			<div class="box box-info">
				<div class="box-body">
		<center>	<h5>Delivery Status Bulk Upload Terms And Conditions...</h5>
		<table border="1px">
		    <tr>
		        <th width="25%" style="text-align: center;">Upload Column</th>
		        <th width="25%"; style="text-align: center;">Description</th>
		        <th width="25%" style="text-align: center;">Key or Values</th>
		    </tr>
		    <tr>
		       <td style="text-align: center;">AWB Number <span style="font-size: 10px;color: red;">(Required)</span></td>
		       <td style="text-align: center;"></td>
		       <td style="text-align: center;">Ex : 1002554</td>
		    </tr>
		    <tr>
		       <td style="text-align: center;">Status <span style="font-size: 10px;color: red;">(Required)</span></td>
		       <td style="text-align: center;">
		          1 for Pending<br>
		          2 for Picked<br>
		          4 for In Transit<br>
		          5 for Received at Destination<br>
		          6 for Out for delivery<br>
		          7 for Delivered<br>
		          8 for Undelivery<br>
		       </td>
		       <td style="text-align: center;">
		          Ex: 2 <br> 3 <br> 4
 		       </td>
		    </tr>
		     <tr>
		       <td style="text-align: center;">Receiver Name <span style="font-size: 10px;color: #ea09e4;">(Need If Delivery Shipment else Optional )</span></td>
		       <td style="text-align: center;"></td>
		       <td style="text-align: center;">Ex : xyz</td>
		    </tr>
		     <tr>
		       <td style="text-align: center;">Receiver Mobile Number <span style="font-size: 10px;color: #ea09e4;">(Need If Delivery Shipment else Optional )</span></td>
		       <td style="text-align: center;"></td>
		       <td style="text-align: center;">Ex : 9876543210</td>
		    </tr>
		     <tr>
		       <td style="text-align: center;">Delivery Date <span style="font-size: 10px;color: #ea09e4;">(Need If Delivery Shipment else Optional )</span></td>
		       <td style="text-align: center;">Format should be 23-02-2055 OR 23-02-55(dd-mm-yyyy)</td>
		       <td style="text-align: center;">Ex : 23-02-2021</td>
		    </tr>
		     <tr>
		       <td style="text-align: center;">Reason <span style="font-size: 10px;color: blue;">(Need If UnDelivery Shipment else Optional )</span></td>
		       <td style="text-align: center;"></td>
		       <td style="text-align: center;">Ex : Customer Not Available...</td>
		    </tr>
		     <tr>
		       <td style="text-align: center;">Remark <span style="font-size: 10px;color: #00a65a;">(Optional )</span></td>
		       <td style="text-align: center;"></td>
		       <td style="text-align: center;">Ex : xyz.....</td>
		    </tr>
		</table>
	
		</center>
			</div>
				</div>
		</div>
	</div>

</section>


<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Delete Confirmation</h4>
            </div>
            <div class="modal-body">
                <p>Are you sure want to delete this item?</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                <a class="btn btn-successr btn-ok">Delete</a>
            </div>
        </div>
    </div>
</div>

<?php }else{ ?>
<center><h4 style="color:red;">You don't have permission to status bulk upload </h4></center>
<?php } ?>
<?php require_once('footer.php'); ?>