351 lines
12 KiB
HTML
351 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="vi">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Hóa đơn đã mua - EuroTile Worker</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="assets/css/style.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<style>
|
|
.invoices-container {
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
background: #f8fafc;
|
|
min-height: calc(100vh - 120px);
|
|
padding: 20px;
|
|
}
|
|
|
|
.invoice-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
.invoice-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
|
|
border-color: #2563eb;
|
|
}
|
|
|
|
.invoice-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.invoice-codes {
|
|
flex: 1;
|
|
}
|
|
|
|
.invoice-id {
|
|
font-weight: 700;
|
|
color: #1f2937;
|
|
font-size: 16px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.invoice-date {
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.invoice-status {
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-paid {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.status-unpaid {
|
|
background: #fef3c7;
|
|
color: #d97706;
|
|
}
|
|
|
|
.status-partial {
|
|
background: #e0e7ff;
|
|
color: #3730a3;
|
|
}
|
|
|
|
.invoice-details {
|
|
padding: 12px 0;
|
|
border-top: 1px solid #f3f4f6;
|
|
border-bottom: 1px solid #f3f4f6;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.invoice-detail-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.invoice-detail-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.invoice-detail-label {
|
|
color: #6b7280;
|
|
}
|
|
|
|
.invoice-detail-value {
|
|
color: #1f2937;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.invoice-detail-value.total {
|
|
color: #dc2626;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.invoice-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.invoice-company {
|
|
font-size: 13px;
|
|
color: #6b7280;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.invoice-arrow {
|
|
color: #9ca3af;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 80px 20px;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.empty-state i {
|
|
font-size: 64px;
|
|
margin-bottom: 20px;
|
|
color: #d1d5db;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #374151;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.invoices-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.invoice-card {
|
|
padding: 14px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page-wrapper">
|
|
<!-- Header -->
|
|
<div class="header">
|
|
<a href="account.html" class="back-button">
|
|
<i class="fas fa-arrow-left"></i>
|
|
</a>
|
|
<h1 class="header-title">Hóa đơn đã mua</h1>
|
|
<div style="width: 32px;"></div>
|
|
</div>
|
|
|
|
<div class="invoices-container">
|
|
<!-- Invoice Card 1 - Paid -->
|
|
<div class="invoice-card" onclick="window.location.href='invoice-detail.html?id=INV20240001'">
|
|
<div class="invoice-header">
|
|
<div class="invoice-codes">
|
|
<div class="invoice-id">#INV20240001</div>
|
|
<div class="invoice-date">Ngày xuất: 03/08/2024</div>
|
|
</div>
|
|
<span class="invoice-status status-paid">Đã thanh toán</span>
|
|
</div>
|
|
|
|
<div class="invoice-details">
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Đơn hàng:</span>
|
|
<span class="invoice-detail-value">#DH001234</span>
|
|
</div>
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Tổng tiền:</span>
|
|
<span class="invoice-detail-value total">12.771.000đ</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!--<div class="invoice-footer">
|
|
<div class="invoice-company">
|
|
<i class="fas fa-building"></i>
|
|
<span>Lê Hoàng Hiệp</span>
|
|
</div>
|
|
<i class="fas fa-chevron-right invoice-arrow"></i>
|
|
</div>-->
|
|
</div>
|
|
|
|
<!-- Invoice Card 2 - Partial -->
|
|
<div class="invoice-card" onclick="window.location.href='invoice-detail.html?id=INV20240002'">
|
|
<div class="invoice-header">
|
|
<div class="invoice-codes">
|
|
<div class="invoice-id">#INV20240002</div>
|
|
<div class="invoice-date">Ngày xuất: 15/07/2024</div>
|
|
</div>
|
|
<span class="invoice-status status-partial">Thanh toán 1 phần</span>
|
|
</div>
|
|
|
|
<div class="invoice-details">
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Đơn hàng:</span>
|
|
<span class="invoice-detail-value">#DH001198</span>
|
|
</div>
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Tổng tiền:</span>
|
|
<span class="invoice-detail-value total">85.600.000đ</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!--<div class="invoice-footer">
|
|
<div class="invoice-company">
|
|
<i class="fas fa-building"></i>
|
|
<span>Công ty TNHH Xây dựng Minh Long</span>
|
|
</div>
|
|
<i class="fas fa-chevron-right invoice-arrow"></i>
|
|
</div>-->
|
|
</div>
|
|
|
|
<!-- Invoice Card 3 - Paid -->
|
|
<div class="invoice-card" onclick="window.location.href='invoice-detail.html?id=INV20240003'">
|
|
<div class="invoice-header">
|
|
<div class="invoice-codes">
|
|
<div class="invoice-id">#INV20240003</div>
|
|
<div class="invoice-date">Ngày xuất: 25/06/2024</div>
|
|
</div>
|
|
<span class="invoice-status status-paid">Đã thanh toán</span>
|
|
</div>
|
|
|
|
<div class="invoice-details">
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Đơn hàng:</span>
|
|
<span class="invoice-detail-value">#DH001087</span>
|
|
</div>
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Tổng tiền:</span>
|
|
<span class="invoice-detail-value total">42.500.000đ</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!--<div class="invoice-footer">
|
|
<div class="invoice-company">
|
|
<i class="fas fa-building"></i>
|
|
<span>Công ty TNHH Xây dựng Minh Long</span>
|
|
</div>
|
|
<i class="fas fa-chevron-right invoice-arrow"></i>
|
|
</div>-->
|
|
</div>
|
|
|
|
<!-- Invoice Card 4 - Unpaid -->
|
|
<div class="invoice-card" onclick="window.location.href='invoice-detail.html?id=INV20240004'">
|
|
<div class="invoice-header">
|
|
<div class="invoice-codes">
|
|
<div class="invoice-id">#INV20240004</div>
|
|
<div class="invoice-date">Ngày xuất: 10/06/2024</div>
|
|
</div>
|
|
<span class="invoice-status status-unpaid">Chưa thanh toán</span>
|
|
</div>
|
|
|
|
<div class="invoice-details">
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Đơn hàng:</span>
|
|
<span class="invoice-detail-value">#DH000945</span>
|
|
</div>
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Tổng tiền:</span>
|
|
<span class="invoice-detail-value total">28.300.000đ</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!--<div class="invoice-footer">
|
|
<div class="invoice-company">
|
|
<i class="fas fa-building"></i>
|
|
<span>Công ty TNHH Xây dựng Minh Long</span>
|
|
</div>
|
|
<i class="fas fa-chevron-right invoice-arrow"></i>
|
|
</div>-->
|
|
</div>
|
|
|
|
<!-- Invoice Card 5 - Paid -->
|
|
<div class="invoice-card" onclick="window.location.href='invoice-detail.html?id=INV20240005'">
|
|
<div class="invoice-header">
|
|
<div class="invoice-codes">
|
|
<div class="invoice-id">#INV20240005</div>
|
|
<div class="invoice-date">Ngày xuất: 15/05/2024</div>
|
|
</div>
|
|
<span class="invoice-status status-paid">Đã thanh toán</span>
|
|
</div>
|
|
|
|
<div class="invoice-details">
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Đơn hàng:</span>
|
|
<span class="invoice-detail-value">#DH000821</span>
|
|
</div>
|
|
<div class="invoice-detail-row">
|
|
<span class="invoice-detail-label">Tổng tiền:</span>
|
|
<span class="invoice-detail-value total">56.750.000đ</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!--<div class="invoice-footer">
|
|
<div class="invoice-company">
|
|
<i class="fas fa-building"></i>
|
|
<span>Công ty TNHH Xây dựng Minh Long</span>
|
|
</div>
|
|
<i class="fas fa-chevron-right invoice-arrow"></i>
|
|
</div>-->
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
// Add animation to cards on page load
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const cards = document.querySelectorAll('.invoice-card');
|
|
cards.forEach((card, index) => {
|
|
card.style.opacity = '0';
|
|
card.style.transform = 'translateY(20px)';
|
|
card.style.transition = 'all 0.5s ease';
|
|
|
|
setTimeout(() => {
|
|
card.style.opacity = '1';
|
|
card.style.transform = 'translateY(0)';
|
|
}, index * 100);
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |