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()])
|
->whereBetween('date', [$startAt->toDateString(), $endAt->toDateString()])
|
||||||
->groupBy(['month', 'ledger_item_type_id'])
|
->groupBy(['month', 'ledger_item_type_id'])
|
||||||
->get()
|
->get()
|
||||||
->keyBy('month');
|
->groupBy('month');
|
||||||
|
|
||||||
for ($i=0; $i < $months; $i++) {
|
for ($i=0; $i < $months; $i++) {
|
||||||
$month = $startAt->format('Y-m');
|
$month = $startAt->format('Y-m');
|
||||||
|
|
@ -194,7 +194,7 @@ class CockpitController extends Controller
|
||||||
return [
|
return [
|
||||||
'lottery_types' => $lotteryTypes->map(function ($lotteryType) {
|
'lottery_types' => $lotteryTypes->map(function ($lotteryType) {
|
||||||
return [
|
return [
|
||||||
'id' => $lotteryType->id,
|
'id' => $lotteryType->key,
|
||||||
'name' => $lotteryType->name,
|
'name' => $lotteryType->name,
|
||||||
];
|
];
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue