generated from liutk/owl-admin-base
Update
parent
c4dbeaaf22
commit
317979606a
|
|
@ -168,7 +168,7 @@ class CockpitController extends Controller
|
|||
->whereBetween('date', [$startAt->toDateString(), $endAt->toDateString()])
|
||||
->groupBy(['month', 'ledger_item_type_id'])
|
||||
->get()
|
||||
->keyBy('month');
|
||||
->groupBy('month');
|
||||
|
||||
for ($i=0; $i < $months; $i++) {
|
||||
$month = $startAt->format('Y-m');
|
||||
|
|
@ -194,7 +194,7 @@ class CockpitController extends Controller
|
|||
return [
|
||||
'lottery_types' => $lotteryTypes->map(function ($lotteryType) {
|
||||
return [
|
||||
'id' => $lotteryType->id,
|
||||
'id' => $lotteryType->key,
|
||||
'name' => $lotteryType->name,
|
||||
];
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in New Issue