!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/inventory.picotech.app/public_html/public/js/bundle/   drwxr-xr-x
Free 28.42 GB of 117.98 GB (24.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     detail_sale.js (56.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["detail_sale"],{

/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=script&lang=js&":
/*!******************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=script&lang=js& ***!
  \******************************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var nprogress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! nprogress */ "./node_modules/nprogress/nprogress.js");
/* harmony import */ var nprogress__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(nprogress__WEBPACK_IMPORTED_MODULE_0__);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
  computed: _objectSpread(_objectSpread({}, (0,vuex__WEBPACK_IMPORTED_MODULE_1__.mapGetters)(["currentUserPermissions", "currentUser"])), {}, {
    console: function (_console) {
      function console() {
        return _console.apply(this, arguments);
      }

      console.toString = function () {
        return _console.toString();
      };

      return console;
    }(function () {
      return console;
    })
  }),
  metaInfo: {
    title: "Detail Sale"
  },
  data: function data() {
    return {
      isLoading: true,
      sale: {},
      details: [],
      variants: [],
      company: {},
      email: {
        to: "",
        subject: "",
        message: "",
        client_name: "",
        Sale_Ref: ""
      }
    };
  },
  methods: {
    //----------------------------------- Invoice Sale PDF  -------------------------\\
    Sale_PDF: function Sale_PDF() {
      var _this = this;

      // Start the progress bar.
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
      var id = this.$route.params.id;
      axios.get("Sale_PDF/".concat(id), {
        responseType: "blob",
        // important
        headers: {
          "Content-Type": "application/json"
        }
      }).then(function (response) {
        var url = window.URL.createObjectURL(new Blob([response.data]));
        var link = document.createElement("a");
        link.href = url;
        link.setAttribute("download", "Sale_" + _this.sale.Ref + ".pdf");
        document.body.appendChild(link);
        link.click(); // Complete the animation of the  progress bar.

        setTimeout(function () {
          return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        }, 500);
      })["catch"](function () {
        // Complete the animation of the  progress bar.
        setTimeout(function () {
          return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        }, 500);
      });
    },
    //------ Toast
    makeToast: function makeToast(variant, msg, title) {
      this.$root.$bvToast.toast(msg, {
        title: title,
        variant: variant,
        solid: true
      });
    },
    //------------------------------Formetted Numbers -------------------------\\
    formatNumber: function formatNumber(number, dec) {
      var value = (typeof number === "string" ? number : number.toString()).split(".");
      if (dec <= 0) return value[0];
      var formated = value[1] || "";
      if (formated.length > dec) return "".concat(value[0], ".").concat(formated.substr(0, dec));

      while (formated.length < dec) {
        formated += "0";
      }

      return "".concat(value[0], ".").concat(formated);
    },
    //------------------------------ Print -------------------------\\
    print: function print() {
      this.$htmlToPaper('print_Invoice', {
        styles: ["/frontend_assets/css/bootstrap.min.css"]
      });
    },
    //--------------------------------- Send Sale in Email ------------------------------\\
    Sale_Email: function Sale_Email() {
      this.email.to = this.sale.client_email;
      this.email.Sale_Ref = this.sale.Ref;
      this.email.client_name = this.sale.client_name;
      this.Send_Email();
    },
    Send_Email: function Send_Email() {
      var _this2 = this;

      // Start the progress bar.
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
      var id = this.$route.params.id;
      axios.post("sales/send/email", {
        id: id,
        to: this.email.to,
        client_name: this.email.client_name,
        Ref: this.email.Sale_Ref
      }).then(function (response) {
        // Complete the animation of the  progress bar.
        setTimeout(function () {
          return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        }, 500);

        _this2.makeToast("success", _this2.$t("Send.TitleEmail"), _this2.$t("Success"));
      })["catch"](function (error) {
        // Complete the animation of the  progress bar.
        setTimeout(function () {
          return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        }, 500);

        _this2.makeToast("danger", _this2.$t("SMTPIncorrect"), _this2.$t("Failed"));
      });
    },
    //---------SMS notification
    Sale_SMS: function Sale_SMS() {
      var _this3 = this;

      // Start the progress bar.
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().start();
      nprogress__WEBPACK_IMPORTED_MODULE_0___default().set(0.1);
      var id = this.$route.params.id;
      axios.post("sales/send/sms", {
        id: id
      }).then(function (response) {
        // Complete the animation of the  progress bar.
        setTimeout(function () {
          return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        }, 500);

        _this3.makeToast("success", _this3.$t("Send_SMS"), _this3.$t("Success"));
      })["catch"](function (error) {
        // Complete the animation of the  progress bar.
        setTimeout(function () {
          return nprogress__WEBPACK_IMPORTED_MODULE_0___default().done();
        }, 500);

        _this3.makeToast("danger", _this3.$t("sms_config_invalid"), _this3.$t("Failed"));
      });
    },
    //----------------------------------- Get Details Sale ------------------------------\\
    Get_Details: function Get_Details() {
      var _this4 = this;

      var id = this.$route.params.id;
      axios.get("sales/".concat(id)).then(function (response) {
        _this4.sale = response.data.sale;
        _this4.details = response.data.details;
        _this4.company = response.data.company;
        _this4.payments = response.data.payments;
        _this4.isLoading = false;
      })["catch"](function (response) {
        setTimeout(function () {
          _this4.isLoading = false;
        }, 500);
      });
    },
    //------------------------------------------ DELETE Sale ------------------------------\\
    Delete_Sale: function Delete_Sale() {
      var _this5 = this;

      var id = this.$route.params.id;
      this.$swal({
        title: this.$t("Delete.Title"),
        text: this.$t("Delete.Text"),
        type: "warning",
        showCancelButton: true,
        confirmButtonColor: "#3085d6",
        cancelButtonColor: "#d33",
        cancelButtonText: this.$t("Delete.cancelButtonText"),
        confirmButtonText: this.$t("Delete.confirmButtonText")
      }).then(function (result) {
        if (result.value) {
          axios["delete"]("sales/" + id).then(function () {
            _this5.$swal(_this5.$t("Delete.Deleted"), _this5.$t("Delete.SaleDeleted"), "success");

            _this5.$router.push({
              name: "index_sales"
            });
          })["catch"](function () {
            _this5.$swal(_this5.$t("Delete.Failed"), _this5.$t("Delete.Therewassomethingwronge"), "warning");
          });
        }
      });
    }
  },
  //end Methods
  //----------------------------- Created function-------------------
  created: function created() {
    this.Get_Details();
  }
});

/***/ }),

/***/ "./resources/src/views/app/pages/sales/detail_sale.vue":
/*!*************************************************************!*\
  !*** ./resources/src/views/app/pages/sales/detail_sale.vue ***!
  \*************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _detail_sale_vue_vue_type_template_id_9b055236___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./detail_sale.vue?vue&type=template&id=9b055236& */ "./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=template&id=9b055236&");
/* harmony import */ var _detail_sale_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./detail_sale.vue?vue&type=script&lang=js& */ "./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=script&lang=js&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");





/* normalize component */
;
var component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  _detail_sale_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _detail_sale_vue_vue_type_template_id_9b055236___WEBPACK_IMPORTED_MODULE_0__.render,
  _detail_sale_vue_vue_type_template_id_9b055236___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* hot reload */
if (false) { var api; }
component.options.__file = "resources/src/views/app/pages/sales/detail_sale.vue"
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);

/***/ }),

/***/ "./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=script&lang=js&":
/*!**************************************************************************************!*\
  !*** ./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=script&lang=js& ***!
  \**************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_sale_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail_sale.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=script&lang=js&");
 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_sale_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]); 

/***/ }),

/***/ "./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=template&id=9b055236&":
/*!********************************************************************************************!*\
  !*** ./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=template&id=9b055236& ***!
  \********************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_sale_vue_vue_type_template_id_9b055236___WEBPACK_IMPORTED_MODULE_0__.render),
/* harmony export */   "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_sale_vue_vue_type_template_id_9b055236___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns)
/* harmony export */ });
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_detail_sale_vue_vue_type_template_id_9b055236___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail_sale.vue?vue&type=template&id=9b055236& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=template&id=9b055236&");


/***/ }),

/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=template&id=9b055236&":
/*!***********************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/src/views/app/pages/sales/detail_sale.vue?vue&type=template&id=9b055236& ***!
  \***********************************************************************************************************************************************************************************************************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "render": () => (/* binding */ render),
/* harmony export */   "staticRenderFns": () => (/* binding */ staticRenderFns)
/* harmony export */ });
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { staticClass: "main-content" },
    [
      _c("breadcumb", {
        attrs: { page: _vm.$t("SaleDetail"), folder: _vm.$t("Sales") },
      }),
      _vm._v(" "),
      _vm.isLoading
        ? _c("div", {
            staticClass: "loading_page spinner spinner-primary mr-3",
          })
        : _vm._e(),
      _vm._v(" "),
      !_vm.isLoading
        ? _c(
            "b-card",
            [
              _c(
                "b-row",
                [
                  _c(
                    "b-col",
                    { staticClass: "mb-5", attrs: { md: "12" } },
                    [
                      _vm.currentUserPermissions &&
                      _vm.currentUserPermissions.includes("Sales_edit")
                        ? _c(
                            "router-link",
                            {
                              staticClass:
                                "btn btn-success btn-icon ripple btn-sm",
                              attrs: {
                                title: "Edit",
                                to: {
                                  name: "edit_sale",
                                  params: { id: _vm.$route.params.id },
                                },
                              },
                            },
                            [
                              _c("i", { staticClass: "i-Edit" }),
                              _vm._v(" "),
                              _c("span", [_vm._v(_vm._s(_vm.$t("EditSale")))]),
                            ]
                          )
                        : _vm._e(),
                      _vm._v(" "),
                      _c(
                        "button",
                        {
                          staticClass: "btn btn-info btn-icon ripple btn-sm",
                          on: {
                            click: function ($event) {
                              return _vm.Sale_Email()
                            },
                          },
                        },
                        [
                          _c("i", { staticClass: "i-Envelope-2" }),
                          _vm._v(
                            "\n          " +
                              _vm._s(_vm.$t("Email")) +
                              "\n        "
                          ),
                        ]
                      ),
                      _vm._v(" "),
                      _c(
                        "button",
                        {
                          staticClass:
                            "btn btn-secondary btn-icon ripple btn-sm",
                          on: {
                            click: function ($event) {
                              return _vm.Sale_SMS()
                            },
                          },
                        },
                        [
                          _c("i", { staticClass: "i-Speach-Bubble" }),
                          _vm._v("\n          SMS\n        "),
                        ]
                      ),
                      _vm._v(" "),
                      _c(
                        "button",
                        {
                          staticClass: "btn btn-primary btn-icon ripple btn-sm",
                          on: {
                            click: function ($event) {
                              return _vm.Sale_PDF()
                            },
                          },
                        },
                        [
                          _c("i", { staticClass: "i-File-TXT" }),
                          _vm._v("\n          PDF\n        "),
                        ]
                      ),
                      _vm._v(" "),
                      _c(
                        "button",
                        {
                          staticClass: "btn btn-warning btn-icon ripple btn-sm",
                          on: {
                            click: function ($event) {
                              return _vm.print()
                            },
                          },
                        },
                        [
                          _c("i", { staticClass: "i-Billing" }),
                          _vm._v(
                            "\n          " +
                              _vm._s(_vm.$t("print")) +
                              "\n        "
                          ),
                        ]
                      ),
                      _vm._v(" "),
                      _vm.currentUserPermissions &&
                      _vm.currentUserPermissions.includes("Sales_delete")
                        ? _c(
                            "button",
                            {
                              staticClass:
                                "btn btn-danger btn-icon ripple btn-sm",
                              on: {
                                click: function ($event) {
                                  return _vm.Delete_Sale()
                                },
                              },
                            },
                            [
                              _c("i", { staticClass: "i-Close-Window" }),
                              _vm._v(
                                "\n          " +
                                  _vm._s(_vm.$t("Del")) +
                                  "\n        "
                              ),
                            ]
                          )
                        : _vm._e(),
                    ],
                    1
                  ),
                ],
                1
              ),
              _vm._v(" "),
              _c(
                "div",
                { staticClass: "invoice", attrs: { id: "print_Invoice" } },
                [
                  _c(
                    "div",
                    { staticClass: "invoice-print" },
                    [
                      _c(
                        "b-row",
                        { staticClass: "justify-content-md-center" },
                        [
                          _c("h4", { staticClass: "font-weight-bold" }, [
                            _vm._v(
                              _vm._s(_vm.$t("SaleDetail")) +
                                " : " +
                                _vm._s(_vm.sale.Ref)
                            ),
                          ]),
                        ]
                      ),
                      _vm._v(" "),
                      _c("hr"),
                      _vm._v(" "),
                      _c(
                        "b-row",
                        { staticClass: "mt-5" },
                        [
                          _c(
                            "b-col",
                            {
                              staticClass: "mb-4",
                              attrs: { lg: "4", md: "4", sm: "12" },
                            },
                            [
                              _c("h5", { staticClass: "font-weight-bold" }, [
                                _vm._v(_vm._s(_vm.$t("Customer_Info"))),
                              ]),
                              _vm._v(" "),
                              _c("div", [_vm._v(_vm._s(_vm.sale.client_name))]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(_vm._s(_vm.sale.client_email)),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(_vm._s(_vm.sale.client_phone)),
                              ]),
                              _vm._v(" "),
                              _c("div", [_vm._v(_vm._s(_vm.sale.client_adr))]),
                            ]
                          ),
                          _vm._v(" "),
                          _c(
                            "b-col",
                            {
                              staticClass: "mb-4",
                              attrs: { lg: "4", md: "4", sm: "12" },
                            },
                            [
                              _c("h5", { staticClass: "font-weight-bold" }, [
                                _vm._v("Store Info"),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(_vm._s(_vm.company.CompanyName)),
                              ]),
                              _vm._v(" "),
                              _c("div", [_vm._v(_vm._s(_vm.company.email))]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(_vm._s(_vm.company.CompanyPhone)),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(_vm._s(_vm.company.CompanyAdress)),
                              ]),
                            ]
                          ),
                          _vm._v(" "),
                          _c(
                            "b-col",
                            {
                              staticClass: "mb-4",
                              attrs: { lg: "4", md: "4", sm: "12" },
                            },
                            [
                              _c("h5", { staticClass: "font-weight-bold" }, [
                                _vm._v(_vm._s(_vm.$t("Invoice_Info"))),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(
                                  _vm._s(_vm.$t("Date")) +
                                    " : " +
                                    _vm._s(_vm.sale.date)
                                ),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(
                                  _vm._s(_vm.$t("Reference")) +
                                    " : " +
                                    _vm._s(_vm.sale.Ref)
                                ),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(
                                  "\n              " +
                                    _vm._s(_vm.$t("PaymentStatus")) +
                                    " :\n              "
                                ),
                                _vm.sale.payment_status == "paid"
                                  ? _c(
                                      "span",
                                      {
                                        staticClass:
                                          "badge badge-outline-success",
                                      },
                                      [_vm._v(_vm._s(_vm.$t("Paid")))]
                                    )
                                  : _vm.sale.payment_status == "partial"
                                  ? _c(
                                      "span",
                                      {
                                        staticClass:
                                          "badge badge-outline-primary",
                                      },
                                      [_vm._v(_vm._s(_vm.$t("partial")))]
                                    )
                                  : _c(
                                      "span",
                                      {
                                        staticClass:
                                          "badge badge-outline-warning",
                                      },
                                      [_vm._v(_vm._s(_vm.$t("Unpaid")))]
                                    ),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(
                                  _vm._s(_vm.$t("warehouse")) +
                                    " : " +
                                    _vm._s(_vm.sale.warehouse)
                                ),
                              ]),
                              _vm._v(" "),
                              _c("div", [
                                _vm._v(
                                  "\n              " +
                                    _vm._s(_vm.$t("Status")) +
                                    " :\n              "
                                ),
                                _vm.sale.statut == "completed"
                                  ? _c(
                                      "span",
                                      {
                                        staticClass:
                                          "badge badge-outline-success",
                                      },
                                      [_vm._v(_vm._s(_vm.$t("complete")))]
                                    )
                                  : _vm.sale.statut == "pending"
                                  ? _c(
                                      "span",
                                      {
                                        staticClass: "badge badge-outline-info",
                                      },
                                      [_vm._v(_vm._s(_vm.$t("Pending")))]
                                    )
                                  : _c(
                                      "span",
                                      {
                                        staticClass:
                                          "badge badge-outline-warning",
                                      },
                                      [_vm._v(_vm._s(_vm.$t("Ordered")))]
                                    ),
                              ]),
                            ]
                          ),
                        ],
                        1
                      ),
                      _vm._v(" "),
                      _c(
                        "b-row",
                        { staticClass: "mt-3" },
                        [
                          _c("b-col", { attrs: { md: "12" } }, [
                            _c("h5", { staticClass: "font-weight-bold" }, [
                              _vm._v(_vm._s(_vm.$t("Order_Summary"))),
                            ]),
                            _vm._v(" "),
                            _c("div", { staticClass: "table-responsive" }, [
                              _c(
                                "table",
                                { staticClass: "table table-hover table-md" },
                                [
                                  _c("thead", { staticClass: "bg-gray-300" }, [
                                    _c("tr", [
                                      _c("th", { attrs: { scope: "col" } }, [
                                        _vm._v(_vm._s(_vm.$t("ProductName"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("th", { attrs: { scope: "col" } }, [
                                        _vm._v(
                                          _vm._s(_vm.$t("Net_Unit_Price"))
                                        ),
                                      ]),
                                      _vm._v(" "),
                                      _c("th", { attrs: { scope: "col" } }, [
                                        _vm._v(_vm._s(_vm.$t("Quantity"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("th", { attrs: { scope: "col" } }, [
                                        _vm._v(_vm._s(_vm.$t("UnitPrice"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("th", { attrs: { scope: "col" } }, [
                                        _vm._v(_vm._s(_vm.$t("Discount"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("th", { attrs: { scope: "col" } }, [
                                        _vm._v(_vm._s(_vm.$t("Tax"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("th", { attrs: { scope: "col" } }, [
                                        _vm._v(_vm._s(_vm.$t("SubTotal"))),
                                      ]),
                                    ]),
                                  ]),
                                  _vm._v(" "),
                                  _c(
                                    "tbody",
                                    _vm._l(_vm.details, function (detail) {
                                      return _c("tr", [
                                        _c("td", [
                                          _c("span", [
                                            _vm._v(
                                              _vm._s(detail.code) +
                                                " (" +
                                                _vm._s(detail.name) +
                                                ")"
                                            ),
                                          ]),
                                          _vm._v(" "),
                                          _c(
                                            "p",
                                            {
                                              directives: [
                                                {
                                                  name: "show",
                                                  rawName: "v-show",
                                                  value:
                                                    detail.is_imei &&
                                                    detail.imei_number !== null,
                                                  expression:
                                                    "detail.is_imei && detail.imei_number !==null ",
                                                },
                                              ],
                                            },
                                            [
                                              _vm._v(
                                                _vm._s(_vm.$t("IMEI_SN")) +
                                                  " : " +
                                                  _vm._s(detail.imei_number)
                                              ),
                                            ]
                                          ),
                                          _vm._v(" "),
                                          _c(
                                            "p",
                                            {
                                              directives: [
                                                {
                                                  name: "show",
                                                  rawName: "v-show",
                                                  value:
                                                    detail.serial_expires &&
                                                    typeof detail
                                                      .serial_expires[
                                                      "serials"
                                                    ] != undefined &&
                                                    Array.isArray(
                                                      detail.serial_expires[
                                                        "serials"
                                                      ]
                                                    ),
                                                  expression:
                                                    "detail.serial_expires && typeof detail.serial_expires['serials'] != undefined && Array.isArray(detail.serial_expires['serials'])",
                                                },
                                              ],
                                            },
                                            _vm._l(
                                              detail.serial_expires["serials"],
                                              function (serialExpires, index) {
                                                return _c("span", [
                                                  _vm._v(
                                                    "\n                              " +
                                                      _vm._s(serialExpires) +
                                                      _vm._s(
                                                        detail.serial_expires[
                                                          "expiry"
                                                        ][index]
                                                          ? " : " +
                                                              detail
                                                                .serial_expires[
                                                                "expiry"
                                                              ][index]
                                                          : ""
                                                      ) +
                                                      ",\n                          "
                                                  ),
                                                ])
                                              }
                                            ),
                                            0
                                          ),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(
                                            _vm._s(_vm.currentUser.currency) +
                                              " " +
                                              _vm._s(
                                                _vm.formatNumber(
                                                  detail.Net_price,
                                                  3
                                                )
                                              )
                                          ),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(
                                            _vm._s(
                                              _vm.formatNumber(
                                                detail.quantity,
                                                2
                                              )
                                            ) +
                                              " " +
                                              _vm._s(detail.unit_sale)
                                          ),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(
                                            _vm._s(_vm.currentUser.currency) +
                                              " " +
                                              _vm._s(
                                                _vm.formatNumber(
                                                  detail.price,
                                                  2
                                                )
                                              )
                                          ),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(
                                            _vm._s(_vm.currentUser.currency) +
                                              " " +
                                              _vm._s(
                                                _vm.formatNumber(
                                                  detail.DiscountNet,
                                                  2
                                                )
                                              )
                                          ),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(
                                            _vm._s(_vm.currentUser.currency) +
                                              " " +
                                              _vm._s(
                                                _vm.formatNumber(detail.taxe, 2)
                                              )
                                          ),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(
                                            _vm._s(_vm.currentUser.currency) +
                                              " " +
                                              _vm._s(detail.total.toFixed(2))
                                          ),
                                        ]),
                                      ])
                                    }),
                                    0
                                  ),
                                ]
                              ),
                            ]),
                          ]),
                          _vm._v(" "),
                          _c(
                            "div",
                            { staticClass: "offset-md-1 col-md-3 mt-4" },
                            [
                              _c("h5", { staticClass: "font-weight-bold" }, [
                                _vm._v("Payment History"),
                              ]),
                              _vm._v(" "),
                              _c(
                                "table",
                                { staticClass: "table table-striped table-sm" },
                                [
                                  _c("thead", [
                                    _c("tr", [
                                      _c("td", [_vm._v("Date")]),
                                      _vm._v(" "),
                                      _c("td", [_vm._v("Type")]),
                                      _vm._v(" "),
                                      _c("td", [_vm._v("Amount")]),
                                    ]),
                                  ]),
                                  _vm._v(" "),
                                  _c(
                                    "tbody",
                                    _vm._l(_vm.payments, function (payment) {
                                      return _c("tr", [
                                        _c("td", [
                                          _vm._v(_vm._s(payment.date)),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(_vm._s(payment.Reglement)),
                                        ]),
                                        _vm._v(" "),
                                        _c("td", [
                                          _vm._v(
                                            _vm._s(_vm.currentUser.currency) +
                                              "  " +
                                              _vm._s(
                                                _vm.formatNumber(
                                                  payment.montant,
                                                  2
                                                )
                                              )
                                          ),
                                        ]),
                                      ])
                                    }),
                                    0
                                  ),
                                ]
                              ),
                            ]
                          ),
                          _vm._v(" "),
                          _c(
                            "div",
                            { staticClass: "offset-md-5 col-md-3 mt-4" },
                            [
                              _c(
                                "table",
                                { staticClass: "table table-striped table-sm" },
                                [
                                  _c("tbody", [
                                    _c("tr", [
                                      _c("td", [
                                        _vm._v(_vm._s(_vm.$t("OrderTax"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("td", [
                                        _c("span", [
                                          _vm._v(
                                            _vm._s(_vm.currentUser.currency) +
                                              " " +
                                              _vm._s(
                                                _vm.sale.TaxNet.toFixed(2)
                                              ) +
                                              " (" +
                                              _vm._s(
                                                _vm.formatNumber(
                                                  _vm.sale.tax_rate,
                                                  2
                                                )
                                              ) +
                                              " %)"
                                          ),
                                        ]),
                                      ]),
                                    ]),
                                    _vm._v(" "),
                                    _c("tr", [
                                      _c("td", [
                                        _vm._v(_vm._s(_vm.$t("Discount"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("td", [
                                        _vm._v(
                                          _vm._s(_vm.currentUser.currency) +
                                            " " +
                                            _vm._s(_vm.sale.discount.toFixed(2))
                                        ),
                                      ]),
                                    ]),
                                    _vm._v(" "),
                                    _c("tr", [
                                      _c("td", [
                                        _vm._v(_vm._s(_vm.$t("Shipping"))),
                                      ]),
                                      _vm._v(" "),
                                      _c("td", [
                                        _vm._v(
                                          _vm._s(_vm.currentUser.currency) +
                                            " " +
                                            _vm._s(_vm.sale.shipping.toFixed(2))
                                        ),
                                      ]),
                                    ]),
                                    _vm._v(" "),
                                    _c("tr", [
                                      _c("td", [
                                        _c(
                                          "span",
                                          { staticClass: "font-weight-bold" },
                                          [_vm._v(_vm._s(_vm.$t("Total")))]
                                        ),
                                      ]),
                                      _vm._v(" "),
                                      _c("td", [
                                        _c(
                                          "span",
                                          { staticClass: "font-weight-bold" },
                                          [
                                            _vm._v(
                                              _vm._s(_vm.currentUser.currency) +
                                                " " +
                                                _vm._s(_vm.sale.GrandTotal)
                                            ),
                                          ]
                                        ),
                                      ]),
                                    ]),
                                    _vm._v(" "),
                                    _c("tr", [
                                      _c("td", [
                                        _c(
                                          "span",
                                          { staticClass: "font-weight-bold" },
                                          [_vm._v(_vm._s(_vm.$t("Paid")))]
                                        ),
                                      ]),
                                      _vm._v(" "),
                                      _c("td", [
                                        _c(
                                          "span",
                                          { staticClass: "font-weight-bold" },
                                          [
                                            _vm._v(
                                              _vm._s(_vm.currentUser.currency) +
                                                " " +
                                                _vm._s(_vm.sale.paid_amount)
                                            ),
                                          ]
                                        ),
                                      ]),
                                    ]),
                                    _vm._v(" "),
                                    _c("tr", [
                                      _c("td", [
                                        _c(
                                          "span",
                                          { staticClass: "font-weight-bold" },
                                          [_vm._v(_vm._s(_vm.$t("Due")))]
                                        ),
                                      ]),
                                      _vm._v(" "),
                                      _c("td", [
                                        _c(
                                          "span",
                                          { staticClass: "font-weight-bold" },
                                          [
                                            _vm._v(
                                              _vm._s(_vm.currentUser.currency) +
                                                " " +
                                                _vm._s(_vm.sale.due)
                                            ),
                                          ]
                                        ),
                                      ]),
                                    ]),
                                  ]),
                                ]
                              ),
                            ]
                          ),
                        ],
                        1
                      ),
                      _vm._v(" "),
                      _c("hr", {
                        directives: [
                          {
                            name: "show",
                            rawName: "v-show",
                            value: _vm.sale.note,
                            expression: "sale.note",
                          },
                        ],
                      }),
                      _vm._v(" "),
                      _c(
                        "b-row",
                        { staticClass: "mt-4" },
                        [
                          _c("b-col", { attrs: { md: "12" } }, [
                            _c("p", [_vm._v(_vm._s(_vm.sale.note))]),
                          ]),
                        ],
                        1
                      ),
                      _vm._v(" "),
                      _c(
                        "b-row",
                        {
                          staticClass: "mt-4",
                          staticStyle: {
                            position: "absolute",
                            bottom: "70px",
                            width: "100%",
                            height: "50px",
                          },
                        },
                        [
                          _c(
                            "b-col",
                            {
                              staticStyle: { "text-align": "center" },
                              attrs: { md: "12" },
                            },
                            [
                              _c("h4", [
                                _vm._v(
                                  "Thank You For Purchasing With Us. Please Come Again"
                                ),
                              ]),
                            ]
                          ),
                        ],
                        1
                      ),
                      _vm._v(" "),
                      _c(
                        "b-row",
                        {
                          staticClass: "mt-4",
                          staticStyle: {
                            position: "absolute",
                            bottom: "0",
                            left: "200px",
                            width: "100%",
                            height: "50px",
                          },
                        },
                        [
                          _c("b-col", { attrs: { md: "4" } }, [
                            _c("span", [_vm._v("Prepared By:")]),
                          ]),
                          _vm._v(" "),
                          _c("b-col", { attrs: { md: "4" } }, [
                            _c("span", [_vm._v("Received By:")]),
                          ]),
                          _vm._v(" "),
                          _c("b-col", { attrs: { md: "4" } }, [
                            _c("span", [_vm._v("Authorized By:")]),
                          ]),
                        ],
                        1
                      ),
                    ],
                    1
                  ),
                ]
              ),
            ],
            1
          )
        : _vm._e(),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true



/***/ })

}]);

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0058 ]--