Describe the bug
the sponsorship sidemenu item does not show the amount of open sponsorships in a badge
To Reproduce
Steps to reproduce the behavior:
Log in as event organizer
Open the hub
See error
Expected behavior
A number representing the amount of companies where the is_sponsorship_approved attribute is not 1 should appear in the badge
Screenshots
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
Currently, the query used is: \App\Models\Company::where('is_sponsorship_approved', 0)->count(). However, the attribute value can be 1, 0 and <null>. It appears that this attribute is nullable. The query must be updated to cope with this
Describe the bug the sponsorship sidemenu item does not show the amount of open sponsorships in a badge
To Reproduce Steps to reproduce the behavior:
Expected behavior A number representing the amount of companies where the
is_sponsorship_approved
attribute is not 1 should appear in the badgeScreenshots![image](https://github.com/HZ-HBO-ICT/it-conference/assets/6419619/dfc09979-e9d2-4dff-84dc-cafb7963bd87)
Desktop (please complete the following information): N/A
Smartphone (please complete the following information): N/A
Additional context Currently, the query used is:
\App\Models\Company::where('is_sponsorship_approved', 0)->count()
. However, the attribute value can be1
,0
and<null>
. It appears that this attribute is nullable. The query must be updated to cope with this