This commit is contained in:
pbao9
2026-01-30 10:49:48 +07:00
parent 891fe5d161
commit 68ee544ecb
137 changed files with 12519 additions and 695 deletions
@@ -19,6 +19,22 @@
{{ __('Thông tin giao dịch') }}
</h2>
<div class="space-y-4">
{{-- Order Number --}}
<div class="flex justify-between items-center">
<span class="text-gray-600 font-medium">{{ __('Mã đơn hàng') }}</span>
<span class="text-sm flex items-center gap-2">
{{ $invoice->order_num }}
<button type="button" onclick="copyToClipboard('{{ $invoice->order_num }}')"
class="text-blue-600 hover:text-blue-800" title="Sao chép">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
</svg>
</button>
</span>
</div>
{{-- Registration Date --}}
<div class="flex justify-between items-center">
<span class="text-gray-600 font-medium">{{ __('Ngày đăng ký') }}</span>
@@ -66,5 +82,19 @@
<span class="text-gray-600 font-medium">{{ __('Trạng thái gia hạn tự động') }}</span>
<span class="bg-red-100 text-red-800 px-2 py-1 rounded text-xs">OFF</span>
</div>
<script>
function copyToClipboard(text, message = 'Đã sao chép!') {
if (navigator.clipboard) {
navigator.clipboard.writeText(text).then(() => {
if (typeof FuiToast !== 'undefined') {
FuiToast.success(message);
} else {
// Fallback
console.log('Copied:', text);
}
});
}
}
</script>
</div>
</div>