mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
calendar added
This commit is contained in:
@@ -3,13 +3,30 @@
|
||||
namespace App\Http\Livewire\Meetup;
|
||||
|
||||
use App\Models\Country;
|
||||
use App\Models\MeetupEvent;
|
||||
use Livewire\Component;
|
||||
use WireUi\Traits\Actions;
|
||||
|
||||
class MeetupEventTable extends Component
|
||||
{
|
||||
use Actions;
|
||||
|
||||
public Country $country;
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.meetup.meetup-event-table');
|
||||
return view('livewire.meetup.meetup-event-table', [
|
||||
'events' => MeetupEvent::query()->get()->map(fn($event) => [
|
||||
'startDate' => $event->start,
|
||||
'endDate' => $event->start->endOfDay(),
|
||||
'location' => $event->location,
|
||||
'description' => $event->description,
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
||||
public function popover($content)
|
||||
{
|
||||
$this->notification()->success($content);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user