diff --git a/app/Http/Livewire/Meetup/Form/MeetupEventForm.php b/app/Http/Livewire/Meetup/Form/MeetupEventForm.php
index b9ad2452..8c3386b2 100644
--- a/app/Http/Livewire/Meetup/Form/MeetupEventForm.php
+++ b/app/Http/Livewire/Meetup/Form/MeetupEventForm.php
@@ -74,6 +74,33 @@ class MeetupEventForm extends Component
}
}
+ public function deleteMe()
+ {
+ $this->dialog()
+ ->confirm(
+ [
+ 'title' => __('Delete event'),
+ 'description' => __('Are you sure you want to delete this event? This action cannot be undone.'),
+ 'icon' => 'warning',
+ 'accept' => [
+ 'label' => __('Yes, delete'),
+ 'method' => 'deleteEvent',
+ ],
+ 'reject' => [
+ 'label' => __('No, cancel'),
+ 'method' => 'cancel',
+ ],
+ ]
+ );
+ }
+
+ public function deleteEvent()
+ {
+ $this->meetupEvent->delete();
+
+ return to_route('meetup.table.meetupEvent', ['country' => $this->country]);
+ }
+
public function submit()
{
$this->validate();
diff --git a/composer.json b/composer.json
index 6ce2ce06..02d32375 100644
--- a/composer.json
+++ b/composer.json
@@ -96,6 +96,8 @@
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
+ "@php artisan vendor:publish --tag='wireui.resources'",
+ "@php artisan vendor:publish --tag='wireui.lang'",
"@php artisan nova:publish"
],
"post-root-package-install": [
diff --git a/composer.lock b/composer.lock
index 5116314b..dd407ec9 100644
--- a/composer.lock
+++ b/composer.lock
@@ -7454,16 +7454,16 @@
},
{
"name": "sentry/sentry",
- "version": "3.12.1",
+ "version": "3.13.0",
"source": {
"type": "git",
"url": "https://github.com/getsentry/sentry-php.git",
- "reference": "155bb9b78438999de4529d6f051465be15a58bc5"
+ "reference": "a046ff5a37f5a0a0c285a6543dc17a7fc93b47f8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/155bb9b78438999de4529d6f051465be15a58bc5",
- "reference": "155bb9b78438999de4529d6f051465be15a58bc5",
+ "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/a046ff5a37f5a0a0c285a6543dc17a7fc93b47f8",
+ "reference": "a046ff5a37f5a0a0c285a6543dc17a7fc93b47f8",
"shasum": ""
},
"require": {
@@ -7508,7 +7508,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.12.x-dev"
+ "dev-master": "3.13.x-dev"
}
},
"autoload": {
@@ -7542,7 +7542,7 @@
],
"support": {
"issues": "https://github.com/getsentry/sentry-php/issues",
- "source": "https://github.com/getsentry/sentry-php/tree/3.12.1"
+ "source": "https://github.com/getsentry/sentry-php/tree/3.13.0"
},
"funding": [
{
@@ -7554,7 +7554,7 @@
"type": "custom"
}
],
- "time": "2023-01-12T12:24:27+00:00"
+ "time": "2023-02-03T10:03:13+00:00"
},
{
"name": "sentry/sentry-laravel",
@@ -9055,16 +9055,16 @@
},
{
"name": "spatie/laravel-permission",
- "version": "5.8.0",
+ "version": "5.9.1",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-permission.git",
- "reference": "9f5a74f858d22ecefd9ee44a0ac64a95fd0bf755"
+ "reference": "a88ed98c8937442737e0c50163682e832d608f13"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/9f5a74f858d22ecefd9ee44a0ac64a95fd0bf755",
- "reference": "9f5a74f858d22ecefd9ee44a0ac64a95fd0bf755",
+ "url": "https://api.github.com/repos/spatie/laravel-permission/zipball/a88ed98c8937442737e0c50163682e832d608f13",
+ "reference": "a88ed98c8937442737e0c50163682e832d608f13",
"shasum": ""
},
"require": {
@@ -9072,7 +9072,7 @@
"illuminate/container": "^7.0|^8.0|^9.0|^10.0",
"illuminate/contracts": "^7.0|^8.0|^9.0|^10.0",
"illuminate/database": "^7.0|^8.0|^9.0|^10.0",
- "php": "^7.3|^8.0|^8.1"
+ "php": "^7.3|^8.0"
},
"require-dev": {
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
@@ -9125,7 +9125,7 @@
],
"support": {
"issues": "https://github.com/spatie/laravel-permission/issues",
- "source": "https://github.com/spatie/laravel-permission/tree/5.8.0"
+ "source": "https://github.com/spatie/laravel-permission/tree/5.9.1"
},
"funding": [
{
@@ -9133,7 +9133,7 @@
"type": "github"
}
],
- "time": "2023-01-14T05:16:37+00:00"
+ "time": "2023-02-06T21:37:02+00:00"
},
{
"name": "spatie/laravel-ray",
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 728dd67c..ddd96ef9 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -31,7 +31,7 @@
@mapstyles
@mapscripts
-