2025-01-03 01:13:17 +03:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
|
|
|
|
|
@Component({
|
2025-01-07 17:29:51 +03:00
|
|
|
standalone: true,
|
2025-01-03 11:53:59 +03:00
|
|
|
selector: 'app-stats-widget',
|
2025-01-03 01:13:17 +03:00
|
|
|
imports: [CommonModule],
|
2025-01-03 15:48:50 +03:00
|
|
|
template: `<div class="col-span-12 lg:col-span-6 xl:col-span-3">
|
2025-01-07 17:29:51 +03:00
|
|
|
<div class="card mb-0">
|
|
|
|
|
<div class="flex justify-between mb-4">
|
|
|
|
|
<div>
|
|
|
|
|
<span class="block text-muted-color font-medium mb-4">Orders</span>
|
|
|
|
|
<div class="text-surface-900 dark:text-surface-0 font-medium text-xl">152</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center justify-center bg-blue-100 dark:bg-blue-400/10 rounded-border" style="width: 2.5rem; height: 2.5rem">
|
2025-07-09 13:18:18 +03:00
|
|
|
<i class="pi pi-shopping-cart text-blue-500 text-xl!"></i>
|
2025-01-07 17:29:51 +03:00
|
|
|
</div>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
<span class="text-primary font-medium">24 new </span>
|
|
|
|
|
<span class="text-muted-color">since last visit</span>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
<div class="col-span-12 lg:col-span-6 xl:col-span-3">
|
|
|
|
|
<div class="card mb-0">
|
|
|
|
|
<div class="flex justify-between mb-4">
|
|
|
|
|
<div>
|
|
|
|
|
<span class="block text-muted-color font-medium mb-4">Revenue</span>
|
|
|
|
|
<div class="text-surface-900 dark:text-surface-0 font-medium text-xl">$2.100</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center justify-center bg-orange-100 dark:bg-orange-400/10 rounded-border" style="width: 2.5rem; height: 2.5rem">
|
2025-07-09 13:18:18 +03:00
|
|
|
<i class="pi pi-dollar text-orange-500 text-xl!"></i>
|
2025-01-07 17:29:51 +03:00
|
|
|
</div>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
<span class="text-primary font-medium">%52+ </span>
|
|
|
|
|
<span class="text-muted-color">since last week</span>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
<div class="col-span-12 lg:col-span-6 xl:col-span-3">
|
|
|
|
|
<div class="card mb-0">
|
|
|
|
|
<div class="flex justify-between mb-4">
|
|
|
|
|
<div>
|
|
|
|
|
<span class="block text-muted-color font-medium mb-4">Customers</span>
|
|
|
|
|
<div class="text-surface-900 dark:text-surface-0 font-medium text-xl">28441</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center justify-center bg-cyan-100 dark:bg-cyan-400/10 rounded-border" style="width: 2.5rem; height: 2.5rem">
|
2025-07-09 13:18:18 +03:00
|
|
|
<i class="pi pi-users text-cyan-500 text-xl!"></i>
|
2025-01-07 17:29:51 +03:00
|
|
|
</div>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
<span class="text-primary font-medium">520 </span>
|
|
|
|
|
<span class="text-muted-color">newly registered</span>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
<div class="col-span-12 lg:col-span-6 xl:col-span-3">
|
|
|
|
|
<div class="card mb-0">
|
|
|
|
|
<div class="flex justify-between mb-4">
|
|
|
|
|
<div>
|
|
|
|
|
<span class="block text-muted-color font-medium mb-4">Comments</span>
|
|
|
|
|
<div class="text-surface-900 dark:text-surface-0 font-medium text-xl">152 Unread</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center justify-center bg-purple-100 dark:bg-purple-400/10 rounded-border" style="width: 2.5rem; height: 2.5rem">
|
2025-07-09 13:18:18 +03:00
|
|
|
<i class="pi pi-comment text-purple-500 text-xl!"></i>
|
2025-01-07 17:29:51 +03:00
|
|
|
</div>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
<span class="text-primary font-medium">85 </span>
|
|
|
|
|
<span class="text-muted-color">responded</span>
|
2025-01-03 01:13:17 +03:00
|
|
|
</div>
|
2025-01-07 17:29:51 +03:00
|
|
|
</div>`
|
2025-01-03 01:13:17 +03:00
|
|
|
})
|
|
|
|
|
export class StatsWidget {}
|