diff --git a/app/Http/Controllers/DiagnosaController.php b/app/Http/Controllers/DiagnosaController.php
index 083eed8..45b64c1 100644
--- a/app/Http/Controllers/DiagnosaController.php
+++ b/app/Http/Controllers/DiagnosaController.php
@@ -11,6 +11,7 @@
use App\Models\Kode_Gejala;
use App\Models\KondisiUser;
use App\Models\TingkatDepresi;
+use GuzzleHttp\Middleware;
use Illuminate\Http\Request;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
@@ -27,12 +28,11 @@ class DiagnosaController extends Controller
*/
public function index()
{
- $data = [
- 'gejala' => Gejala::all(),
- 'kondisi_user' => KondisiUser::all()
- ];
+ $diagnosa = Diagnosa::all();
- return view('clients.form_diagnosa', $data);
+ return view('admin.diagnosa.admin_semua_diagnosa', [
+ "diagnosa" => $diagnosa,
+ ]);
}
/**
@@ -42,18 +42,13 @@ public function index()
*/
public function create()
{
- //
- }
-
-
-
-
-
-
-
-
-
+ $data = [
+ 'gejala' => Gejala::all(),
+ 'kondisi_user' => KondisiUser::all()
+ ];
+ return view('clients.form_diagnosa', $data);
+ }
/**
* Store a newly created resource in storage.
@@ -63,11 +58,11 @@ public function create()
*/
public function store(StoreDiagnosaRequest $request)
{
- $filteredArray= $request->post('kondisi');
- $kondisi = array_filter($filteredArray, function($value) {
+ $filteredArray = $request->post('kondisi');
+ $kondisi = array_filter($filteredArray, function ($value) {
return $value !== null;
});
-
+
// dd($kondisi);
$kodeGejala = [];
$bobotPilihan = [];
diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index 7cbc2c3..95ac591 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -23,6 +23,6 @@ public function __construct()
*/
public function index()
{
- return view('home');
+ return view('admin.dashboard');
}
}
diff --git a/app/Models/Artikel.php b/app/Models/Artikel.php
index 3fc2775..d3f7692 100644
--- a/app/Models/Artikel.php
+++ b/app/Models/Artikel.php
@@ -20,7 +20,7 @@ public function fillTabel()
$artikel = [
[
"kode_depresi" => "P001",
- "url_gambar" => 'https://unsplash.com/photos/w818vRg6pdY',
+ "url_gambar" => 'https://plus.unsplash.com/premium_photo-1668062843172-0129f25a1276?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80',
"judul" => 'Gangguan Mood',
"isi" => 'Ganggguan mood yang terjadi pada seseorang ini umumnya terjadi karena banyaknya tekanan yang menimpa dirinya dan cenderung terlarut dalam tekanan dapat meningkatkan resiko berkembangnya gangguan mood yang kemudian dapat berubah menjadi depresi terutama depresi mayor. Hal ini terbukti pada suatu penelitian yang menemukan bahwa dalam sekitar empat dari lima kasus, depresi mayor diawali oleh peristiwa kehidupan yang penuh tekanan.'
],
diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php
index 41f8ae8..e47615e 100644
--- a/database/factories/UserFactory.php
+++ b/database/factories/UserFactory.php
@@ -18,7 +18,7 @@ class UserFactory extends Factory
public function definition()
{
return [
- 'name' => fake()->name(),
+ 'name' => 'admin',
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php
index fb5c2fa..f46adf1 100644
--- a/database/seeders/DatabaseSeeder.php
+++ b/database/seeders/DatabaseSeeder.php
@@ -22,7 +22,7 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
- // \App\Models\User::factory(10)->create();
+ \App\Models\User::factory(3)->create();
Artikel::factory(4)->create();
// \App\Models\User::factory()->create([
diff --git a/public/depresi/apple-touch-icon.png b/public/depresi-assets/apple-touch-icon.png
similarity index 100%
rename from public/depresi/apple-touch-icon.png
rename to public/depresi-assets/apple-touch-icon.png
diff --git a/public/depresi/favicon-144x144.png b/public/depresi-assets/favicon-144x144.png
similarity index 100%
rename from public/depresi/favicon-144x144.png
rename to public/depresi-assets/favicon-144x144.png
diff --git a/public/depresi/favicon.png b/public/depresi-assets/favicon.png
similarity index 100%
rename from public/depresi/favicon.png
rename to public/depresi-assets/favicon.png
diff --git a/public/depresi/google/backblue.gif b/public/depresi-assets/google/backblue.gif
similarity index 100%
rename from public/depresi/google/backblue.gif
rename to public/depresi-assets/google/backblue.gif
diff --git a/public/depresi/google/fade.gif b/public/depresi-assets/google/fade.gif
similarity index 100%
rename from public/depresi/google/fade.gif
rename to public/depresi-assets/google/fade.gif
diff --git a/public/depresi/google/hts-cache/doit.log b/public/depresi-assets/google/hts-cache/doit.log
similarity index 100%
rename from public/depresi/google/hts-cache/doit.log
rename to public/depresi-assets/google/hts-cache/doit.log
diff --git a/public/depresi/google/hts-cache/new.lst b/public/depresi-assets/google/hts-cache/new.lst
similarity index 100%
rename from public/depresi/google/hts-cache/new.lst
rename to public/depresi-assets/google/hts-cache/new.lst
diff --git a/public/depresi/google/hts-cache/new.txt b/public/depresi-assets/google/hts-cache/new.txt
similarity index 100%
rename from public/depresi/google/hts-cache/new.txt
rename to public/depresi-assets/google/hts-cache/new.txt
diff --git a/public/depresi/google/hts-cache/new.zip b/public/depresi-assets/google/hts-cache/new.zip
similarity index 100%
rename from public/depresi/google/hts-cache/new.zip
rename to public/depresi-assets/google/hts-cache/new.zip
diff --git a/public/depresi/google/hts-cache/readme.txt b/public/depresi-assets/google/hts-cache/readme.txt
similarity index 100%
rename from public/depresi/google/hts-cache/readme.txt
rename to public/depresi-assets/google/hts-cache/readme.txt
diff --git a/public/depresi/google/hts-cache/winprofile.ini b/public/depresi-assets/google/hts-cache/winprofile.ini
similarity index 100%
rename from public/depresi/google/hts-cache/winprofile.ini
rename to public/depresi-assets/google/hts-cache/winprofile.ini
diff --git a/public/depresi/google/hts-log.txt b/public/depresi-assets/google/hts-log.txt
similarity index 100%
rename from public/depresi/google/hts-log.txt
rename to public/depresi-assets/google/hts-log.txt
diff --git a/public/depresi/google/index.html b/public/depresi-assets/google/index.html
similarity index 100%
rename from public/depresi/google/index.html
rename to public/depresi-assets/google/index.html
diff --git a/public/depresi/google/siteimproveanalytics.com/js/siteanalyze_6229968.js b/public/depresi-assets/google/siteimproveanalytics.com/js/siteanalyze_6229968.js
similarity index 100%
rename from public/depresi/google/siteimproveanalytics.com/js/siteanalyze_6229968.js
rename to public/depresi-assets/google/siteimproveanalytics.com/js/siteanalyze_6229968.js
diff --git a/public/depresi/google/www.google.com/recaptcha/apieee6.js b/public/depresi-assets/google/www.google.com/recaptcha/apieee6.js
similarity index 100%
rename from public/depresi/google/www.google.com/recaptcha/apieee6.js
rename to public/depresi-assets/google/www.google.com/recaptcha/apieee6.js
diff --git a/public/depresi/google/www.googleoptimize.com/optimize3af5.js b/public/depresi-assets/google/www.googleoptimize.com/optimize3af5.js
similarity index 100%
rename from public/depresi/google/www.googleoptimize.com/optimize3af5.js
rename to public/depresi-assets/google/www.googleoptimize.com/optimize3af5.js
diff --git a/public/depresi/google/www.googletagmanager.com/gtm5445.html b/public/depresi-assets/google/www.googletagmanager.com/gtm5445.html
similarity index 100%
rename from public/depresi/google/www.googletagmanager.com/gtm5445.html
rename to public/depresi-assets/google/www.googletagmanager.com/gtm5445.html
diff --git a/public/depresi/opera.png b/public/depresi-assets/opera.png
similarity index 100%
rename from public/depresi/opera.png
rename to public/depresi-assets/opera.png
diff --git a/public/depresi/screening-tools/depression/index.html b/public/depresi-assets/screening-tools/depression/index.html
similarity index 100%
rename from public/depresi/screening-tools/depression/index.html
rename to public/depresi-assets/screening-tools/depression/index.html
diff --git a/public/depresi/wp-content/cache/autoptimize/css/autoptimize_5653ccbbff2bf3fde17022871919df8b.css b/public/depresi-assets/wp-content/cache/autoptimize/css/autoptimize_5653ccbbff2bf3fde17022871919df8b.css
similarity index 100%
rename from public/depresi/wp-content/cache/autoptimize/css/autoptimize_5653ccbbff2bf3fde17022871919df8b.css
rename to public/depresi-assets/wp-content/cache/autoptimize/css/autoptimize_5653ccbbff2bf3fde17022871919df8b.css
diff --git a/public/depresi/wp-content/cache/autoptimize/css/autoptimize_7a1ecf2654b585c47ef39ad343596e82.css b/public/depresi-assets/wp-content/cache/autoptimize/css/autoptimize_7a1ecf2654b585c47ef39ad343596e82.css
similarity index 100%
rename from public/depresi/wp-content/cache/autoptimize/css/autoptimize_7a1ecf2654b585c47ef39ad343596e82.css
rename to public/depresi-assets/wp-content/cache/autoptimize/css/autoptimize_7a1ecf2654b585c47ef39ad343596e82.css
diff --git a/public/depresi/wp-content/plugins/gravityforms/js/conditional_logic.min91ac.js b/public/depresi-assets/wp-content/plugins/gravityforms/js/conditional_logic.min91ac.js
similarity index 100%
rename from public/depresi/wp-content/plugins/gravityforms/js/conditional_logic.min91ac.js
rename to public/depresi-assets/wp-content/plugins/gravityforms/js/conditional_logic.min91ac.js
diff --git a/public/depresi/wp-content/plugins/gravityforms/js/gravityforms.min91ac.js b/public/depresi-assets/wp-content/plugins/gravityforms/js/gravityforms.min91ac.js
similarity index 100%
rename from public/depresi/wp-content/plugins/gravityforms/js/gravityforms.min91ac.js
rename to public/depresi-assets/wp-content/plugins/gravityforms/js/gravityforms.min91ac.js
diff --git a/public/depresi/wp-content/plugins/gravityforms/js/jquery.json.min91ac.js b/public/depresi-assets/wp-content/plugins/gravityforms/js/jquery.json.min91ac.js
similarity index 100%
rename from public/depresi/wp-content/plugins/gravityforms/js/jquery.json.min91ac.js
rename to public/depresi-assets/wp-content/plugins/gravityforms/js/jquery.json.min91ac.js
diff --git a/public/depresi/wp-content/plugins/gravityforms/js/placeholders.jquery.min91ac.js b/public/depresi-assets/wp-content/plugins/gravityforms/js/placeholders.jquery.min91ac.js
similarity index 100%
rename from public/depresi/wp-content/plugins/gravityforms/js/placeholders.jquery.min91ac.js
rename to public/depresi-assets/wp-content/plugins/gravityforms/js/placeholders.jquery.min91ac.js
diff --git a/public/depresi/wp-content/plugins/mha_activity/diy_tools6a8d.js b/public/depresi-assets/wp-content/plugins/mha_activity/diy_tools6a8d.js
similarity index 100%
rename from public/depresi/wp-content/plugins/mha_activity/diy_tools6a8d.js
rename to public/depresi-assets/wp-content/plugins/mha_activity/diy_tools6a8d.js
diff --git a/public/depresi/wp-content/plugins/mha_activity/mha_activitye084.js b/public/depresi-assets/wp-content/plugins/mha_activity/mha_activitye084.js
similarity index 100%
rename from public/depresi/wp-content/plugins/mha_activity/mha_activitye084.js
rename to public/depresi-assets/wp-content/plugins/mha_activity/mha_activitye084.js
diff --git a/public/depresi/wp-content/plugins/mha_exports/diy_exporte084.js b/public/depresi-assets/wp-content/plugins/mha_exports/diy_exporte084.js
similarity index 100%
rename from public/depresi/wp-content/plugins/mha_exports/diy_exporte084.js
rename to public/depresi-assets/wp-content/plugins/mha_exports/diy_exporte084.js
diff --git a/public/depresi/wp-content/plugins/mha_screens/assets/jquery.validate.min5152.js b/public/depresi-assets/wp-content/plugins/mha_screens/assets/jquery.validate.min5152.js
similarity index 100%
rename from public/depresi/wp-content/plugins/mha_screens/assets/jquery.validate.min5152.js
rename to public/depresi-assets/wp-content/plugins/mha_screens/assets/jquery.validate.min5152.js
diff --git a/public/depresi/wp-content/plugins/mha_screens/mha_screens0e7c.js b/public/depresi-assets/wp-content/plugins/mha_screens/mha_screens0e7c.js
similarity index 100%
rename from public/depresi/wp-content/plugins/mha_screens/mha_screens0e7c.js
rename to public/depresi-assets/wp-content/plugins/mha_screens/mha_screens0e7c.js
diff --git a/public/depresi/wp-content/plugins/mha_shard/inc/js/scripts92ad.js b/public/depresi-assets/wp-content/plugins/mha_shard/inc/js/scripts92ad.js
similarity index 100%
rename from public/depresi/wp-content/plugins/mha_shard/inc/js/scripts92ad.js
rename to public/depresi-assets/wp-content/plugins/mha_shard/inc/js/scripts92ad.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/bootstrap/js/bootstrap.bundle.min5b31.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/bootstrap/js/bootstrap.bundle.min5b31.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/bootstrap/js/bootstrap.bundle.min5b31.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/bootstrap/js/bootstrap.bundle.min5b31.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/images/arrow-right-white.png b/public/depresi-assets/wp-content/themes/mha_s2s/assets/images/arrow-right-white.png
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/images/arrow-right-white.png
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/images/arrow-right-white.png
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/images/mha-logo.png b/public/depresi-assets/wp-content/themes/mha_s2s/assets/images/mha-logo.png
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/images/mha-logo.png
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/images/mha-logo.png
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/aos.min6c28.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/aos.min6c28.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/aos.min6c28.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/aos.min6c28.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/glide9608.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/glide9608.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/glide9608.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/glide9608.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/global6834.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/global6834.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/global6834.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/global6834.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/hoverIntentac14.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/hoverIntentac14.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/hoverIntentac14.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/hoverIntentac14.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/iframe-resizer.min274c.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/iframe-resizer.min274c.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/iframe-resizer.min274c.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/iframe-resizer.min274c.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/jquery.sticky-sidebar.min3d36.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/jquery.sticky-sidebar.min3d36.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/jquery.sticky-sidebar.min3d36.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/jquery.sticky-sidebar.min3d36.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/jquery.ui.custom.min0028.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/jquery.ui.custom.min0028.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/jquery.ui.custom.min0028.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/jquery.ui.custom.min0028.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/macy.min5152.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/macy.min5152.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/macy.min5152.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/macy.min5152.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/skip-link-focus-fix5152.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/skip-link-focus-fix5152.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/skip-link-focus-fix5152.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/skip-link-focus-fix5152.js
diff --git a/public/depresi/wp-content/themes/mha_s2s/assets/js/superfish.min7fe1.js b/public/depresi-assets/wp-content/themes/mha_s2s/assets/js/superfish.min7fe1.js
similarity index 100%
rename from public/depresi/wp-content/themes/mha_s2s/assets/js/superfish.min7fe1.js
rename to public/depresi-assets/wp-content/themes/mha_s2s/assets/js/superfish.min7fe1.js
diff --git a/public/depresi/wp-includes/css/dashicons.min6a4d.css b/public/depresi-assets/wp-includes/css/dashicons.min6a4d.css
similarity index 100%
rename from public/depresi/wp-includes/css/dashicons.min6a4d.css
rename to public/depresi-assets/wp-includes/css/dashicons.min6a4d.css
diff --git a/public/depresi/wp-includes/js/dist/a11y.min65c7.js b/public/depresi-assets/wp-includes/js/dist/a11y.min65c7.js
similarity index 100%
rename from public/depresi/wp-includes/js/dist/a11y.min65c7.js
rename to public/depresi-assets/wp-includes/js/dist/a11y.min65c7.js
diff --git a/public/depresi/wp-includes/js/dist/dom-ready.minded6.js b/public/depresi-assets/wp-includes/js/dist/dom-ready.minded6.js
similarity index 100%
rename from public/depresi/wp-includes/js/dist/dom-ready.minded6.js
rename to public/depresi-assets/wp-includes/js/dist/dom-ready.minded6.js
diff --git a/public/depresi/wp-includes/js/dist/hooks.min6c65.js b/public/depresi-assets/wp-includes/js/dist/hooks.min6c65.js
similarity index 100%
rename from public/depresi/wp-includes/js/dist/hooks.min6c65.js
rename to public/depresi-assets/wp-includes/js/dist/hooks.min6c65.js
diff --git a/public/depresi/wp-includes/js/dist/i18n.mine57b.js b/public/depresi-assets/wp-includes/js/dist/i18n.mine57b.js
similarity index 100%
rename from public/depresi/wp-includes/js/dist/i18n.mine57b.js
rename to public/depresi-assets/wp-includes/js/dist/i18n.mine57b.js
diff --git a/public/depresi/wp-includes/js/dist/vendor/regenerator-runtime.min3937.js b/public/depresi-assets/wp-includes/js/dist/vendor/regenerator-runtime.min3937.js
similarity index 100%
rename from public/depresi/wp-includes/js/dist/vendor/regenerator-runtime.min3937.js
rename to public/depresi-assets/wp-includes/js/dist/vendor/regenerator-runtime.min3937.js
diff --git a/public/depresi/wp-includes/js/dist/vendor/wp-polyfill.min2c7c.js b/public/depresi-assets/wp-includes/js/dist/vendor/wp-polyfill.min2c7c.js
similarity index 100%
rename from public/depresi/wp-includes/js/dist/vendor/wp-polyfill.min2c7c.js
rename to public/depresi-assets/wp-includes/js/dist/vendor/wp-polyfill.min2c7c.js
diff --git a/public/depresi/wp-includes/js/jquery/jquery-migrate.mind617.js b/public/depresi-assets/wp-includes/js/jquery/jquery-migrate.mind617.js
similarity index 100%
rename from public/depresi/wp-includes/js/jquery/jquery-migrate.mind617.js
rename to public/depresi-assets/wp-includes/js/jquery/jquery-migrate.mind617.js
diff --git a/public/depresi/wp-includes/js/jquery/jquery.mina7a0.js b/public/depresi-assets/wp-includes/js/jquery/jquery.mina7a0.js
similarity index 100%
rename from public/depresi/wp-includes/js/jquery/jquery.mina7a0.js
rename to public/depresi-assets/wp-includes/js/jquery/jquery.mina7a0.js
diff --git a/public/index.php b/public/index.php
index 1d69f3a..f3c2ebc 100644
--- a/public/index.php
+++ b/public/index.php
@@ -16,7 +16,7 @@
|
*/
-if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
+if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) {
require $maintenance;
}
@@ -31,7 +31,7 @@
|
*/
-require __DIR__.'/../vendor/autoload.php';
+require __DIR__ . '/../vendor/autoload.php';
/*
|--------------------------------------------------------------------------
@@ -44,7 +44,7 @@
|
*/
-$app = require_once __DIR__.'/../bootstrap/app.php';
+$app = require_once __DIR__ . '/../bootstrap/app.php';
$kernel = $app->make(Kernel::class);
diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php
index 3997c53..1a7df70 100644
--- a/resources/views/admin/dashboard.blade.php
+++ b/resources/views/admin/dashboard.blade.php
@@ -10,23 +10,23 @@