This commit is contained in:
Hamza-Ayed
2023-11-06 18:25:23 +03:00
parent 942fa97a31
commit 8238323dd3
18 changed files with 5817 additions and 326 deletions

View File

@@ -16,6 +16,7 @@ class HomeCaptainController extends GetxController {
Timer? activeTimer;
Map data = {};
String totalMoneyToday = '0';
String totalMoneyInSEFER = '0';
String totalDurationToday = '0';
Timer? timer;
// Inject the LocationController class
@@ -89,7 +90,8 @@ class HomeCaptainController extends GetxController {
link: AppLink.getDriverpaymentToday,
payload: {'driverID': box.read(BoxName.driverID).toString()});
data = jsonDecode(res);
totalMoneyToday = data['message'][0]['total_amount'];
totalMoneyToday = data['message'][0]['todayAmount'];
totalMoneyInSEFER = data['message'][0]['total_amount'];
update();
}