diff --git a/app/Widgets/RecentPilots.php b/app/Widgets/LatestPilots.php similarity index 82% rename from app/Widgets/RecentPilots.php rename to app/Widgets/LatestPilots.php index 4c4ef109..81e48de4 100644 --- a/app/Widgets/RecentPilots.php +++ b/app/Widgets/LatestPilots.php @@ -4,7 +4,7 @@ namespace App\Widgets; use App\Repositories\UserRepository; -class RecentPilots extends BaseWidget +class LatestPilots extends BaseWidget { protected $config = [ 'count' => 5, @@ -17,7 +17,7 @@ class RecentPilots extends BaseWidget { $userRepo = app(UserRepository::class); - return $this->view('widgets.recent_pilots', [ + return $this->view('widgets.latest_pilots', [ 'config' => $this->config, 'users' => $userRepo->recent($this->config['count']), ]); diff --git a/app/Widgets/RecentPireps.php b/app/Widgets/LatestPireps.php similarity index 82% rename from app/Widgets/RecentPireps.php rename to app/Widgets/LatestPireps.php index 601480c2..06d7a4d5 100644 --- a/app/Widgets/RecentPireps.php +++ b/app/Widgets/LatestPireps.php @@ -4,7 +4,7 @@ namespace App\Widgets; use App\Repositories\PirepRepository; -class RecentPireps extends BaseWidget +class LatestPireps extends BaseWidget { protected $config = [ 'count' => 5, @@ -17,7 +17,7 @@ class RecentPireps extends BaseWidget { $pirepRepo = app(PirepRepository::class); - return $this->view('widgets.recent_pireps', [ + return $this->view('widgets.latest_pireps', [ 'config' => $this->config, 'pireps' => $pirepRepo->recent($this->config['count']), ]); diff --git a/resources/views/layouts/default/dashboard/index.blade.php b/resources/views/layouts/default/dashboard/index.blade.php index 6a7c2462..6b77d0b7 100644 --- a/resources/views/layouts/default/dashboard/index.blade.php +++ b/resources/views/layouts/default/dashboard/index.blade.php @@ -61,11 +61,8 @@