mixin CardGreetings
.card.bg-transparent-50.overflow-hidden&attributes(attributes)
.card-header.position-relative
+Background({image: "../assets/img/illustrations/ecommerce-bg.png", attrs: {style: {'background-size': '230px', 'background-position': 'right bottom','z-index':'-1'} }, className:'d-none d-md-block bg-card z-1'})
.position-relative.z-2
div
h3.text-primary.mb-1 Good Afternoon, Jonathan!
p Here’s what happening with your store today
.d-flex.py-3
.pe-3
p.text-600.fs-10.fw-medium Today's visit
h4.text-800.mb-0 14,209
.ps-3
p.text-600.fs-10 Today’s total sales
h4.text-800.mb-0 $21,349.29
.card-body.p-0
+GreetingsNotifications
mixin GreetingsNotifications
ul.mb-0.list-unstyled.list-group.font-sans-serif
-
var notifications = [
{
title: '5 products didn’t publish to your Facebook page',
linkText: 'View products',
color: 'warning'
},
{
title: '7 orders have payments that need to be captured',
linkText: 'View payments',
},
{
title: '50+ orders need to be fulfilled',
linkText: 'View orders',
}
];
each item, index in notifications
li.list-group-item.mb-0.rounded-0.py-3.px-x1(class=`${item.color ? `list-group-item-${item.color}` : 'greetings-item text-700'} ${index === notifications.length - 1 ? ' border-0' : 'border-x-0 border-top-0' }`)
.row.flex-between-center
.col
.d-flex
.fas.fa-circle.mt-1.fs-11(class=`${!item.color ? 'text-primary' : ''}`)
p.fs-10.ps-2.mb-0 !{item.title}
.col-auto.d-flex.align-items-center
a.fs-10.fw-medium(href='#!' class=`${item.color ? `text-${item.color}-emphasis` : ''}`) #{item.linkText}
i.fas.fa-chevron-right.ms-1.fs-11