Ken 2 недель назад
Родитель
Сommit
160df37537
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      app/Http/Controllers/admin/Balance.php

+ 5 - 0
app/Http/Controllers/admin/Balance.php

@@ -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) {