129129 font-size : 0.85rem ;
130130}
131131
132+ .filter-chip .count {
133+ background : rgba (0 , 0 , 0 , 0.1 );
134+ padding : 0.1rem 0.4rem ;
135+ border-radius : 10px ;
136+ font-size : 0.7rem ;
137+ margin-left : 0.25rem ;
138+ }
139+
140+ .filter-chip .active .count {
141+ background : rgba (255 , 255 , 255 , 0.2 );
142+ }
143+
132144.filter-divider {
133145 width : 1px ;
134146 height : 24px ;
368380/* Pin Button */
369381.pin-btn {
370382 position : absolute;
371- top : 0.5 rem ;
383+ top : 0.75 rem ;
372384 right : 0.5rem ;
373385 width : 32px ;
374386 height : 32px ;
462474 background : # 2a2a2a ;
463475}
464476
477+ body .dark-mode .pin-btn .pinned {
478+ background : # 4a3f1f ;
479+ }
480+
481+ body .dark-mode .pin-btn .pinned i {
482+ color : # ffc107 ;
483+ }
484+
465485body .dark-mode .meta-item {
466486 color : # 999 ;
467487}
@@ -611,19 +631,17 @@ <h1>{% trans "Inventory" %}</h1>
611631 < div class ="mobile-filters ">
612632 < div class ="mobile-filter-row ">
613633 < select class ="mobile-filter-select " id ="mobileStatusFilter " onchange ="applyMobileFilters() ">
614- < option value ="available " {% if item_status == 'available ' or not item_status %}selected{% endif %} > {% trans "Available" %}</ option >
615- < option value ="soon_expiring " {% if item_status == 'soon_expiring ' %}selected{% endif %} > {% trans "Expiring Soon" %}</ option >
616- < option value ="used " {% if item_status == 'used ' %}selected{% endif %} > {% trans "Used" %}</ option >
617- < option value ="expired " {% if item_status == 'expired ' %}selected{% endif %} > {% trans "Expired" %}</ option >
618- < option value ="shared_by_me " {% if item_status == 'shared_by_me ' %}selected{% endif %} > {% trans "Shared By Me" %}</ option >
619- < option value ="shared_with_me " {% if item_status == 'shared_with_me ' %}selected{% endif %} > {% trans "Shared With Me" %}</ option >
634+ < option value ="available " {% if item_status == 'available ' or not item_status %}selected{% endif %} > {% trans "Available" %} ({{ available_count }})</ option >
635+ < option value ="soon_expiring " {% if item_status == 'soon_expiring ' %}selected{% endif %} > {% trans "Expiring Soon" %} ({{ soon_expiring_count }})</ option >
636+ < option value ="used " {% if item_status == 'used ' %}selected{% endif %} > {% trans "Used" %} ({{ used_count }})</ option >
637+ < option value ="expired " {% if item_status == 'expired ' %}selected{% endif %} > {% trans "Expired" %} ({{ expired_count }})</ option >
620638 </ select >
621639 < select class ="mobile-filter-select " id ="mobileTypeFilter " onchange ="applyMobileFilters() ">
622- < option value ="" {% if not item_type %}selected{% endif %} > {% trans "All Types" %}</ option >
623- < option value ="voucher " {% if item_type == 'voucher ' %}selected{% endif %} > {% trans "Vouchers" %}</ option >
624- < option value ="giftcard " {% if item_type == 'giftcard ' %}selected{% endif %} > {% trans "Gift Cards" %}</ option >
625- < option value ="coupon " {% if item_type == 'coupon ' %}selected{% endif %} > {% trans "Coupons" %}</ option >
626- < option value ="loyaltycard " {% if item_type == 'loyaltycard ' %}selected{% endif %} > {% trans "Loyalty Cards" %}</ option >
640+ < option value ="" {% if not item_type %}selected{% endif %} > {% trans "All Types" %} ({{ all_types_count }}) </ option >
641+ < option value ="voucher " {% if item_type == 'voucher ' %}selected{% endif %} > {% trans "Vouchers" %} ({{ voucher_count }}) </ option >
642+ < option value ="giftcard " {% if item_type == 'giftcard ' %}selected{% endif %} > {% trans "Gift Cards" %} ({{ giftcard_count }}) </ option >
643+ < option value ="coupon " {% if item_type == 'coupon ' %}selected{% endif %} > {% trans "Coupons" %} ({{ coupon_count }}) </ option >
644+ < option value ="loyaltycard " {% if item_type == 'loyaltycard ' %}selected{% endif %} > {% trans "Loyalty Cards" %} ({{ loyaltycard_count }}) </ option >
627645 </ select >
628646 </ div >
629647 </ div >
@@ -634,18 +652,22 @@ <h1>{% trans "Inventory" %}</h1>
634652 < a href ="?{% if item_type %}type={{ item_type }}&{% endif %}status=available{% if search_query %}&query={{ search_query }}{% endif %} "
635653 class ="filter-chip {% if item_status == 'available' or not item_status %}active{% endif %} ">
636654 < i class ="bi bi-check-circle "> </ i > {% trans "Available" %}
655+ < span class ="count "> {{ available_count }}</ span >
637656 </ a >
638657 < a href ="?{% if item_type %}type={{ item_type }}&{% endif %}status=soon_expiring{% if search_query %}&query={{ search_query }}{% endif %} "
639658 class ="filter-chip {% if item_status == 'soon_expiring' %}active{% endif %} ">
640659 < i class ="bi bi-clock-history "> </ i > {% trans "Expiring Soon" %}
660+ < span class ="count "> {{ soon_expiring_count }}</ span >
641661 </ a >
642662 < a href ="?{% if item_type %}type={{ item_type }}&{% endif %}status=used{% if search_query %}&query={{ search_query }}{% endif %} "
643663 class ="filter-chip {% if item_status == 'used' %}active{% endif %} ">
644664 < i class ="bi bi-check2-all "> </ i > {% trans "Used" %}
665+ < span class ="count "> {{ used_count }}</ span >
645666 </ a >
646667 < a href ="?{% if item_type %}type={{ item_type }}&{% endif %}status=expired{% if search_query %}&query={{ search_query }}{% endif %} "
647668 class ="filter-chip {% if item_status == 'expired' %}active{% endif %} ">
648669 < i class ="bi bi-x-circle "> </ i > {% trans "Expired" %}
670+ < span class ="count "> {{ expired_count }}</ span >
649671 </ a >
650672
651673 < span class ="filter-divider "> </ span >
@@ -654,34 +676,27 @@ <h1>{% trans "Inventory" %}</h1>
654676 < a href ="?status={{ item_status }}{% if search_query %}&query={{ search_query }}{% endif %} "
655677 class ="filter-chip {% if not item_type %}active{% endif %} ">
656678 {% trans "All Types" %}
679+ < span class ="count "> {{ all_types_count }}</ span >
657680 </ a >
658681 < a href ="?type=voucher&status={{ item_status }}{% if search_query %}&query={{ search_query }}{% endif %} "
659682 class ="filter-chip {% if item_type == 'voucher' %}active{% endif %} ">
660683 < i class ="bi bi-ticket-perforated "> </ i > {% trans "Vouchers" %}
684+ < span class ="count "> {{ voucher_count }}</ span >
661685 </ a >
662686 < a href ="?type=giftcard&status={{ item_status }}{% if search_query %}&query={{ search_query }}{% endif %} "
663687 class ="filter-chip {% if item_type == 'giftcard' %}active{% endif %} ">
664688 < i class ="bi bi-gift "> </ i > {% trans "Gift Cards" %}
689+ < span class ="count "> {{ giftcard_count }}</ span >
665690 </ a >
666691 < a href ="?type=coupon&status={{ item_status }}{% if search_query %}&query={{ search_query }}{% endif %} "
667692 class ="filter-chip {% if item_type == 'coupon' %}active{% endif %} ">
668693 < i class ="bi bi-percent "> </ i > {% trans "Coupons" %}
694+ < span class ="count "> {{ coupon_count }}</ span >
669695 </ a >
670696 < a href ="?type=loyaltycard&status={{ item_status }}{% if search_query %}&query={{ search_query }}{% endif %} "
671697 class ="filter-chip {% if item_type == 'loyaltycard' %}active{% endif %} ">
672698 < i class ="bi bi-star "> </ i > {% trans "Loyalty" %}
673- </ a >
674-
675- < span class ="filter-divider "> </ span >
676-
677- <!-- Sharing Filters -->
678- < a href ="?status=shared_by_me{% if search_query %}&query={{ search_query }}{% endif %} "
679- class ="filter-chip {% if item_status == 'shared_by_me' %}active{% endif %} ">
680- < i class ="bi bi-box-arrow-up "> </ i > {% trans "Shared By Me" %}
681- </ a >
682- < a href ="?status=shared_with_me{% if search_query %}&query={{ search_query }}{% endif %} "
683- class ="filter-chip {% if item_status == 'shared_with_me' %}active{% endif %} ">
684- < i class ="bi bi-box-arrow-in-down "> </ i > {% trans "Shared With Me" %}
699+ < span class ="count "> {{ loyaltycard_count }}</ span >
685700 </ a >
686701 </ div >
687702
0 commit comments