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" >
2018-01-25 11:18:31 +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" >
2018-03-07 12:58:01 +00:00
< ul * ngIf = "weekList1" class = "horizontal-bars type-2" >
< li * ngIf = "weekEssential1" >
2018-03-02 16:31:14 +00:00
< span class = "title" > Essential Purchases< / span >
2018-03-19 17:52:54 +00:00
< span class = "value" > {{ ( weekEssential1 ? weekEssential1.value : 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ ( weekEssential1 ? weekEssential1.value : 0 ) / weekListValueSum1 | percent:'1.0-0' }})< / span > < / span >
2018-03-02 16:31:14 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
[style.width]="(weekEssential1.value || 0 ) / weekListValueSum1 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList1 | slice:0:categoryLimit1; let i=index;" >
2018-03-19 17:52:54 +00:00
< span class = "title" > {{ categoryList[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" >
2018-01-25 11:18:31 +00:00
({{ (categoryEntry.value || 0 ) / weekListValueSum1 | 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-25 11:18:31 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueSum1 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-22 17:23:56 +00:00
< / div >
< / div >
< / li >
2018-03-07 12:58:01 +00:00
< div * ngIf = "weekList1" >
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-25 11:18:31 +00:00
< h4 class = "card-title float-left mb-0" > Purchases 1 Week Ago< / h4 >
2018-01-22 17:23:56 +00:00
< / div > <!-- /.col -->
< / div > <!-- /.row -->
< div class = "chart-wrapper" >
2018-03-07 12:58:01 +00:00
< ul * ngIf = "weekList2" class = "horizontal-bars type-2" >
< li * ngIf = "weekEssential2" >
2018-03-02 16:31:14 +00:00
< span class = "title" > Essential Purchases< / span >
2018-03-19 17:52:54 +00:00
< span class = "value" > {{ ( weekEssential2 ? weekEssential2.value : 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ ( weekEssential2 ? weekEssential2.value : 0 ) / weekListValueSum2 | percent:'1.0-0' }})< / span > < / span >
2018-03-02 16:31:14 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
[style.width]="(weekEssential2.value || 0 ) / weekListValueSum2 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList2 | slice:0:categoryLimit2; let i=index;" >
2018-03-19 17:52:54 +00:00
< span class = "title" > {{ categoryList[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" >
2018-01-25 11:18:31 +00:00
({{ (categoryEntry.value || 0 ) / weekListValueSum2 | 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-25 11:18:31 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueSum2 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-22 17:23:56 +00:00
< / div >
< / div >
< / li >
2018-03-07 12:58:01 +00:00
< div * ngIf = "weekList2" >
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-25 11:18:31 +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" >
2018-03-07 12:58:01 +00:00
< ul * ngIf = "weekList3" class = "horizontal-bars type-2" >
< li * ngIf = "weekEssential3" >
2018-03-02 16:31:14 +00:00
< span class = "title" > Essential Purchases< / span >
2018-03-19 17:52:54 +00:00
< span class = "value" > {{ ( weekEssential3 ? weekEssential3.value : 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ ( weekEssential3 ? weekEssential3.value : 0 ) / weekListValueSum3 | percent:'1.0-0' }})< / span > < / span >
2018-03-02 16:31:14 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
[style.width]="(weekEssential3.value || 0 ) / weekListValueSum3 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList3 | slice:0:categoryLimit3; let i=index;" >
2018-03-19 17:52:54 +00:00
< span class = "title" > {{ categoryList[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" >
2018-01-25 11:18:31 +00:00
({{ (categoryEntry.value || 0 ) / weekListValueSum3 | 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-25 11:18:31 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueSum3 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-22 17:23:56 +00:00
< / div >
< / div >
< / li >
2018-03-07 12:58:01 +00:00
< div * ngIf = "weekList3" >
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-25 11:18:31 +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" >
2018-03-07 12:58:01 +00:00
< ul * ngIf = "weekList4" class = "horizontal-bars type-2" >
< li * ngIf = "weekEssential4" >
2018-03-02 16:31:14 +00:00
< span class = "title" > Essential Purchases< / span >
2018-03-19 17:52:54 +00:00
< span class = "value" > {{ ( weekEssential4 ? weekEssential4.value : 0 ) | currency:'GBP':'symbol':'1.2-2' }} < span class = "text-muted small" >
({{ ( weekEssential4 ? weekEssential4.value : 0 ) / weekListValueSum4 | percent:'1.0-0' }})< / span > < / span >
2018-03-02 16:31:14 +00:00
< div class = "bars" >
< div class = "progress" style = "height: 6px;" >
< div class = "progress-bar bg-success" role = "progressbar"
[style.width]="(weekEssential4.value || 0 ) / weekListValueSum4 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
< / div >
< / div >
< / li >
2018-01-24 12:38:58 +00:00
< li * ngFor = "let categoryEntry of weekList4 | slice:0:categoryLimit4; let i=index;" >
2018-03-19 17:52:54 +00:00
< span class = "title" > {{ categoryList[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" >
2018-01-25 11:18:31 +00:00
({{ (categoryEntry.value || 0 ) / weekListValueSum4 | 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-25 11:18:31 +00:00
[style.width]="(categoryEntry.value || 0 ) / weekListValueSum4 | percent:'1.0-0'" aria-valuemin="0" aria-valuemax="100">< / div >
2018-01-17 17:36:28 +00:00
< / div >
< / div >
< / li >
2018-03-07 12:58:01 +00:00
< div * ngIf = "weekList4" >
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 >