2018-01-17 17:36:28 +00:00
< div class = "animated fadeIn" >
< div class = row >
2018-01-24 12:38:58 +00:00
< div class = "col-md-6" >
2018-01-22 17:23:56 +00:00
< div class = "card" >
< div class = "card-block" >
< div class = "row" >
< div class = "col-12" >
< h4 class = "card-title float-left mb-0" > Purchases this week< / h4 >
< / div > <!-- /.col -->
< / div > <!-- /.row -->
< div class = "chart-wrapper" >
< ul class = "horizontal-bars type-2" >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList1 | slice:0:categoryLimit1; let i=index;" >
< span class = "title" > {{ categoryNameList[categoryEntry.category] || 'Uncategorised' }}< / span >
2018-01-24 13:18:51 +00:00
< span class = "value" > {{ ( categoryEntry.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ (categoryEntry.value || 0 ) / weekListValueMax1 | percent:'1.0-0' }})< / span > < / span >
2018-01-22 17:23:56 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
2018-01-24 13:18:51 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueMax1 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-22 17:23:56 +00:00
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< div * ngIf = "weekList1 !== undefined" >
2018-01-24 12:51:03 +00:00
< li * ngIf = "weekList1.length > categoryLimit1 && disableCategoryButton1 == false" class = "divider text-center" >
2018-01-24 12:38:58 +00:00
< button type = "button" class = "btn btn-sm btn-link text-muted" ( click ) = " loadMore1 ( ) " > < i class = "icon-options" > < / i > < / button >
< / li >
< / div >
2018-01-22 17:23:56 +00:00
< / ul >
< / div >
< / div >
< / div >
< / div > <!-- /.col -->
2018-01-24 12:38:58 +00:00
< div class = "col-md-6" >
2018-01-22 17:23:56 +00:00
< div class = "card" >
< div class = "card-block" >
< div class = "row" >
< div class = "col-12" >
2018-01-24 13:18:51 +00:00
< h4 class = "card-title float-left mb-0" > Purchases last week< / h4 >
2018-01-22 17:23:56 +00:00
< / div > <!-- /.col -->
< / div > <!-- /.row -->
< div class = "chart-wrapper" >
< ul class = "horizontal-bars type-2" >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList2 | slice:0:categoryLimit2; let i=index;" >
< span class = "title" > {{ categoryNameList[categoryEntry.category] || 'Uncategorised' }}< / span >
2018-01-24 13:18:51 +00:00
< span class = "value" > {{ ( categoryEntry.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ (categoryEntry.value || 0 ) / weekListValueMax2 | percent:'1.0-0' }})< / span > < / span >
2018-01-22 17:23:56 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
2018-01-24 13:18:51 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueMax2 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-22 17:23:56 +00:00
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< div * ngIf = "!weekList2 == null" >
2018-01-24 12:51:03 +00:00
< li * ngIf = "weekList2.length > categoryLimit2 && disableCategoryButtonFirst == false" class = "divider text-center" >
2018-01-24 12:38:58 +00:00
< button type = "button" class = "btn btn-sm btn-link text-muted" ( click ) = " loadMore2 ( ) " > < i class = "icon-options" > < / i > < / button >
< / li >
< / div >
2018-01-22 17:23:56 +00:00
< / ul >
< / div >
< / div >
< / div >
< / div > <!-- /.col -->
2018-01-24 12:38:58 +00:00
< div class = "col-md-6" >
2018-01-22 17:23:56 +00:00
< div class = "card" >
< div class = "card-block" >
< div class = "row" >
< div class = "col-12" >
2018-01-24 13:18:51 +00:00
< h4 class = "card-title float-left mb-0" > Purchases 2 weeks ago< / h4 >
2018-01-22 17:23:56 +00:00
< / div > <!-- /.col -->
< / div > <!-- /.row -->
< div class = "chart-wrapper" >
< ul class = "horizontal-bars type-2" >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList3 | slice:0:categoryLimit3; let i=index;" >
< span class = "title" > {{ categoryNameList[categoryEntry.category] || 'Uncategorised' }}< / span >
2018-01-24 13:18:51 +00:00
< span class = "value" > {{ ( categoryEntry.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ (categoryEntry.value || 0 ) / weekListValueMax3 | percent:'1.0-0' }})< / span > < / span >
2018-01-22 17:23:56 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
2018-01-24 13:18:51 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueMax3 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-22 17:23:56 +00:00
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< div * ngIf = "weekList3 !== undefined" >
2018-01-24 12:51:03 +00:00
< li * ngIf = "weekList3.length > categoryLimit3 && disableCategoryButtonFirst == false" class = "divider text-center" >
2018-01-24 12:38:58 +00:00
< button type = "button" class = "btn btn-sm btn-link text-muted" ( click ) = " loadMore3 ( ) " > < i class = "icon-options" > < / i > < / button >
< / li >
< / div >
2018-01-22 17:23:56 +00:00
< / ul >
< / div >
< / div >
< / div >
< / div > <!-- /.col -->
2018-01-24 12:38:58 +00:00
< div class = "col-md-6" >
2018-01-17 17:36:28 +00:00
< div class = "card" >
< div class = "card-block" >
< div class = "row" >
< div class = "col-12" >
2018-01-24 13:18:51 +00:00
< h4 class = "card-title float-left mb-0" > Purchases 3 weeks ago< / h4 >
2018-01-17 17:36:28 +00:00
< / div > <!-- /.col -->
< / div > <!-- /.row -->
< div class = "chart-wrapper" >
< ul class = "horizontal-bars type-2" >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList4 | slice:0:categoryLimit4; let i=index;" >
< span class = "title" > {{ categoryNameList[categoryEntry.category] || 'Uncategorised' }}< / span >
2018-01-24 13:18:51 +00:00
< span class = "value" > {{ ( categoryEntry.value || 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ (categoryEntry.value || 0 ) / weekListValueMax4 | percent:'1.0-0' }})< / span > < / span >
2018-01-17 17:36:28 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
2018-01-24 13:18:51 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueMax4 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-17 17:36:28 +00:00
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< div * ngIf = "!weekList4 == null" >
2018-01-24 12:51:03 +00:00
< li * ngIf = "weekList4.length > categoryLimit4 && disableCategoryButtonFirst == false" class = "divider text-center" >
2018-01-24 12:38:58 +00:00
< button type = "button" class = "btn btn-sm btn-link text-muted" ( click ) = " loadMore4 ( ) " > < i class = "icon-options" > < / i > < / button >
< / li >
< / div >
2018-01-17 17:36:28 +00:00
< / ul >
< / div >
< / div >
< / div >
< / div > <!-- /.col -->
< / div > <!-- /.row -->
< / div >