From dc54222a8d799b2baa7cf875d0b3bced3456ca32 Mon Sep 17 00:00:00 2001 From: Dedan Date: Sun, 20 Oct 2024 22:45:59 +0300 Subject: [PATCH] Changes to files: app/Models/Data/Package.php --- app/Models/Data/Package.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/Models/Data/Package.php b/app/Models/Data/Package.php index 7ab3e57..43bc648 100755 --- a/app/Models/Data/Package.php +++ b/app/Models/Data/Package.php @@ -41,6 +41,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 1, + "ordering" => 1, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id'); @@ -60,6 +61,7 @@ public function data(Datasetter $datasetter): void "default" => 1, "featured" => 0, "is_hidden" => 1, + "ordering" => 10, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-hour')->value('id'); @@ -72,7 +74,7 @@ public function data(Datasetter $datasetter): void "billing_cycle_id" => $billing_cycle_id, "amount" => 5, "published" => true, - "ordering" => 1, + "ordering" => 5, "featured" => 0, "is_hidden" => 0, ]); @@ -90,6 +92,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 0, + "ordering" => 5, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '12-hour')->value('id'); @@ -105,6 +108,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 0, + "ordering" => 5, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-day')->value('id'); @@ -120,6 +124,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 0, + "ordering" => 5, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-week')->value('id'); @@ -135,6 +140,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 0, + "ordering" => 5, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '2-week')->value('id'); @@ -150,6 +156,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 0, + "ordering" => 5, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id'); @@ -165,6 +172,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 1, "is_hidden" => 0, + "ordering" => 5, ]); $billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id'); @@ -181,6 +189,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 1, + "ordering" => 5, ]); $datasetter->add_data('isp', 'package', 'slug', [ @@ -196,6 +205,7 @@ public function data(Datasetter $datasetter): void "published" => true, "featured" => 0, "is_hidden" => 1, + "ordering" => 5, ]); }