voting added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-11 11:22:15 +01:00
parent 79b0f44143
commit 482470acdc
3 changed files with 15 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ use App\Models\CourseEvent;
use App\Models\LibraryItem;
use App\Models\MeetupEvent;
use App\Models\OrangePill;
use App\Models\ProjectProposal;
use Illuminate\Support\Facades\Cookie;
use Illuminate\Support\Facades\Route;
use Livewire\Component;
@@ -136,7 +137,7 @@ class Header extends Component
->orderByDesc('date')
->take(2)
->get(),
'projectProposals' => [],
'projectProposals' => ProjectProposal::query()->with(['votes'])->get(),
'cities' => City::query()
->select(['latitude', 'longitude'])
->get(),