Initial baseline WACloud CI3 production
This commit is contained in:
@@ -0,0 +1,291 @@
|
||||
<div class="chat-header d-flex justify-content-between align-items-center">
|
||||
<div>
|
||||
<strong>Customer A</strong><br>
|
||||
<small>Online</small>
|
||||
</div>
|
||||
<i class="fa-solid fa-ellipsis-vertical"></i>
|
||||
</div>
|
||||
|
||||
<div class="messages d-flex flex-column">
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...Halo kak, saya mau tanya...Halo kak, saya mau tanya...Halo kak, saya mau tanya...Halo kak, saya mau tanya...Halo kak, saya mau tanya...Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊Baik kak, silakan 😊Baik kak, silakan 😊Baik kak, silakan 😊Baik kak, silakan 😊Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
<div class="message received">Halo kak, saya mau tanya...</div>
|
||||
<div class="message sent">Baik kak, silakan 😊</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="chat-input">
|
||||
|
||||
<!-- Tombol Attach / File -->
|
||||
<div class="dropdown2">
|
||||
<button type="button" class="chat-btn" title="Attach">
|
||||
<i class="fa-solid fa-paperclip"></i>
|
||||
</button>
|
||||
<ul class="dropdown2-files">
|
||||
<li>
|
||||
<label>
|
||||
<i class="fa-solid fa-image"></i> Gambar
|
||||
<input type="file" accept="image/*" style="display:none" onchange="handleFile(this)">
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<i class="fa-solid fa-file"></i> File
|
||||
<input type="file" accept=".pdf,.doc,.docx,.xls,.xlsx,.txt" style="display:none" onchange="handleFile(this)">
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Tombol Emoji -->
|
||||
<div class="dropdown2">
|
||||
<button type="button" class="chat-btn" id="emojiToggle" title="Emoji">
|
||||
<i class="fa-regular fa-face-smile"></i>
|
||||
</button>
|
||||
<div class="dropdown2-menu">
|
||||
<button>😀</button>
|
||||
<button>😃</button>
|
||||
<button>😄</button>
|
||||
<button>😁</button>
|
||||
<button>😆</button>
|
||||
<button>😅</button>
|
||||
<button>😂</button>
|
||||
<button>🤣</button>
|
||||
<button>😊</button>
|
||||
<button>😇</button>
|
||||
<button>🙂</button>
|
||||
<button>🙃</button>
|
||||
<button>😉</button>
|
||||
<button>😌</button>
|
||||
<button>😍</button>
|
||||
<button>🥰</button>
|
||||
<button>😘</button>
|
||||
<button>😗</button>
|
||||
<button>😙</button>
|
||||
<button>😚</button>
|
||||
<button>😋</button>
|
||||
<button>😛</button>
|
||||
<button>😜</button>
|
||||
<button>🤪</button>
|
||||
<button>😝</button>
|
||||
<button>🤑</button>
|
||||
<button>🤗</button>
|
||||
<button>🤭</button>
|
||||
<button>🤫</button>
|
||||
<button>🤔</button>
|
||||
<button>🤐</button>
|
||||
<button>🤨</button>
|
||||
<button>😐</button>
|
||||
<button>😑</button>
|
||||
<button>😶</button>
|
||||
<button>😏</button>
|
||||
<button>😒</button>
|
||||
<button>🙄</button>
|
||||
<button>😬</button>
|
||||
<button>🤥</button>
|
||||
<button>😌</button>
|
||||
<button>😔</button>
|
||||
<button>😪</button>
|
||||
<button>🤤</button>
|
||||
<button>😴</button>
|
||||
<button>😷</button>
|
||||
<button>🤒</button>
|
||||
<button>🤕</button>
|
||||
<button>🤢</button>
|
||||
<button>🤮</button>
|
||||
<button>🤧</button>
|
||||
<button>🥵</button>
|
||||
<button>🥶</button>
|
||||
<button>🥴</button>
|
||||
<button>😵</button>
|
||||
<button>🤯</button>
|
||||
<button>🤠</button>
|
||||
<button>🥳</button>
|
||||
<button>😎</button>
|
||||
<button>🤓</button>
|
||||
<button>🧐</button>
|
||||
<button>😕</button>
|
||||
<button>😟</button>
|
||||
<button>🙁</button>
|
||||
<button>☹️</button>
|
||||
<button>😮</button>
|
||||
<button>😯</button>
|
||||
<button>😲</button>
|
||||
<button>😳</button>
|
||||
<button>🥺</button>
|
||||
<button>😦</button>
|
||||
<button>😧</button>
|
||||
<button>😨</button>
|
||||
<button>😰</button>
|
||||
<button>😥</button>
|
||||
<button>😢</button>
|
||||
<button>😭</button>
|
||||
<button>😱</button>
|
||||
<button>😖</button>
|
||||
<button>😣</button>
|
||||
<button>😞</button>
|
||||
<button>😓</button>
|
||||
<button>😩</button>
|
||||
<button>😫</button>
|
||||
<button>🥱</button>
|
||||
<button>😤</button>
|
||||
<button>😡</button>
|
||||
<button>😠</button>
|
||||
<button>🤬</button>
|
||||
<button>😈</button>
|
||||
<button>👿</button>
|
||||
<button>💀</button>
|
||||
<button>☠️</button>
|
||||
<button>💩</button>
|
||||
<button>🤡</button>
|
||||
<button>👹</button>
|
||||
<button>👺</button>
|
||||
<button>👻</button>
|
||||
<button>👽</button>
|
||||
<button>👾</button>
|
||||
<button>🤖</button>
|
||||
<button>👍</button>
|
||||
<button>👎</button>
|
||||
<button>✊</button>
|
||||
<button>👊</button>
|
||||
<button>🤛</button>
|
||||
<button>🤜</button>
|
||||
<button>👏</button>
|
||||
<button>🙌</button>
|
||||
<button>👐</button>
|
||||
<button>🤲</button>
|
||||
<button>🙏</button>
|
||||
<button>🤝</button>
|
||||
<button>🤟</button>
|
||||
<button>🤘</button>
|
||||
<button>🤙</button>
|
||||
<button>💪</button>
|
||||
<button>✋</button>
|
||||
<button>🖐️</button>
|
||||
<button>🖖</button>
|
||||
<button>👌</button>
|
||||
<button>✌️</button>
|
||||
<button>🤏</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Input Pesan -->
|
||||
<textarea id="chatInput" placeholder="Ketik pesan..." rows="1"></textarea>
|
||||
|
||||
<!-- Tombol Kirim -->
|
||||
<button type="button" id="sendBtn" class="chat-btn" title="Kirim" style="display:none;">
|
||||
<i class="fa-solid fa-paper-plane"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
const chatInput = document.getElementById('chatInput');
|
||||
const sendBtn = document.getElementById('sendBtn');
|
||||
const emojiButtons = document.querySelectorAll('.dropdown2-menu button');
|
||||
const dropdown = document.querySelector('.dropdown2');
|
||||
const emojiMenu = document.querySelector('.dropdown2-menu');
|
||||
const emojiToggle = document.getElementById('emojiToggle');
|
||||
|
||||
// Tombol Kirim muncul jika ada isi
|
||||
chatInput.addEventListener('input', () => {
|
||||
sendBtn.style.display = chatInput.value.trim() !== '' ? 'inline-flex' : 'none';
|
||||
});
|
||||
|
||||
// Toggle dropdown emoji
|
||||
emojiToggle.addEventListener('click', (e) => {
|
||||
e.stopPropagation(); // supaya klik tombol tidak menutup dropdown
|
||||
dropdown.classList.toggle('show');
|
||||
});
|
||||
|
||||
// Klik emoji menambahkan ke textarea
|
||||
emojiButtons.forEach(btn => {
|
||||
btn.addEventListener('click', (e) => {
|
||||
e.stopPropagation(); // penting supaya dropdown tidak hilang
|
||||
const startPos = chatInput.selectionStart;
|
||||
const endPos = chatInput.selectionEnd;
|
||||
const textBefore = chatInput.value.substring(0, startPos);
|
||||
const textAfter = chatInput.value.substring(endPos);
|
||||
chatInput.value = textBefore + btn.textContent + textAfter;
|
||||
|
||||
const cursorPos = startPos + btn.textContent.length;
|
||||
chatInput.setSelectionRange(cursorPos, cursorPos);
|
||||
chatInput.focus();
|
||||
|
||||
chatInput.dispatchEvent(new Event('input'));
|
||||
});
|
||||
});
|
||||
|
||||
// Klik di luar dropdown menutupnya
|
||||
document.addEventListener('click', (e) => {
|
||||
if (!dropdown.contains(e.target)) {
|
||||
dropdown.classList.remove('show');
|
||||
}
|
||||
});
|
||||
|
||||
// Auto-expand textarea
|
||||
const textarea = document.querySelector('.chat-input textarea');
|
||||
textarea.addEventListener('input', function() {
|
||||
this.style.height = 'auto';
|
||||
this.style.height = Math.min(this.scrollHeight, 1.5*10*16) + 'px';
|
||||
});
|
||||
|
||||
// File handler
|
||||
function handleFile(input) {
|
||||
if (input.files.length > 0) {
|
||||
alert('File terpilih: ' + input.files[0].name);
|
||||
}
|
||||
}
|
||||
|
||||
// Dropdown toggle hanya saat klik tombol
|
||||
document.querySelectorAll('.dropdown2').forEach(drop => {
|
||||
const btn = drop.querySelector('.chat-btn');
|
||||
btn.addEventListener('click', (e) => {
|
||||
e.stopPropagation();
|
||||
document.querySelectorAll('.dropdown2').forEach(d => {
|
||||
if(d !== drop) d.classList.remove('show');
|
||||
});
|
||||
drop.classList.toggle('show');
|
||||
});
|
||||
});
|
||||
|
||||
// Klik di luar menutup semua dropdown
|
||||
document.addEventListener('click', () => {
|
||||
document.querySelectorAll('.dropdown2').forEach(drop => drop.classList.remove('show'));
|
||||
});
|
||||
|
||||
// Hover dropdown tetap terbuka saat mouse masuk
|
||||
document.querySelectorAll('.dropdown2-menu').forEach(menu => {
|
||||
menu.addEventListener('mouseenter', () => {
|
||||
menu.parentElement.classList.add('show');
|
||||
});
|
||||
menu.addEventListener('mouseleave', () => {
|
||||
menu.parentElement.classList.remove('show');
|
||||
});
|
||||
});
|
||||
|
||||
document.querySelectorAll('.dropdown2-files').forEach(menu => {
|
||||
menu.addEventListener('mouseenter', () => {
|
||||
menu.parentElement.classList.add('show');
|
||||
});
|
||||
menu.addEventListener('mouseleave', () => {
|
||||
menu.parentElement.classList.remove('show');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,160 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title><?= $title ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
|
||||
<style>
|
||||
body { background-color: #f0f2f5; }
|
||||
.chat-container { display: flex; height: 100vh; }
|
||||
.sidebar { width: 25%; background: #fff; border-right: 1px solid #ddd; overflow-y: auto; }
|
||||
.chat-window { flex: 1; background: #e5ddd5; display: flex; flex-direction: column; }
|
||||
.chat-header { background: #ededed; padding: 10px; padding-left: 20px; border-bottom: 1px solid #ccc; }
|
||||
.messages { flex: 1; padding-left: 8%; padding-right: 8%; padding-top: 20px; padding-bottom: 30px; overflow-y: auto; }
|
||||
.message { margin-bottom: 10px; max-width: 55%; padding: 10px; border-radius: 10px; }
|
||||
.message.sent { background: #dcf8c6; align-self: flex-end; }
|
||||
.message.received { background: #fff; align-self: flex-start; }
|
||||
.chat-input {
|
||||
padding: 10px;
|
||||
border-top: 1px solid #ccc;
|
||||
background: #f7f7f7;
|
||||
margin: 10px;
|
||||
border-radius: 20px;
|
||||
width: 75%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
.chat-input textarea {
|
||||
flex: 1;
|
||||
border: none;
|
||||
outline: none;
|
||||
padding: 8px 12px;
|
||||
border-radius: 10px;
|
||||
font-size: 15px;
|
||||
resize: none;
|
||||
overflow-y: auto;
|
||||
max-height: calc(1.5em * 10 + 16px);
|
||||
line-height: 1.5em;
|
||||
}
|
||||
.chat-btn {
|
||||
border: none;
|
||||
background: none;
|
||||
color: #008069;
|
||||
font-size: 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
transition: background 0.2s;
|
||||
position: relative;
|
||||
}
|
||||
.chat-btn:hover { background: rgba(0,137,105,0.1); }
|
||||
|
||||
.dropdown2 { position: relative; }
|
||||
|
||||
.dropdown2-menu {
|
||||
display: none; /* default hidden */
|
||||
position: absolute;
|
||||
bottom: 45px;
|
||||
left: 0;
|
||||
background: #fff;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 10px;
|
||||
padding: 8px;
|
||||
min-width: 345px;
|
||||
max-height: 500px;
|
||||
z-index: 100;
|
||||
overflow-y: auto;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.dropdown2-files {
|
||||
display: none; /* default hidden */
|
||||
position: absolute;
|
||||
bottom: 45px;
|
||||
left: 0;
|
||||
background: #fff;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 10px;
|
||||
padding: 8px;
|
||||
min-width: 150px;
|
||||
max-height: 150px;
|
||||
z-index: 100;
|
||||
overflow-y: auto;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
.dropdown2-files li { list-style: none; padding: 3px 12px; cursor: pointer; width: 100%;}
|
||||
.dropdown2-files li:hover, .dropdown2-menu button:hover { background: #f1f1f1; }
|
||||
.dropdown2-menu button {
|
||||
border: none;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
border-radius: 6px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/* Tampilkan saat .show ditambahkan */
|
||||
.dropdown2.show .dropdown2-menu,
|
||||
.dropdown2.show .dropdown2-files { display: flex; }
|
||||
|
||||
/* Badge biru untuk pesan belum dibaca */
|
||||
.badge.unread {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #0d6efd;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/* Hover effect untuk list item */
|
||||
.hover-item {
|
||||
transition: background 0.2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
.hover-item:hover {
|
||||
background-color: #f1f1f1; /* warna abu muda saat hover */
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
flex: 1;
|
||||
margin: 0 2px;
|
||||
border-radius: 20px;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
.filter-btn.active {
|
||||
background-color: #0b93f6;
|
||||
color: #fff;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
|
||||
}
|
||||
.filter-btn:not(.active):hover {
|
||||
background-color: #e1f0ff;
|
||||
color: #0b93f6;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="chat-container">
|
||||
<div class="sidebar">
|
||||
<?php $this->load->view('chat2/sidebar'); ?>
|
||||
</div>
|
||||
<div class="chat-window">
|
||||
<?php $this->load->view('chat2/chat_window'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,182 @@
|
||||
<!-- PROFIL CS LOGIN -->
|
||||
<div class="d-flex align-items-center justify-content-between p-3 border-bottom bg-light position-relative">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/50?img=12" class="rounded-circle me-3" alt="Profile CS">
|
||||
<div>
|
||||
<strong>Nama Customer Service</strong><br>
|
||||
<small class="text-muted">Online</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-sm btn-light" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="fa-solid fa-ellipsis-vertical"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownMenuButton">
|
||||
<li><a class="dropdown-item" href="#">Profil</a></li>
|
||||
<li><a class="dropdown-item" href="#">Pengaturan</a></li>
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
<li><a class="dropdown-item text-danger" href="#">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PENCARIAN CHAT -->
|
||||
<div class="p-3 border-bottom bg-white">
|
||||
<input type="text" class="form-control mb-2" placeholder="Cari atau mulai chat baru...">
|
||||
|
||||
<!-- Tombol Filter Stylish -->
|
||||
<div class="d-flex justify-content-between mb-2 px-1">
|
||||
<button class="btn btn-sm btn-outline-primary filter-btn active">Semua</button>
|
||||
<button class="btn btn-sm btn-outline-primary filter-btn">Belum Dibaca</button>
|
||||
<button class="btn btn-sm btn-outline-primary filter-btn">Group</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- DAFTAR CHAT -->
|
||||
<ul class="list-group list-group-flush">
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/40" class="rounded-circle me-3" alt="Admin 1">
|
||||
<div>
|
||||
<strong>Admin 1</strong><br>
|
||||
<small>Pesan terakhir...</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
|
||||
<!-- Sudah dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/41" class="rounded-circle me-3" alt="Customer A">
|
||||
<div>
|
||||
<strong>Customer A</strong><br>
|
||||
<small>Halo kak, saya mau tanya...</small>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/42" class="rounded-circle me-3" alt="Customer B">
|
||||
<div>
|
||||
<strong>Customer B</strong><br>
|
||||
<small>Ada info terbaru?</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/40" class="rounded-circle me-3" alt="Admin 1">
|
||||
<div>
|
||||
<strong>Admin 1</strong><br>
|
||||
<small>Pesan terakhir...</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
|
||||
<!-- Sudah dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/41" class="rounded-circle me-3" alt="Customer A">
|
||||
<div>
|
||||
<strong>Customer A</strong><br>
|
||||
<small>Halo kak, saya mau tanya...</small>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/42" class="rounded-circle me-3" alt="Customer B">
|
||||
<div>
|
||||
<strong>Customer B</strong><br>
|
||||
<small>Ada info terbaru?</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/40" class="rounded-circle me-3" alt="Admin 1">
|
||||
<div>
|
||||
<strong>Admin 1</strong><br>
|
||||
<small>Pesan terakhir...</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
|
||||
<!-- Sudah dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/41" class="rounded-circle me-3" alt="Customer A">
|
||||
<div>
|
||||
<strong>Customer A</strong><br>
|
||||
<small>Halo kak, saya mau tanya...</small>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/42" class="rounded-circle me-3" alt="Customer B">
|
||||
<div>
|
||||
<strong>Customer B</strong><br>
|
||||
<small>Ada info terbaru?</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/40" class="rounded-circle me-3" alt="Admin 1">
|
||||
<div>
|
||||
<strong>Admin 1</strong><br>
|
||||
<small>Pesan terakhir...</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
|
||||
<!-- Sudah dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/41" class="rounded-circle me-3" alt="Customer A">
|
||||
<div>
|
||||
<strong>Customer A</strong><br>
|
||||
<small>Halo kak, saya mau tanya...</small>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- Belum dibaca -->
|
||||
<li class="list-group-item d-flex align-items-center justify-content-between hover-item">
|
||||
<div class="d-flex align-items-center">
|
||||
<img src="https://i.pravatar.cc/42" class="rounded-circle me-3" alt="Customer B">
|
||||
<div>
|
||||
<strong>Customer B</strong><br>
|
||||
<small>Ada info terbaru?</small>
|
||||
</div>
|
||||
</div>
|
||||
<span class="badge unread"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
document.querySelectorAll('.filter-btn').forEach(btn => {
|
||||
btn.addEventListener('click', function() {
|
||||
document.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
|
||||
this.classList.add('active');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user