File manager - Edit - /home/webapp69.cm.in.th/u69319090039/Shop39/app/Views/layouts/seller_header.php
Back
<?php header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html> <html lang="th"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?= isset($title) ? Security::e($title) . ' | ' : '' ?>Seller Dashboard</title> <!-- Bootstrap 5 CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css"> <link rel="stylesheet" href="<?= APP_URL ?>/public/css/style.css"> </head> <body class="bg-light"> <?php $currentSeller = Auth::sellerProfile(); $sellerNewOrdersCount = 0; if ($currentSeller) { $db = Database::getInstance(); $sStmt = $db->prepare("SELECT COUNT(*) FROM orders WHERE seller_id = :sid AND status IN ('pending', 'waiting_payment', 'paid') AND is_read = 0"); $sStmt->execute(['sid' => $currentSeller['id']]); $sellerNewOrdersCount = (int)$sStmt->fetchColumn(); } ?> <!-- Seller Header Nav --> <nav class="navbar navbar-expand-lg navbar-dark bg-dark sticky-top shadow-sm"> <div class="container-fluid px-4"> <a class="navbar-brand fw-bold text-success d-flex align-items-center" href="<?= APP_URL ?>/seller/dashboard"> <i class="bi bi-shop me-2"></i><?= Security::e($currentSeller['shop_name'] ?? 'Seller Center') ?> </a> <div class="d-flex align-items-center gap-3 ms-auto"> <!-- Top Navbar Notification Bell --> <a href="<?= APP_URL ?>/seller/orders" class="btn btn-outline-light btn-sm rounded-pill position-relative d-flex align-items-center px-3" id="sellerNavOrderBtn" title="คำสั่งซื้อใหม่"> <i class="bi bi-bell-fill me-1 text-warning"></i> <span class="d-none d-sm-inline">ออเดอร์</span> <span class="badge bg-danger rounded-pill ms-1 <?= $sellerNewOrdersCount > 0 ? '' : 'd-none' ?>" id="sellerNavOrderBadge"> <?= $sellerNewOrdersCount ?> </span> </a> <a href="<?= APP_URL ?>" class="btn btn-outline-light btn-sm rounded-pill"><i class="bi bi-house me-1"></i>กลับหน้าร้านค้า</a> <a href="<?= APP_URL ?>/logout" class="btn btn-outline-danger btn-sm rounded-pill"><i class="bi bi-box-arrow-right me-1"></i>ออกจากระบบ</a> </div> </div> </nav> <div class="container-fluid px-4 py-4"> <div class="row"> <!-- Sidebar --> <div class="col-lg-2 mb-4"> <div class="card border-0 shadow-sm rounded-3"> <div class="list-group list-group-flush"> <a href="<?= APP_URL ?>/seller/dashboard" class="list-group-item list-group-item-action py-3"><i class="bi bi-speedometer2 me-2"></i>Dashboard</a> <a href="<?= APP_URL ?>/seller/orders" class="list-group-item list-group-item-action py-3 d-flex justify-content-between align-items-center" id="sellerSidebarOrdersLink"> <div><i class="bi bi-receipt me-2"></i>คำสั่งซื้อในร้าน</div> <span class="badge bg-danger rounded-pill <?= $sellerNewOrdersCount > 0 ? '' : 'd-none' ?>" id="sellerSidebarOrderBadge"> <?= $sellerNewOrdersCount ?> </span> </a> <a href="<?= APP_URL ?>/seller/payment-settings" class="list-group-item list-group-item-action py-3"><i class="bi bi-qr-code me-2"></i>การรับเงิน / Payment</a> <a href="<?= APP_URL ?>/seller/wallet" class="list-group-item list-group-item-action py-3"><i class="bi bi-wallet2 me-2"></i>ยอดเงินร้านค้า (Wallet)</a> <a href="<?= APP_URL ?>/seller/settings" class="list-group-item list-group-item-action py-3"><i class="bi bi-gear me-2"></i>จัดการข้อมูลร้านค้า</a> <a href="<?= APP_URL ?>/seller/products" class="list-group-item list-group-item-action py-3"><i class="bi bi-box-seam me-2"></i>จัดการสินค้า</a> <a href="<?= APP_URL ?>/seller/products/create" class="list-group-item list-group-item-action py-3"><i class="bi bi-plus-circle me-2"></i>เพิ่มสินค้าใหม่</a> </div> </div> </div> <!-- Main Content Area --> <div class="col-lg-10"> <!-- Flash Alerts Notification Container --> <?php if ($msg = Session::getFlash('success')): ?> <div class="alert alert-success alert-dismissible fade show border-0 shadow-sm mb-3" role="alert"> <i class="bi bi-check-circle-fill me-2"></i><?= Security::e($msg) ?> <button type="button" class="btn-close" data-bs-dismiss="alert"></button> </div> <?php endif; ?> <?php if ($msg = Session::getFlash('danger')): ?> <div class="alert alert-danger alert-dismissible fade show border-0 shadow-sm mb-3" role="alert"> <i class="bi bi-exclamation-triangle-fill me-2"></i><?= Security::e($msg) ?> <button type="button" class="btn-close" data-bs-dismiss="alert"></button> </div> <?php endif; ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings