const app = require('../app') const { editIcon } = require('../assets') app.component('appLaborPage', { template: html`

Labor

Week Starting {{::weekday.min}} {{::weekday.short}} {{::weekday.name}} Actions
{{::week.workweek}}
{{::workday.regularHours + workday.overtimeHours}} h hrs hours N/A
{{::workday.laborCost | currency}}
Edit
`, controllerAs: 'ctrl', controller: function(api, $routeParams, weekdays) { this.locationKey = $routeParams.location this.weekdays = weekdays api.location($routeParams.location).then(location => { this.location = location }) this.promise = api.get(`/api/labor/${$routeParams.location}`).then(labor => { this.labor = labor }) } })