Skip to content

Commit 5da7d99

Browse files
committed
Changes to files: Entities/Data/Package.php
1 parent 27ddb9b commit 5da7d99

File tree

1 file changed

+61
-14
lines changed

1 file changed

+61
-14
lines changed

Entities/Data/Package.php

+61-14
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,80 @@ public function data(Datasetter $datasetter): void
6262
"is_hidden" => 1,
6363
]);
6464

65-
$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id');
66-
65+
$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-hour')->value('id');
6766
$datasetter->add_data('isp', 'package', 'slug', [
68-
"title" => "1M Hotspot",
69-
"slug" => "1m-hotspot",
67+
"title" => "1 Hr",
7068
"pool" => "dhcp",
71-
"description" => "1M Hotspot",
69+
"description" => "1 Hour",
7270
"gateway_id" => $gateway_id,
7371
"billing_cycle_id" => $billing_cycle_id,
74-
"amount" => 100,
75-
"speed" => "1",
76-
"speed_type" => "megabyte",
72+
"amount" => 5,
7773
"published" => true,
7874
"featured" => 0,
7975
"is_hidden" => 0,
8076
]);
8177

78+
$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '3-hour')->value('id');
8279
$datasetter->add_data('isp', 'package', 'slug', [
83-
"title" => "2M Hotspot",
84-
"slug" => "2m-hotspot",
80+
"title" => "3 Hr",
8581
"pool" => "dhcp",
86-
"description" => "2M Hotspot",
82+
"description" => "3 Hour",
8783
"gateway_id" => $gateway_id,
8884
"billing_cycle_id" => $billing_cycle_id,
89-
"amount" => 150,
90-
"speed" => "2",
91-
"speed_type" => "megabyte",
85+
"amount" => 10,
86+
"published" => true,
87+
"featured" => 0,
88+
"is_hidden" => 0,
89+
]);
90+
91+
$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '12-hour')->value('id');
92+
$datasetter->add_data('isp', 'package', 'slug', [
93+
"title" => "12 Hr",
94+
"pool" => "dhcp",
95+
"description" => "12 Hour",
96+
"gateway_id" => $gateway_id,
97+
"billing_cycle_id" => $billing_cycle_id,
98+
"amount" => 50,
99+
"published" => true,
100+
"featured" => 0,
101+
"is_hidden" => 0,
102+
]);
103+
104+
$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-day')->value('id');
105+
$datasetter->add_data('isp', 'package', 'slug', [
106+
"title" => "1 Day",
107+
"pool" => "dhcp",
108+
"description" => "1 Day",
109+
"gateway_id" => $gateway_id,
110+
"billing_cycle_id" => $billing_cycle_id,
111+
"amount" => 90,
112+
"published" => true,
113+
"featured" => 0,
114+
"is_hidden" => 0,
115+
]);
116+
117+
$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '2-week')->value('id');
118+
$datasetter->add_data('isp', 'package', 'slug', [
119+
"title" => "2 Wk",
120+
"pool" => "dhcp",
121+
"description" => "2 Week",
122+
"gateway_id" => $gateway_id,
123+
"billing_cycle_id" => $billing_cycle_id,
124+
"amount" => 250,
125+
"published" => true,
126+
"featured" => 0,
127+
"is_hidden" => 0,
128+
]);
129+
130+
$billing_cycle_id = DB::table('isp_billing_cycle')->where('slug', '1-month')->value('id');
131+
$datasetter->add_data('isp', 'package', 'slug', [
132+
"title" => "1 Mth",
133+
"slug" => "1-mth",
134+
"pool" => "dhcp",
135+
"description" => "1 Month",
136+
"gateway_id" => $gateway_id,
137+
"billing_cycle_id" => $billing_cycle_id,
138+
"amount" => 500,
92139
"published" => true,
93140
"featured" => 1,
94141
"is_hidden" => 0,

0 commit comments

Comments
 (0)