<?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['leftfees'] ?></h4>
								<span><i data-feather="chevrons-right" class="feather-sm fill-white me-2"></i> <b><?php echo $lang['tools-config45'] ?></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="lastName1"><b style="color:#ff0000"><?php echo $core->currency; ?></b> <?php echo $lang['leftorder81'] ?></label>
										<input type="text" class="form-control" name="min_cost_tax" id="min_cost_tax" value="<?php echo $core->min_cost_tax; ?>" placeholder="Minimum cost to apply tax">
									</div>
								</div>


								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="firstName1"><i class="fas fa-percent" style="color:#ff0000"></i> <?php echo $lang['tools-config46'] ?></label>
										<input type="text" class="form-control" name="tax" id="tax" value="<?php echo $core->tax; ?>" placeholder="<?php echo $lang['tools-config46'] ?>">
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-6">
									<div class="form-group">
										<label for="lastName1"><b style="color:#ff0000"><?php echo $core->currency; ?></b> <?php echo $lang['leftorder82'] ?> </label>
										<input type="text" class="form-control" name="min_cost_declared_tax" id="min_cost_declared_tax" value="<?php echo $core->min_cost_declared_tax; ?>" placeholder="Minimum cost to apply tax">
									</div>
								</div>


								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="firstName1"><i class="fas fa-percent" style="color:#ff0000"></i> <?php echo $lang['leftorder83'] ?></label>
										<input type="text" class="form-control" name="declared_tax" id="declared_tax" value="<?php echo $core->declared_tax; ?>" placeholder="Declared Tax">
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="lastName1"><i class="fas fa-percent" style="color:#ff0000"></i> <?php echo $lang['tools-config47'] ?></label>
										<input type="text" class="form-control" name="insurance" id="insurance" value="<?php echo $core->insurance; ?>" placeholder="<?php echo $lang['tools-config48'] ?>">
									</div>
								</div>
								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="lastName1"><b style="color:#ff0000"><?php echo $core->currency; ?></b> <?php echo $lang['tools-config58'] ?></label>
										<input type="text" class="form-control" name="value_weight" id="value_weight" value="<?php echo $core->value_weight; ?>" placeholder="<?php echo $lang['tools-config58'] ?>">
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="firstName1"><i class="ti-package" style="color:#ff0000"></i> <?php echo $lang['tools-config50'] ?> <b>L x W x H / <?php echo $core->meter; ?></b></label>
										<input type="text" class="form-control" name="meter" id="meter" value="<?php echo $core->meter; ?>" placeholder="Volumetric">
									</div>
								</div>

								<div class="col-md-6 mb-3">
									<div class="form-group">
										<label for="firstName1"><i class="fas fa-percent" style="color:#ff0000"></i> <?php echo $lang['langs_081'] ?></label>
										<input type="text" class="form-control" name="c_tariffs" id="c_tariffs" value="<?php echo $core->c_tariffs; ?>" placeholder="<?php echo $lang['langs_081'] ?>">
									</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_taxes.js"></script>

</body>

</html>