|
|
@@ -58,6 +58,11 @@ class Balance extends Controller
|
|
|
$data['data'] = $query->orderByDesc('id')
|
|
|
->forPage($page, $limit)->with(['member'])
|
|
|
->get()->toArray();
|
|
|
+ $data['change_types'] = BalanceLog::::select('change_types')
|
|
|
+ ->groupBy('change_types')
|
|
|
+ ->get();
|
|
|
+
|
|
|
+
|
|
|
} catch (ValidationException $e) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
|
|
|
} catch (Exception $e) {
|