diff --git a/resources/views/admin/ban-appeal/index.blade.php b/resources/views/admin/ban-appeal/index.blade.php index 7801923a6..5240ce8a6 100644 --- a/resources/views/admin/ban-appeal/index.blade.php +++ b/resources/views/admin/ban-appeal/index.blade.php @@ -26,7 +26,7 @@ - {{ $banAppeal->gamePlayerBan->bannerPlayer->getBanReadableName() ?? 'No Alias' }} + {{ $banAppeal->gamePlayerBan->bannerPlayer?->getBanReadableName() ?? 'No Alias' }} diff --git a/resources/views/front/components/navbar.blade.php b/resources/views/front/components/navbar.blade.php index 0e7a6ad7a..9c776276c 100644 --- a/resources/views/front/components/navbar.blade.php +++ b/resources/views/front/components/navbar.blade.php @@ -18,11 +18,11 @@
  • Information
  • diff --git a/resources/views/front/components/sitemap.blade.php b/resources/views/front/components/sitemap.blade.php index 9a1f06351..fe56d98e3 100644 --- a/resources/views/front/components/sitemap.blade.php +++ b/resources/views/front/components/sitemap.blade.php @@ -6,9 +6,9 @@ diff --git a/resources/views/front/pages/ban-appeal/show.blade.php b/resources/views/front/pages/ban-appeal/show.blade.php index 5f76d843a..8693f0da5 100644 --- a/resources/views/front/pages/ban-appeal/show.blade.php +++ b/resources/views/front/pages/ban-appeal/show.blade.php @@ -51,7 +51,7 @@
    - +
    @@ -73,11 +73,11 @@ @endif
    - {{$banAppeal->deciderAccount->username }} • {{ $banAppeal->decided_at }} + {{$banAppeal->deciderAccount?->username }} • {{ $banAppeal->decided_at }}
    - +
    @endif diff --git a/routes/web_redirects.php b/routes/web_redirects.php index 8068fb833..73e57b2e0 100644 --- a/routes/web_redirects.php +++ b/routes/web_redirects.php @@ -2,9 +2,35 @@ use Illuminate\Support\Facades\Route; -Route::permanentRedirect('terms', 'https://forums.projectcitybuild.com/t/community-rules/22928')->name('terms'); -Route::permanentRedirect('privacy', 'https://forums.projectcitybuild.com/privacy')->name('privacy'); -Route::permanentRedirect('wiki', 'https://wiki.projectcitybuild.com')->name('wiki'); -Route::permanentRedirect('maps', 'https://maps.pcbmc.co')->name('maps'); -Route::permanentRedirect('3d-maps', 'https://3d.pcbmc.co')->name('3d-maps'); -Route::permanentRedirect('report', 'https://forums.projectcitybuild.com/w/player-report')->name('report'); +Route::permanentRedirect('terms', 'https://forums.projectcitybuild.com/t/community-rules/22928') + ->name('terms'); + +Route::permanentRedirect('privacy', 'https://forums.projectcitybuild.com/privacy') + ->name('privacy'); + +Route::permanentRedirect('wiki', 'https://wiki.projectcitybuild.com') + ->name('wiki'); + +Route::permanentRedirect('maps', 'https://maps.pcbmc.co') + ->name('maps'); + +Route::permanentRedirect('3d-maps', 'https://3d.pcbmc.co') + ->name('3d-maps'); + +Route::permanentRedirect('report', 'https://docs.google.com/forms/d/e/1FAIpQLSerzdjDmc-xM26ZiDqIKN0d1gjjmRomFKg6efdHxXqir6QIMQ/viewform') + ->name('report'); + +Route::permanentRedirect('rules', 'https://portal.projectcitybuild.com/books/rules/page/community-rules') + ->name('rules'); + +Route::permanentRedirect('ranks', 'https://portal.projectcitybuild.com/books/player-ranks/page/list-of-ranks') + ->name('ranks'); + +Route::permanentRedirect('staff', 'https://portal.projectcitybuild.com/books/list-of-staff/page/active') + ->name('staff'); + +Route::permanentRedirect('vote', 'https://portal.projectcitybuild.com/books/server-voting/page/server-voting') + ->name('vote'); + +Route::permanentRedirect('map-archive', 'https://portal.projectcitybuild.com/books/map-archive/page/map-archive') + ->name('map-archive');