<?php
// *************************************************************************
// *                                                                       *
// * DEPRIXA BASIC -  Freight Forwarding & Shipping Software Solutions     *
// * Copyright (c) JAOMWEB. All Rights Reserved                            *
// *                                                                       *
// *************************************************************************
// *                                                                       *
// * Email: support@jaom.info                                              *
// * Website: https://deprixa.link/documentation/                          *
// *                                                                       *
// *************************************************************************
// *                                                                       *
// * This software is furnished under a license and may be used and copied *
// * only  in  accordance  with  the  terms  of such  license and with the *
// * inclusion of the above copyright notice.                              *
// * If you Purchased from Codecanyon, Please read the full License from   *
// * here- http://codecanyon.net/licenses/standard                         *
// *                                                                       *
// *************************************************************************


if (!$user->cdp_is_Admin())
	cdp_redirect_to("login.php");

$userData = $user->cdp_getUserData();

?>
<!DOCTYPE html>
<html dir="ltr" lang="en">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="keywords" content="Courier DEPRIXA-Integral Web System" />
	<meta name="author" content="Jaomweb">

	<title><?php echo $lang['tools-config61'] ?> | <?php echo $core->site_name ?></title>
	<?php include 'views/inc/head_scripts.php'; ?>
</head>

<body>
	<!-- ============================================================== -->
	<!-- Preloader - style you can find in spinners.css -->
	<!-- ============================================================== -->


	<?php include 'views/inc/preloader.php'; ?>
	<!-- ============================================================== -->
	<!-- Main wrapper - style you can find in pages.scss -->
	<!-- ============================================================== -->
	<div id="main-wrapper">
		<!-- ============================================================== -->
		<!-- Topbar header - style you can find in pages.scss -->
		<!-- ============================================================== -->

		<!-- ============================================================== -->
		<!-- Preloader - style you can find in spinners.css -->
		<!-- ============================================================== -->

		<?php include 'views/inc/topbar.php'; ?>

		<!-- End Topbar header -->


		<!-- Left Sidebar - style you can find in sidebar.scss  -->

		<?php include 'views/inc/left_sidebar.php'; ?>


		<!-- End Left Sidebar - style you can find in sidebar.scss  -->


		<!-- Page wrapper  -->
		<!-- ============================================================== -->
		<div class="page-wrapper">

			<!-- ============================================================== -->
			<!-- Start Page Content -->
			<!-- ============================================================== -->
			<div class="email-app">
				<!-- ============================================================== -->
				<!-- Left Part menu -->
				<!-- ============================================================== -->

				<?php include 'views/inc/left_part_menu_taxes.php'; ?>

				<!-- ============================================================== -->
				<!-- Right Part contents-->
				<!-- ============================================================== -->
				<div class="right-part mail-list bg-white overflow-auto">

					<!-- Action part -->
					<div class="p-4 border-bottom">
						<div class="d-flex align-items-center">
							<div>
								<h4><?php echo $lang['tools-config61'] ?> | <?php echo $lang['lefttrackin'] ?></h4>
								<span><i data-feather="chevrons-right" class="feather-sm fill-white me-2"></i> <b><?php echo $lang['tools-config35'] ?></b></span>
							</div>
						</div>
					</div>

					<!-- Button group part -->
					<div class="bg-light p-15">
						<div class="row justify-content-center">
							<div class="col-md-12">
								<div class="row">
									<div class="col-12">
										<div id="resultados_ajax"></div>
									</div>
								</div>
							</div>
						</div>
					</div>

					<div class="card-body">

						<form class="form-horizontal form-material" id="save_config" name="save_config" method="post">

							<div class="row">
								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="firstName1"><?php echo $lang['tools-config36'] ?></label>
										<input type="text" title="<?php echo $lang['tools-config37'] ?>" data-toggle="tooltip" class="form-control" name="prefix" id="prefix" value="<?php echo $core->prefix; ?>" placeholder="<?php echo $lang['tools-config40'] ?>">
									</div>
								</div>
								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="lastName1"><i class="mdi mdi-cube-send"></i> <?php echo $lang['tools-config38'] ?></label>
										<input type="text" title="<?php echo $lang['tools-config49'] ?>" data-toggle="tooltip" class="form-control" name="track_digit" id="track_digit" value="<?php echo $core->track_digit; ?>" placeholder="<?php echo $lang['tools-config39'] ?>">
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="firstName1"><?php echo $lang['tools-config71'] ?></label>
										<input type="text" title="<?php echo $lang['tools-config67'] ?>" data-toggle="tooltip" class="form-control" name="prefix_consolidate" id="prefix_consolidate" value="<?php echo $core->prefix_consolidate; ?>" placeholder="<?php echo $lang['tools-config68'] ?>">
									</div>
								</div>
								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="lastName1"><i class="mdi mdi-gift" style="color:#7460ee"></i> <?php echo $lang['tools-config72'] ?></label>
										<input type="text" title="<?php echo $lang['tools-config69'] ?>" data-toggle="tooltip" class="form-control" name="track_consolidate" id="track_consolidate" value="<?php echo $core->track_consolidate; ?>" placeholder="<?php echo $lang['tools-config70'] ?>">
									</div>
								</div>
							</div>


							<div><br></div>

							<div class="row">
								<div class="col-md-6">
									<label for="firstName1"><?php echo $lang['tools-config89'] ?></label>
									<div class="form-group">

										<div class="btn-group" data-toggle="buttons">
											<label class="btn">
												<div class="custom-control custom-radio">
													<input type="radio" id="customRadio4" name="code_number" value="1" <?php cdp_getChecked($core->code_number, 1); ?> class="custom-control-input">
													<label class="custom-control-label" for="customRadio4"> <?php echo $lang['tools-config90'] ?></label>
												</div>
											</label>
											<label class="btn">
												<div class="custom-control custom-radio">
													<input type="radio" id="customRadio5" name="code_number" value="0" <?php cdp_getChecked($core->code_number, 0); ?> class="custom-control-input">
													<label class="custom-control-label" for="customRadio5"> <?php echo $lang['leftorder14442'] ?></label>
												</div>
											</label>
										</div>

									</div>
								</div>

								<div class="col-md-6">
									<div class="form-group">
										<label for="lastName1"><i class="mdi mdi-cube-send"></i> <?php echo $lang['tools-config88'] ?></label>
										<input type="text" data-toggle="tooltip" class="form-control" name="digit_random" id="digit_random" value="<?php echo $core->digit_random; ?>" placeholder="Track digits random">
									</div>
								</div>
							</div>

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



							<div class="row">
								<div class="col-md-12 mb-3">
									<div class="form-group">
										<label for="emailAddress1"><?php echo $lang['tools-config42'] ?></label>
										<textarea class="form-control" rows="3" name="interms" id="interms"><?php echo $core->interms; ?></textarea>
									</div>
								</div>
							</div>


							<!-- Action part -->
							<div class="p-4 border-bottom">
								<div class="d-flex align-items-center">
									<div>
										<h5><i data-feather="chevrons-right" class="feather-sm fill-white me-2"></i> <?php echo $lang['leftorder84'] ?></h5>

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

							<div class="row">

								<div class="col-sm-6">
									<div class="table-responsive">
										<table class="table table-hover table-sm">
											<tbody>
												<tr>
													<td class="" colspan="4">
														<div class="form-group">
															<label class="custom-control custom-checkbox"> <?php echo $lang['leftorder21'] ?> %
															</label>
														</div>
													</td>

													<td class="">
														<div class="form-group">
															<label class="custom-control custom-checkbox" style="font-size: 18px;">
																<input type="checkbox" class="custom-control-input" name="active_tax1" id="active_tax1" value="1" <?php if ($core->active_tax1 == 1) {
																		echo 'checked';
																	} ?>>
															</label>
														</div>
													</td>

												</tr>

												<tr>
													<td class="" colspan="4">
														<div class="form-group">
															<label class="custom-control custom-checkbox"> Tax %
															</label>
														</div>
													</td>

													<td class="">
														<div class="form-group">
															<label class="custom-control custom-checkbox" style="font-size: 18px;">
																<input type="checkbox" class="custom-control-input" name="active_tax2" id="active_tax2" value="1" <?php if ($core->active_tax2 == 1) {
																		echo 'checked';
																	} ?>>
															</label>
														</div>
													</td>
												</tr>

												<tr>
													<td class="" colspan="4">
														<div class="form-group">
															<label class="custom-control custom-checkbox"> <?php echo $lang['leftorder25'] ?> %
															</label>
														</div>
													</td>

													<td class="">
														<div class="form-group">
															<label class="custom-control custom-checkbox" style="font-size: 18px;">
																<input type="checkbox" class="custom-control-input" name="active_tax3" id="active_tax3" value="1" <?php if ($core->active_tax3 == 1) {
																		echo 'checked';
																	} ?>>
															</label>
														</div>
													</td>
												</tr>

												<tr>
													<td class="" colspan="4">
														<div class="form-group">
															<label class="custom-control custom-checkbox"><?php echo $lang['leftorder24'] ?> %

															</label>
														</div>
													</td>

													<td class="">
														<div class="form-group">
															<label class="custom-control custom-checkbox" style="font-size: 18px;">
																<input type="checkbox" class="custom-control-input" name="active_tax4" id="active_tax4" value="1" <?php if ($core->active_tax4 == 1) {
																		echo 'checked';
																	} ?>>
															</label>
														</div>
													</td>
												</tr>
											</tbody>
										</table>
									</div>
								</div>


								<div class="col-sm-6">
									<div class="table-responsive">
										<table class="table table-hover table-sm">
											<tbody>
												<tr>
													<td class="" colspan="4">
														<div class="form-group">
															<label class="custom-control custom-checkbox"> <?php echo $lang['leftorder23'] ?>
															</label>
														</div>
													</td>

													<td class="">
														<div class="form-group">
															<label class="custom-control custom-checkbox" style="font-size: 18px;">
																<input type="checkbox" class="custom-control-input" name="active_tax5" id="active_tax5" value="1" <?php if ($core->active_tax5 == 1) {
																		echo 'checked';
																	} ?>>
															</label>
														</div>
													</td>

												</tr>

												<tr>
													<td class="" colspan="4">
														<div class="form-group">
															<label class="custom-control custom-checkbox"> <?php echo $lang['leftorder26'] ?> %
															</label>
														</div>
													</td>

													<td class="">
														<div class="form-group">
															<label class="custom-control custom-checkbox" style="font-size: 18px;">
																<input type="checkbox" class="custom-control-input" name="active_tax6" id="active_tax6" value="1" <?php if ($core->active_tax6 == 1) {
																		echo 'checked';
																	} ?>>
															</label>
														</div>
													</td>
												</tr>

												<tr>
													<td class="" colspan="4">
														<div class="form-group">
															<label class="custom-control custom-checkbox"> <?php echo $lang['leftorder27'] ?>
															</label>
														</div>
													</td>

													<td class="">
														<div class="form-group">
															<label class="custom-control custom-checkbox" style="font-size: 18px;">
																<input type="checkbox" class="custom-control-input" name="active_tax7" id="active_tax7" value="1" <?php if ($core->active_tax7 == 1) {
																		echo 'checked';
																	} ?>>
															</label>
														</div>
													</td>
												</tr>


											</tbody>
										</table>
									</div>
								</div>

							</div>

							<div class="form-group mb-3">
								<div class="col-sm-12">
									<button type="submit" class="btn btn-primary btn-confirmation" name="dosubmit"><?php echo $lang['tools-config56'] ?> <span><i class="icon-ok"></i></span></button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>

		</div>

		<?php include 'views/inc/footer.php'; ?>
	</div>
	<!-- ============================================================== -->
	<!-- End Page wrapper  -->
	<!-- ============================================================== -->

	<script src="dataJs/config_track.js"></script>
</body>

</html>