wallet transaction type

This commit is contained in:
omair saleh
2022-08-24 15:19:00 +08:00
parent 05c4a646d8
commit ee5a9d09f1
@@ -58,14 +58,14 @@ class ExportsWalletTransactions implements FromQuery, WithHeadings, WithHeadingR
default : $type = TransactionType::TOP_UP;
}
$start_date = $this->request->input('start_date', null);
$start_date = $this->request->input('startDate', null);
if ($start_date) {
$start_date = Carbon::parse($this->request->input('start_date'))->format('Y-m-d');
$start_date = Carbon::parse($this->request->input('startDate'))->format('Y-m-d');
}
$end_date = $this->request->input('end_date', null);
$end_date = $this->request->input('endDate', null);
if ($end_date) {
$end_date = Carbon::parse($this->request->input('end_date'))->format('Y-m-d');
$end_date = Carbon::parse($this->request->input('endDate'))->format('Y-m-d');
}
$query = Transaction::query();