-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/split-pricing' into split-pricing
- Loading branch information
Showing
8 changed files
with
191 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
views/components/elements/dashboard/offerings-stats-widgets.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import './css/style.css'; | ||
|
||
class OfferingsStatsWidgets extends React.Component { | ||
|
||
constructor(props){ | ||
super(props); | ||
} | ||
|
||
render(){ | ||
let self = this; | ||
let analytics = self.props.data; | ||
return ( | ||
<div className="offerings-widgets row"> | ||
<div className="offerings-widget master col-md-2">Total Offerings: <b>{analytics.offeringStats.total}</b></div> | ||
<div className="offerings-widget col-md-3">Subscriptions: <span className="status-badge green"><b>{analytics.offeringStats.totalSubscription}</b></span></div> | ||
<div className="offerings-widget col-md-3">Scheduled Payments: <span className="status-badge green"><b>{analytics.offeringStats.totalSplit}</b></span></div> | ||
<div className="offerings-widget col-md-2">One Times: <span className="status-badge green"><b>{analytics.offeringStats.totalOneTime}</b></span></div> | ||
<div className="offerings-widget col-md-2">Quotes: <span className="status-badge green"><b>{analytics.offeringStats.totalQuote}</b></span></div> | ||
</div> | ||
); | ||
} | ||
|
||
} | ||
|
||
export default OfferingsStatsWidgets; |
37 changes: 37 additions & 0 deletions
37
views/components/elements/dashboard/overall-stats-widgets.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import './css/style.css'; | ||
import {Widget} from "../../elements/dashboard/dashboard-widgets.jsx"; | ||
import {CustomerStatusChart} from "../../elements/dashboard/dashboard-chart.jsx"; | ||
|
||
class OverallStatsWidgets extends React.Component { | ||
|
||
|
||
constructor(props){ | ||
super(props); | ||
} | ||
|
||
render(){ | ||
let self = this; | ||
let analytics = self.props.data; | ||
let saleStat = []; | ||
saleStat.push({label:'Total Sales', value: analytics.salesStats.overall.total}); | ||
saleStat.push({label:'Customers who Purchased', value: analytics.salesStats.overall.customersWithOfferings}); | ||
saleStat.push({label:'Active Sales', value: analytics.salesStats.overall.activeSales}); | ||
saleStat.push({label:'Requested Sales', value: analytics.salesStats.overall.requested}); | ||
saleStat.push({label:'Waiting Cancellations', value: analytics.salesStats.overall.waitingCancellation}); | ||
saleStat.push({label:'Cancelled Sales', value: analytics.salesStats.overall.cancelled}); | ||
return ( | ||
<div className="row m-0"> | ||
<div className="dashboard-widgets p-0 col-md-4"> | ||
<Widget data={{label: 'Sales Stat', list: saleStat}} postFix="/yr" purple={true}/> | ||
</div> | ||
<div className="customer-chart-widget col-md-8"> | ||
<CustomerStatusChart className="dashboard-charts"/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
} | ||
|
||
export default OverallStatsWidgets; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters