Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
El-Captain Sports Management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
El-Captain Sports Management
Commits
b8cde029
Commit
b8cde029
authored
Jul 26, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix isEmpty() on array — wrap DB::select results in collect()
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
ea44efee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SubscriptionRevenueWidget.php
app/Livewire/Dashboard/SubscriptionRevenueWidget.php
+2
-2
No files found.
app/Livewire/Dashboard/SubscriptionRevenueWidget.php
View file @
b8cde029
...
@@ -42,10 +42,10 @@ public function render()
...
@@ -42,10 +42,10 @@ public function render()
:
(
$totalSubscriptionRevenue
>
0
?
100
:
0
);
:
(
$totalSubscriptionRevenue
>
0
?
100
:
0
);
// Revenue by activity
// Revenue by activity
$byActivity
=
$this
->
getRevenueByActivity
(
$startDate
,
$academyId
);
$byActivity
=
collect
(
$this
->
getRevenueByActivity
(
$startDate
,
$academyId
)
);
// Top programs by subscription revenue
// Top programs by subscription revenue
$topPrograms
=
$this
->
getTopPrograms
(
$startDate
,
$academyId
);
$topPrograms
=
collect
(
$this
->
getTopPrograms
(
$startDate
,
$academyId
)
);
// Enrollment counts
// Enrollment counts
$newEnrollments
=
Enrollment
::
where
(
'created_at'
,
'>='
,
$startDate
)
$newEnrollments
=
Enrollment
::
where
(
'created_at'
,
'>='
,
$startDate
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment