diff --git a/database/factories/ServerFactory.php b/database/factories/ServerFactory.php index aad3ed1..c0895a4 100644 --- a/database/factories/ServerFactory.php +++ b/database/factories/ServerFactory.php @@ -7,18 +7,8 @@ use Illuminate\Database\Eloquent\Factories\Factory; class ServerFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ protected $model = Server::class; - /** - * Define the model's default state. - * - * @return array - */ public function definition() { diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 8008694..f031138 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -8,18 +8,8 @@ use Illuminate\Support\Str; class UserFactory extends Factory { - /** - * The name of the factory's corresponding model. - * - * @var string - */ protected $model = User::class; - /** - * Define the model's default state. - * - * @return array - */ public function definition() { return [ diff --git a/database/migrations/2021_02_10_122904_create_servers_table.php b/database/migrations/2021_02_10_122904_create_servers_table.php index 5e4f896..85f7617 100644 --- a/database/migrations/2021_02_10_122904_create_servers_table.php +++ b/database/migrations/2021_02_10_122904_create_servers_table.php @@ -14,13 +14,12 @@ class CreateServersTable extends Migration public function up() { Schema::create('servers', function (Blueprint $table) { - $table->char('id', 8)->unique()->default(null); + $table->char('id', 8)->primary()->default(null); $table->tinyInteger('active')->default(1); + $table->tinyInteger('show_public')->default(0); $table->string('hostname'); $table->string('ns1')->nullable()->default(null); $table->string('ns2')->nullable()->default(null); - $table->string('ipv4')->nullable()->default(null); - $table->string('ipv6')->nullable()->default(null); $table->tinyInteger('server_type')->default(1); $table->integer('os_id')->default(0); $table->integer('provider_id')->default(9999); diff --git a/database/migrations/2022_02_01_031629_create_os_table.php b/database/migrations/2022_02_01_031629_create_os_table.php index 68d544f..2d6ea8d 100644 --- a/database/migrations/2022_02_01_031629_create_os_table.php +++ b/database/migrations/2022_02_01_031629_create_os_table.php @@ -16,6 +16,10 @@ class CreateOsTable extends Migration Schema::create('os', function (Blueprint $table) { $table->id()->autoIncrement(); $table->string('name')->unique(); +<<<<<<< HEAD +======= + $table->timestamps(); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 }); } diff --git a/database/migrations/2022_02_01_233932_create_domains_table.php b/database/migrations/2022_02_01_233932_create_domains_table.php index 0537779..8a330de 100644 --- a/database/migrations/2022_02_01_233932_create_domains_table.php +++ b/database/migrations/2022_02_01_233932_create_domains_table.php @@ -14,7 +14,11 @@ class CreateDomainsTable extends Migration public function up() { Schema::create('domains', function (Blueprint $table) { +<<<<<<< HEAD $table->char('id', 8)->unique()->default(null); +======= + $table->char('id', 8)->primary()->default(null); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->string('domain'); $table->tinyInteger('active')->default(1); $table->string('extension'); diff --git a/database/migrations/2022_02_03_035702_create_labels_table.php b/database/migrations/2022_02_03_035702_create_labels_table.php index 270318b..faf0a77 100644 --- a/database/migrations/2022_02_03_035702_create_labels_table.php +++ b/database/migrations/2022_02_03_035702_create_labels_table.php @@ -15,7 +15,11 @@ class CreateLabelsTable extends Migration { Schema::create('labels', function (Blueprint $table) { $table->char('id', 8)->primary()->default(null); +<<<<<<< HEAD $table->string('label'); +======= + $table->string('label')->unique(); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->timestamps(); }); } diff --git a/database/migrations/2022_02_03_040140_create_shareds_table.php b/database/migrations/2022_02_03_040140_create_shareds_table.php index ca70310..d335210 100644 --- a/database/migrations/2022_02_03_040140_create_shareds_table.php +++ b/database/migrations/2022_02_03_040140_create_shareds_table.php @@ -14,11 +14,17 @@ class CreateSharedsTable extends Migration public function up() { Schema::create('shared_hosting', function (Blueprint $table) { +<<<<<<< HEAD $table->char('id', 8)->unique(); $table->tinyInteger('active')->default(1); $table->string('main_domain'); $table->tinyInteger('has_dedicated_ip')->default(0); $table->string('ip')->nullable()->default(null); +======= + $table->char('id', 8)->primary(); + $table->tinyInteger('active')->default(1); + $table->string('main_domain'); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->string('shared_type')->nullable(); $table->integer('provider_id')->default(9999); $table->integer('location_id')->default(9999); diff --git a/database/migrations/2022_02_03_040152_create_resellers_table.php b/database/migrations/2022_02_03_040152_create_resellers_table.php index 6bc90c8..f37df1a 100644 --- a/database/migrations/2022_02_03_040152_create_resellers_table.php +++ b/database/migrations/2022_02_03_040152_create_resellers_table.php @@ -14,11 +14,17 @@ class CreateResellersTable extends Migration public function up() { Schema::create('reseller_hosting', function (Blueprint $table) { +<<<<<<< HEAD $table->char('id', 8)->unique(); $table->tinyInteger('active')->default(1); $table->string('main_domain'); $table->tinyInteger('has_dedicated_ip')->default(0); $table->string('ip')->nullable()->default(null); +======= + $table->char('id', 8)->primary(); + $table->tinyInteger('active')->default(1); + $table->string('main_domain'); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->integer('accounts')->default(1); $table->string('reseller_type')->nullable(); $table->integer('provider_id')->default(9999); diff --git a/database/migrations/2022_02_05_104355_create_yabs_table.php b/database/migrations/2022_02_05_104355_create_yabs_table.php index 991d26b..d2b16c4 100644 --- a/database/migrations/2022_02_05_104355_create_yabs_table.php +++ b/database/migrations/2022_02_05_104355_create_yabs_table.php @@ -13,7 +13,11 @@ class CreateYabsTable extends Migration public function up() { Schema::create('yabs', function (Blueprint $table) { +<<<<<<< HEAD $table->char('id', 8)->unique(); +======= + $table->char('id', 8)->primary(); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->char('server_id', 8); $table->boolean('has_ipv6')->default(false); $table->boolean('aes')->default(false); @@ -21,7 +25,11 @@ class CreateYabsTable extends Migration $table->dateTime('output_date'); $table->tinyInteger('cpu_cores'); $table->float('cpu_freq'); +<<<<<<< HEAD $table->string('cpu'); +======= + $table->string('cpu_model'); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->float('ram'); $table->char('ram_type', 2); $table->float('ram_mb'); @@ -32,6 +40,10 @@ class CreateYabsTable extends Migration $table->integer('gb5_multi'); $table->integer('gb5_id'); $table->timestamps(); +<<<<<<< HEAD +======= + $table->unique(['id','server_id'], 'uni'); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 }); } diff --git a/database/migrations/2022_02_05_104551_create_disk_speed_table.php b/database/migrations/2022_02_05_104551_create_disk_speed_table.php index fccaa4b..fa92f0d 100644 --- a/database/migrations/2022_02_05_104551_create_disk_speed_table.php +++ b/database/migrations/2022_02_05_104551_create_disk_speed_table.php @@ -12,7 +12,11 @@ class CreateDiskSpeedTable extends Migration public function up() { Schema::create('disk_speed', function (Blueprint $table) { +<<<<<<< HEAD $table->char('id', 8)->unique(); +======= + $table->char('id', 8)->primary(); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->char('server_id',8); $table->float('d_4k'); $table->char('d_4k_type',4); diff --git a/database/migrations/2022_02_05_104919_create_network_speed_table.php b/database/migrations/2022_02_05_104919_create_network_speed_table.php index 73f2816..b331460 100644 --- a/database/migrations/2022_02_05_104919_create_network_speed_table.php +++ b/database/migrations/2022_02_05_104919_create_network_speed_table.php @@ -22,6 +22,10 @@ class CreateNetworkSpeedTable extends Migration $table->char('receive_type', 4); $table->float('receive_as_mbps'); $table->timestamps(); +<<<<<<< HEAD +======= + $table->unique(['id','server_id', 'location'], 'uni'); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 }); } diff --git a/database/migrations/2022_02_08_010323_create_labels_assigned_table.php b/database/migrations/2022_02_08_010323_create_labels_assigned_table.php index 44b809b..f95c57e 100644 --- a/database/migrations/2022_02_08_010323_create_labels_assigned_table.php +++ b/database/migrations/2022_02_08_010323_create_labels_assigned_table.php @@ -14,8 +14,14 @@ class CreateLabelsAssignedTable extends Migration public function up() { Schema::create('labels_assigned', function (Blueprint $table) { +<<<<<<< HEAD $table->char('label_id', 8)->unique(); $table->char('service_id', 8); +======= + $table->char('label_id', 8); + $table->char('service_id', 8); + $table->unique(['label_id','service_id'], 'uni'); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 }); } diff --git a/database/migrations/2022_02_09_032438_create_settings_table.php b/database/migrations/2022_02_09_032438_create_settings_table.php index c9c219d..6d89a24 100644 --- a/database/migrations/2022_02_09_032438_create_settings_table.php +++ b/database/migrations/2022_02_09_032438_create_settings_table.php @@ -14,7 +14,7 @@ class CreateSettingsTable extends Migration public function up() { Schema::create('settings', function (Blueprint $table) { - $table->integer('id')->default(1)->unique(); + $table->integer('id')->default(1)->primary(); $table->boolean('show_versions_footer')->default(true); $table->boolean('show_servers_public')->default(false); $table->boolean('show_server_value_ip')->default(false); diff --git a/database/migrations/2022_02_11_022150_create_miscs_table.php b/database/migrations/2022_02_11_022150_create_miscs_table.php index 38fea19..2e02a0f 100644 --- a/database/migrations/2022_02_11_022150_create_miscs_table.php +++ b/database/migrations/2022_02_11_022150_create_miscs_table.php @@ -14,10 +14,17 @@ class CreateMiscsTable extends Migration public function up() { Schema::create('misc_services', function (Blueprint $table) { +<<<<<<< HEAD $table->char('id', 8)->unique(); $table->string('name'); $table->tinyInteger('active')->default(1); $table->date('owned_since'); +======= + $table->char('id', 8)->primary(); + $table->string('name'); + $table->tinyInteger('active')->default(1); + $table->date('owned_since')->nullable(); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $table->timestamps(); }); } @@ -31,4 +38,8 @@ class CreateMiscsTable extends Migration { Schema::dropIfExists('misc_services'); } +<<<<<<< HEAD }; +======= +} +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 diff --git a/database/migrations/2022_02_21_001233_create_ips_table.php b/database/migrations/2022_02_21_001233_create_ips_table.php new file mode 100644 index 0000000..42cc93b --- /dev/null +++ b/database/migrations/2022_02_21_001233_create_ips_table.php @@ -0,0 +1,26 @@ +char('id', 8)->primary(); + $table->char('service_id', 8); + $table->string('address'); + $table->tinyInteger('is_ipv4')->default(1); + $table->tinyInteger('active')->default(1); + $table->timestamps(); + $table->unique(['service_id','address'], 'uni'); + }); + } + + public function down() + { + Schema::dropIfExists('ips'); + } +} diff --git a/database/migrations/2022_03_05_125635_add_cols_to_settings.php b/database/migrations/2022_03_05_125635_add_cols_to_settings.php new file mode 100644 index 0000000..3d746a5 --- /dev/null +++ b/database/migrations/2022_03_05_125635_add_cols_to_settings.php @@ -0,0 +1,30 @@ +string('default_currency')->default('USD'); + $table->integer('default_server_os')->default(20); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + } +}; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 81fb0a4..18a8782 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -6,6 +6,7 @@ use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { +<<<<<<< HEAD /** * Seed the application's database. * @@ -16,12 +17,23 @@ class DatabaseSeeder extends Seeder \App\Models\User::factory(1)->create(); //\App\Models\Server::factory(10)->create(); //\App\Models\Domains::factory(4)->create(); +======= + public function run() + { + //\App\Models\User::factory(1)->create();//Disable demo first user creation +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 $this->call(SettingsSeeder::class); $this->call(ProvidersSeeder::class); $this->call(LocationsSeeder::class); $this->call(OsSeeder::class); $this->call(LabelsSeeder::class); +<<<<<<< HEAD $this->call(DomainsSeeder::class); $this->call(ServersSeeder::class); +======= + //$this->call(DomainsSeeder::class); + //$this->call(ServersSeeder::class); + //$this->call(SharedSeeder::class); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 } } diff --git a/database/seeders/DomainsSeeder.php b/database/seeders/DomainsSeeder.php index c55eeec..a654dd6 100644 --- a/database/seeders/DomainsSeeder.php +++ b/database/seeders/DomainsSeeder.php @@ -9,11 +9,14 @@ use Illuminate\Support\Str; class DomainsSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * * @return void */ +======= +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 public function run() { $id1 = Str::random(8); @@ -26,7 +29,11 @@ class DomainsSeeder extends Seeder "extension" => "ai", "provider_id" => 59, "owned_since" => '2013-01-12', +<<<<<<< HEAD //"next_due_date" => Carbon::now()->addDays(30)->format('Y-m-d') +======= + "created_at" => Carbon::now() +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 ], [ "id" => $id2, @@ -34,7 +41,11 @@ class DomainsSeeder extends Seeder "extension" => "club", "provider_id" => 59, "owned_since" => '2016-04-25', +<<<<<<< HEAD //"next_due_date" => Carbon::now()->addDays(30)->format('Y-m-d') +======= + "created_at" => Carbon::now() +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 ] ]; diff --git a/database/seeders/LabelsSeeder.php b/database/seeders/LabelsSeeder.php index 85c182a..e9d79ea 100644 --- a/database/seeders/LabelsSeeder.php +++ b/database/seeders/LabelsSeeder.php @@ -8,11 +8,14 @@ use Illuminate\Support\Str; class LabelsSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * * @return void */ +======= +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 public function run() { $os = [ diff --git a/database/seeders/LocationsSeeder.php b/database/seeders/LocationsSeeder.php index 0d1cd74..399624e 100644 --- a/database/seeders/LocationsSeeder.php +++ b/database/seeders/LocationsSeeder.php @@ -7,11 +7,14 @@ use Illuminate\Support\Facades\DB; class LocationsSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * * @return void */ +======= +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 public function run() { $locations = array( diff --git a/database/seeders/OsSeeder.php b/database/seeders/OsSeeder.php index e5de5cc..f07a9cc 100644 --- a/database/seeders/OsSeeder.php +++ b/database/seeders/OsSeeder.php @@ -2,11 +2,16 @@ namespace Database\Seeders; +<<<<<<< HEAD +======= +use Carbon\Carbon; +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class OsSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * @@ -43,6 +48,39 @@ class OsSeeder extends Seeder ["name" => "Windows 10"], ["name" => "Custom"], ["name" => "Other"] +======= + public function run() + { + $os = [ + ["name" => "None", "created_at" => Carbon::now()], + ["name" => "Centos 7", "created_at" => Carbon::now()], + ["name" => "Centos 8", "created_at" => Carbon::now()], + ["name" => "Centos", "created_at" => Carbon::now()], + ["name" => "Debian 9", "created_at" => Carbon::now()], + ["name" => "Debian 10", "created_at" => Carbon::now()], + ["name" => "Debian", "created_at" => Carbon::now()], + ["name" => "Fedora 32", "created_at" => Carbon::now()], + ["name" => "Fedora 33", "created_at" => Carbon::now()], + ["name" => "Fedora", "created_at" => Carbon::now()], + ["name" => "FreeBSD 11.4", "created_at" => Carbon::now()], + ["name" => "FreeBSD 12.1", "created_at" => Carbon::now()], + ["name" => "FreeBSD", "created_at" => Carbon::now()], + ["name" => "OpenBSD 6.7", "created_at" => Carbon::now()], + ["name" => "OpenBSD 6.8", "created_at" => Carbon::now()], + ["name" => "OpenBSD", "created_at" => Carbon::now()], + ["name" => "Ubuntu 16.04", "created_at" => Carbon::now()], + ["name" => "Ubuntu 18.04", "created_at" => Carbon::now()], + ["name" => "Ubuntu 20.04", "created_at" => Carbon::now()], + ["name" => "Ubuntu 20.10", "created_at" => Carbon::now()], + ["name" => "Ubuntu", "created_at" => Carbon::now()], + ["name" => "Windows Server 2008", "created_at" => Carbon::now()], + ["name" => "Windows Server 2012", "created_at" => Carbon::now()], + ["name" => "Windows Server 2016", "created_at" => Carbon::now()], + ["name" => "Windows Server 2019", "created_at" => Carbon::now()], + ["name" => "Windows 10", "created_at" => Carbon::now()], + ["name" => "Custom", "created_at" => Carbon::now()], + ["name" => "Other", "created_at" => Carbon::now()] +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 ]; DB::table('os')->insert($os); diff --git a/database/seeders/ProvidersSeeder.php b/database/seeders/ProvidersSeeder.php index d8a51c2..b2b7277 100644 --- a/database/seeders/ProvidersSeeder.php +++ b/database/seeders/ProvidersSeeder.php @@ -9,11 +9,14 @@ use Illuminate\Support\Str; class ProvidersSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * * @return void */ +======= +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 public function run() { diff --git a/database/seeders/ServersSeeder.php b/database/seeders/ServersSeeder.php index d1266b9..a1d6ce0 100644 --- a/database/seeders/ServersSeeder.php +++ b/database/seeders/ServersSeeder.php @@ -9,11 +9,14 @@ use Illuminate\Support\Str; class ServersSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * * @return void */ +======= +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 public function run() { $id1 = Str::random(8); @@ -25,9 +28,14 @@ class ServersSeeder extends Seeder "hostname" => "la.node.ai", "os_id" => 20, "provider_id" => 90, +<<<<<<< HEAD "location_id" => 34, "bandwidth" => 1000, "ipv4" => '127.0.0.1', +======= + "location_id" => 35, + "bandwidth" => 1000, +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 "cpu" => 1, "ram" => 512, "ram_type" => 'MB', @@ -44,9 +52,14 @@ class ServersSeeder extends Seeder "hostname" => "sg.node.ai", "os_id" => 20, "provider_id" => 90, +<<<<<<< HEAD "location_id" => 70, "bandwidth" => 2000, "ipv4" => '127.0.0.1', +======= + "location_id" => 71, + "bandwidth" => 2000, +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 "cpu" => 1, "ram" => 2048, "ram_type" => 'MB', @@ -88,5 +101,29 @@ class ServersSeeder extends Seeder ]; DB::table('pricings')->insert($pricing); +<<<<<<< HEAD +======= + + $ips = [ + [ + "id" => Str::random(8), + "service_id" => $id1, + "address" => '127.0.0.1', + "is_ipv4" => 1, + "active" => 1, + "created_at" => Carbon::now() + ], + [ + "id" => Str::random(8), + "service_id" => $id2, + "address" => '127.0.0.1', + "is_ipv4" => 1, + "active" => 1, + "created_at" => Carbon::now() + ], + ]; + + DB::table('ips')->insert($ips); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 } } diff --git a/database/seeders/SettingsSeeder.php b/database/seeders/SettingsSeeder.php index e8414c3..491a850 100644 --- a/database/seeders/SettingsSeeder.php +++ b/database/seeders/SettingsSeeder.php @@ -8,11 +8,14 @@ use Illuminate\Support\Facades\DB; class SettingsSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * * @return void */ +======= +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 public function run() { $settings = [ diff --git a/database/seeders/SharedSeeder.php b/database/seeders/SharedSeeder.php index bf53936..734c301 100644 --- a/database/seeders/SharedSeeder.php +++ b/database/seeders/SharedSeeder.php @@ -9,6 +9,7 @@ use Illuminate\Support\Str; class SharedSeeder extends Seeder { +<<<<<<< HEAD /** * Run the database seeds. * @@ -31,5 +32,54 @@ class SharedSeeder extends Seeder ]; DB::table('shareds')->insert($shared);*/ +======= + public function run() + { + + $id = Str::random(8); + + $shared = [ + [ + "id" => $id, + "active" => 1, + "main_domain" => "node.ai", + "shared_type" => "Direct Admin", + "bandwidth" => 3000, + "disk" => 45, + "disk_type" => 'GB', + "disk_as_gb" => 45, + "domains_limit" => 10, + "subdomains_limit" => 10, + "ftp_limit" => 5, + "email_limit" => 5, + "db_limit" => 2, + "provider_id" => 90, + "location_id" => 71, + "owned_since" => Carbon::now()->subDays(220), + "created_at" => Carbon::now(), + "updated_at" => Carbon::now(), + ] + ]; + + DB::table('shared_hosting')->insert($shared); + + $pricing = [ + [ + "service_id" => $id, + "active" => 1, + "service_type" => 2, + "currency" => "USD", + "price" => 60.00, + "term" => 4, + "as_usd" => 60.00, + "usd_per_month" => 5.00, + "next_due_date" => Carbon::now()->addDays(12)->format('Y-m-d'), + "created_at" => Carbon::now(), + "updated_at" => Carbon::now(), + ] + ]; + + DB::table('pricings')->insert($pricing); +>>>>>>> 972edfc66e6862c09c39b21902d4856409aa6157 } } diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..3aec5e2 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,21 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/css/app.css b/public/css/app.css new file mode 100644 index 0000000..36aae37 Binary files /dev/null and b/public/css/app.css differ diff --git a/public/css/bootstrap.min.css b/public/css/bootstrap.min.css new file mode 100644 index 0000000..3a41517 Binary files /dev/null and b/public/css/bootstrap.min.css differ diff --git a/public/css/datatables.bootstrap.min.css b/public/css/datatables.bootstrap.min.css new file mode 100644 index 0000000..d4ed970 Binary files /dev/null and b/public/css/datatables.bootstrap.min.css differ diff --git a/public/css/fa.min.css b/public/css/fa.min.css new file mode 100644 index 0000000..dc98a1c Binary files /dev/null and b/public/css/fa.min.css differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..a8137b1 --- /dev/null +++ b/public/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = tap($kernel->handle( + $request = Request::capture() +))->send(); + +$kernel->terminate($request, $response); diff --git a/public/js/addService.js b/public/js/addService.js new file mode 100644 index 0000000..c7e4f08 Binary files /dev/null and b/public/js/addService.js differ diff --git a/public/js/app.js b/public/js/app.js new file mode 100644 index 0000000..56c33b1 Binary files /dev/null and b/public/js/app.js differ diff --git a/public/js/axios.min.js b/public/js/axios.min.js new file mode 100644 index 0000000..f7cd995 Binary files /dev/null and b/public/js/axios.min.js differ diff --git a/public/js/bootstrap.min.js b/public/js/bootstrap.min.js new file mode 100644 index 0000000..4e25e55 Binary files /dev/null and b/public/js/bootstrap.min.js differ diff --git a/public/js/datatables.bootstrap5.min.js b/public/js/datatables.bootstrap5.min.js new file mode 100644 index 0000000..ec4766b Binary files /dev/null and b/public/js/datatables.bootstrap5.min.js differ diff --git a/public/js/datatables.min.js b/public/js/datatables.min.js new file mode 100644 index 0000000..303edd7 Binary files /dev/null and b/public/js/datatables.min.js differ diff --git a/public/js/jquery.min.js b/public/js/jquery.min.js new file mode 100644 index 0000000..c4c6022 Binary files /dev/null and b/public/js/jquery.min.js differ diff --git a/public/js/vue.min.js b/public/js/vue.min.js new file mode 100644 index 0000000..713c9a4 Binary files /dev/null and b/public/js/vue.min.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json new file mode 100644 index 0000000..2d60117 --- /dev/null +++ b/public/mix-manifest.json @@ -0,0 +1,4 @@ +{ + "/js/app.js": "/js/app.js", + "/css/app.css": "/css/app.css" +} diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/public/web.config b/public/web.config new file mode 100644 index 0000000..d3711d7 --- /dev/null +++ b/public/web.config @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/webfonts/fa-brands-400.eot b/public/webfonts/fa-brands-400.eot new file mode 100644 index 0000000..958684e Binary files /dev/null and b/public/webfonts/fa-brands-400.eot differ diff --git a/public/webfonts/fa-brands-400.svg b/public/webfonts/fa-brands-400.svg new file mode 100644 index 0000000..2b7cf17 --- /dev/null +++ b/public/webfonts/fa-brands-400.svg @@ -0,0 +1,3717 @@ + + + + +Created by FontForge 20200314 at Mon Oct 5 09:50:45 2020 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/webfonts/fa-brands-400.ttf b/public/webfonts/fa-brands-400.ttf new file mode 100644 index 0000000..f071825 Binary files /dev/null and b/public/webfonts/fa-brands-400.ttf differ diff --git a/public/webfonts/fa-brands-400.woff b/public/webfonts/fa-brands-400.woff new file mode 100644 index 0000000..277ab65 Binary files /dev/null and b/public/webfonts/fa-brands-400.woff differ diff --git a/public/webfonts/fa-brands-400.woff2 b/public/webfonts/fa-brands-400.woff2 new file mode 100644 index 0000000..47805d4 Binary files /dev/null and b/public/webfonts/fa-brands-400.woff2 differ diff --git a/public/webfonts/fa-solid-900.eot b/public/webfonts/fa-solid-900.eot new file mode 100644 index 0000000..5da4fa0 Binary files /dev/null and b/public/webfonts/fa-solid-900.eot differ diff --git a/public/webfonts/fa-solid-900.svg b/public/webfonts/fa-solid-900.svg new file mode 100644 index 0000000..313b311 --- /dev/null +++ b/public/webfonts/fa-solid-900.svg @@ -0,0 +1,5028 @@ + + + + +Created by FontForge 20200314 at Mon Oct 5 09:50:45 2020 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/webfonts/fa-solid-900.ttf b/public/webfonts/fa-solid-900.ttf new file mode 100644 index 0000000..e074608 Binary files /dev/null and b/public/webfonts/fa-solid-900.ttf differ diff --git a/public/webfonts/fa-solid-900.woff b/public/webfonts/fa-solid-900.woff new file mode 100644 index 0000000..ef6b447 Binary files /dev/null and b/public/webfonts/fa-solid-900.woff differ diff --git a/public/webfonts/fa-solid-900.woff2 b/public/webfonts/fa-solid-900.woff2 new file mode 100644 index 0000000..120b300 Binary files /dev/null and b/public/webfonts/fa-solid-900.woff2 differ diff --git a/public/yabsFromForm.txt b/public/yabsFromForm.txt new file mode 100644 index 0000000..722c4e3 --- /dev/null +++ b/public/yabsFromForm.txt @@ -0,0 +1,63 @@ +# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # +# Yet-Another-Bench-Script # +# v2021-12-28 # +# https://github.com/masonr/yet-another-bench-script # +# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # + +Sat 05 Feb 2022 02:54:48 AM CET + +Basic System Information: +--------------------------------- +Processor : AMD Ryzen 9 3900X 12-Core Processor +CPU cores : 2 @ 3792.874 MHz +AES-NI : ✔ Enabled +VM-x/AMD-V : ✔ Enabled +RAM : 3.8 GiB +Swap : 0.0 KiB +Disk : 39.3 GiB + +fio Disk Speed Tests (Mixed R/W 50/50): +--------------------------------- +Block Size | 4k (IOPS) | 64k (IOPS) + ------ | --- ---- | ---- ---- +Read | 174.73 MB/s (43.6k) | 979.69 MB/s (15.3k) +Write | 175.19 MB/s (43.7k) | 984.85 MB/s (15.3k) +Total | 349.93 MB/s (87.4k) | 1.96 GB/s (30.6k) + | | +Block Size | 512k (IOPS) | 1m (IOPS) + ------ | --- ---- | ---- ---- +Read | 571.27 MB/s (1.1k) | 590.50 MB/s (576) +Write | 601.62 MB/s (1.1k) | 629.83 MB/s (615) +Total | 1.17 GB/s (2.2k) | 1.22 GB/s (1.1k) + +iperf3 Network Speed Tests (IPv4): +--------------------------------- +Provider | Location (Link) | Send Speed | Recv Speed + | | | +Clouvider | London, UK (10G) | 709 Mbits/sec | 882 Mbits/sec +Online.net | Paris, FR (10G) | 570 Mbits/sec | 786 Mbits/sec +WorldStream | The Netherlands (10G) | 886 Mbits/sec | 933 Mbits/sec +WebHorizon | Singapore (400M) | 278 Mbits/sec | 478 Mbits/sec +Clouvider | NYC, NY, US (10G) | 260 Mbits/sec | 243 Mbits/sec +Velocity Online | Tallahassee, FL, US (10G) | 227 Mbits/sec | 317 Mbits/sec +Clouvider | Los Angeles, CA, US (10G) | 255 Mbits/sec | 288 Mbits/sec +Iveloz Telecom | Sao Paulo, BR (2G) | 110 Mbits/sec | 281 Mbits/sec + +iperf3 Network Speed Tests (IPv6): +--------------------------------- +Provider | Location (Link) | Send Speed | Recv Speed + | | | +Clouvider | London, UK (10G) | 706 Mbits/sec | 854 Mbits/sec +Online.net | Paris, FR (10G) | 591 Mbits/sec | 760 Mbits/sec +WorldStream | The Netherlands (10G) | 867 Mbits/sec | 904 Mbits/sec +WebHorizon | Singapore (400M) | 207 Mbits/sec | 502 Mbits/sec +Clouvider | NYC, NY, US (10G) | 302 Mbits/sec | 201 Mbits/sec +Clouvider | Los Angeles, CA, US (10G) | 169 Mbits/sec | 450 Mbits/sec + +Geekbench 5 Benchmark Test: +--------------------------------- +Test | Value + | +Single Core | 1276 +Multi Core | 2394 +Full Test | https://browser.geekbench.com/v5/cpu/12590829 \ No newline at end of file diff --git a/resources/css/app.css b/resources/css/app.css new file mode 100644 index 0000000..a31e444 --- /dev/null +++ b/resources/css/app.css @@ -0,0 +1,3 @@ +@import 'tailwindcss/base'; +@import 'tailwindcss/components'; +@import 'tailwindcss/utilities'; diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..dce37fc --- /dev/null +++ b/resources/js/app.js @@ -0,0 +1,6 @@ +require('./bootstrap'); +import Alpine from 'alpinejs'; + +window.Alpine = Alpine; + +Alpine.start(); diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js new file mode 100644 index 0000000..90b538e --- /dev/null +++ b/resources/js/bootstrap.js @@ -0,0 +1,32 @@ +window._ = require('lodash'); +window.Vue = require('vue'); +try { + require('bootstrap'); +} catch (e) {} + +/** + * We'll load the axios HTTP library which allows us to easily issue requests + * to our Laravel back-end. This library automatically handles sending the + * CSRF token as a header based on the value of the "XSRF" token cookie. + */ + +window.axios = require('axios'); + +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; + +/** + * Echo exposes an expressive API for subscribing to channels and listening + * for events that are broadcast by Laravel. Echo and event broadcasting + * allows your team to easily build robust real-time web applications. + */ + +// import Echo from 'laravel-echo'; + +// window.Pusher = require('pusher-js'); + +// window.Echo = new Echo({ +// broadcaster: 'pusher', +// key: process.env.MIX_PUSHER_APP_KEY, +// cluster: process.env.MIX_PUSHER_APP_CLUSTER, +// forceTLS: true +// }); diff --git a/resources/js/components/ExampleComponent.vue b/resources/js/components/ExampleComponent.vue new file mode 100644 index 0000000..3fb9f9a --- /dev/null +++ b/resources/js/components/ExampleComponent.vue @@ -0,0 +1,23 @@ + + + diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php new file mode 100644 index 0000000..6598e2c --- /dev/null +++ b/resources/lang/en/auth.php @@ -0,0 +1,20 @@ + 'These credentials do not match our records.', + 'password' => 'The provided password is incorrect.', + 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + +]; diff --git a/resources/lang/en/pagination.php b/resources/lang/en/pagination.php new file mode 100644 index 0000000..d481411 --- /dev/null +++ b/resources/lang/en/pagination.php @@ -0,0 +1,19 @@ + '« Previous', + 'next' => 'Next »', + +]; diff --git a/resources/lang/en/passwords.php b/resources/lang/en/passwords.php new file mode 100644 index 0000000..2345a56 --- /dev/null +++ b/resources/lang/en/passwords.php @@ -0,0 +1,22 @@ + 'Your password has been reset!', + 'sent' => 'We have emailed your password reset link!', + 'throttled' => 'Please wait before retrying.', + 'token' => 'This password reset token is invalid.', + 'user' => "We can't find a user with that email address.", + +]; diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php new file mode 100644 index 0000000..c77e41c --- /dev/null +++ b/resources/lang/en/validation.php @@ -0,0 +1,152 @@ + 'The :attribute must be accepted.', + 'active_url' => 'The :attribute is not a valid URL.', + 'after' => 'The :attribute must be a date after :date.', + 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', + 'alpha' => 'The :attribute may only contain letters.', + 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', + 'alpha_num' => 'The :attribute may only contain letters and numbers.', + 'array' => 'The :attribute must be an array.', + 'before' => 'The :attribute must be a date before :date.', + 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', + 'between' => [ + 'numeric' => 'The :attribute must be between :min and :max.', + 'file' => 'The :attribute must be between :min and :max kilobytes.', + 'string' => 'The :attribute must be between :min and :max characters.', + 'array' => 'The :attribute must have between :min and :max items.', + ], + 'boolean' => 'The :attribute field must be true or false.', + 'confirmed' => 'The :attribute confirmation does not match.', + 'date' => 'The :attribute is not a valid date.', + 'date_equals' => 'The :attribute must be a date equal to :date.', + 'date_format' => 'The :attribute does not match the format :format.', + 'different' => 'The :attribute and :other must be different.', + 'digits' => 'The :attribute must be :digits digits.', + 'digits_between' => 'The :attribute must be between :min and :max digits.', + 'dimensions' => 'The :attribute has invalid image dimensions.', + 'distinct' => 'The :attribute field has a duplicate value.', + 'email' => 'The :attribute must be a valid email address.', + 'ends_with' => 'The :attribute must end with one of the following: :values.', + 'exists' => 'The selected :attribute is invalid.', + 'file' => 'The :attribute must be a file.', + 'filled' => 'The :attribute field must have a value.', + 'gt' => [ + 'numeric' => 'The :attribute must be greater than :value.', + 'file' => 'The :attribute must be greater than :value kilobytes.', + 'string' => 'The :attribute must be greater than :value characters.', + 'array' => 'The :attribute must have more than :value items.', + ], + 'gte' => [ + 'numeric' => 'The :attribute must be greater than or equal :value.', + 'file' => 'The :attribute must be greater than or equal :value kilobytes.', + 'string' => 'The :attribute must be greater than or equal :value characters.', + 'array' => 'The :attribute must have :value items or more.', + ], + 'image' => 'The :attribute must be an image.', + 'in' => 'The selected :attribute is invalid.', + 'in_array' => 'The :attribute field does not exist in :other.', + 'integer' => 'The :attribute must be an integer.', + 'ip' => 'The :attribute must be a valid IP address.', + 'ipv4' => 'The :attribute must be a valid IPv4 address.', + 'ipv6' => 'The :attribute must be a valid IPv6 address.', + 'json' => 'The :attribute must be a valid JSON string.', + 'lt' => [ + 'numeric' => 'The :attribute must be less than :value.', + 'file' => 'The :attribute must be less than :value kilobytes.', + 'string' => 'The :attribute must be less than :value characters.', + 'array' => 'The :attribute must have less than :value items.', + ], + 'lte' => [ + 'numeric' => 'The :attribute must be less than or equal :value.', + 'file' => 'The :attribute must be less than or equal :value kilobytes.', + 'string' => 'The :attribute must be less than or equal :value characters.', + 'array' => 'The :attribute must not have more than :value items.', + ], + 'max' => [ + 'numeric' => 'The :attribute may not be greater than :max.', + 'file' => 'The :attribute may not be greater than :max kilobytes.', + 'string' => 'The :attribute may not be greater than :max characters.', + 'array' => 'The :attribute may not have more than :max items.', + ], + 'mimes' => 'The :attribute must be a file of type: :values.', + 'mimetypes' => 'The :attribute must be a file of type: :values.', + 'min' => [ + 'numeric' => 'The :attribute must be at least :min.', + 'file' => 'The :attribute must be at least :min kilobytes.', + 'string' => 'The :attribute must be at least :min characters.', + 'array' => 'The :attribute must have at least :min items.', + ], + 'multiple_of' => 'The :attribute must be a multiple of :value.', + 'not_in' => 'The selected :attribute is invalid.', + 'not_regex' => 'The :attribute format is invalid.', + 'numeric' => 'The :attribute must be a number.', + 'password' => 'The password is incorrect.', + 'present' => 'The :attribute field must be present.', + 'regex' => 'The :attribute format is invalid.', + 'required' => 'The :attribute field is required.', + 'required_if' => 'The :attribute field is required when :other is :value.', + 'required_unless' => 'The :attribute field is required unless :other is in :values.', + 'required_with' => 'The :attribute field is required when :values is present.', + 'required_with_all' => 'The :attribute field is required when :values are present.', + 'required_without' => 'The :attribute field is required when :values is not present.', + 'required_without_all' => 'The :attribute field is required when none of :values are present.', + 'same' => 'The :attribute and :other must match.', + 'size' => [ + 'numeric' => 'The :attribute must be :size.', + 'file' => 'The :attribute must be :size kilobytes.', + 'string' => 'The :attribute must be :size characters.', + 'array' => 'The :attribute must contain :size items.', + ], + 'starts_with' => 'The :attribute must start with one of the following: :values.', + 'string' => 'The :attribute must be a string.', + 'timezone' => 'The :attribute must be a valid zone.', + 'unique' => 'The :attribute has already been taken.', + 'uploaded' => 'The :attribute failed to upload.', + 'url' => 'The :attribute format is invalid.', + 'uuid' => 'The :attribute must be a valid UUID.', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap our attribute placeholder + | with something more reader friendly such as "E-Mail Address" instead + | of "email". This simply helps us make our message more expressive. + | + */ + + 'attributes' => [], + +]; diff --git a/resources/sass/_variables.scss b/resources/sass/_variables.scss new file mode 100644 index 0000000..172daaa --- /dev/null +++ b/resources/sass/_variables.scss @@ -0,0 +1,7 @@ +// Body +$body-bg: #f8fafc; + +// Typography +$font-family-sans-serif: 'Nunito', sans-serif; +$font-size-base: 0.9rem; +$line-height-base: 1.6; diff --git a/resources/sass/app.scss b/resources/sass/app.scss new file mode 100644 index 0000000..3193ffa --- /dev/null +++ b/resources/sass/app.scss @@ -0,0 +1,8 @@ +// Fonts +@import url('https://fonts.googleapis.com/css?family=Nunito'); + +// Variables +@import 'variables'; + +// Bootstrap +@import '~bootstrap/scss/bootstrap'; diff --git a/resources/views/account/index.blade.php b/resources/views/account/index.blade.php new file mode 100644 index 0000000..55a3f57 --- /dev/null +++ b/resources/views/account/index.blade.php @@ -0,0 +1,55 @@ +@section('title') {{'Edit account'}} @endsection + + + Edit account + + +
+ + @if ($message = Session::get('success')) + + @endif +
+ @csrf + @method('PUT') +
+
+ + Name + name + 255 + {{Auth::user()->name}} + +
+
+
+
+ + Email + email + 255 + {{Auth::user()->email}} + +
+
+
+
+ API key: {{ Auth::user()->api_token }} +
+
+
+
+ Update account +
+
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

@if(isset($timer))@endif Built on + Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+
diff --git a/resources/views/auth/confirm-password.blade.php b/resources/views/auth/confirm-password.blade.php new file mode 100644 index 0000000..466593a --- /dev/null +++ b/resources/views/auth/confirm-password.blade.php @@ -0,0 +1,36 @@ + + + + + + + + +
+ {{ __('This is a secure area of the application. Please confirm your password before continuing.') }} +
+ + + + +
+ @csrf + + +
+ + + +
+ +
+ + {{ __('Confirm') }} + +
+
+
+
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php new file mode 100644 index 0000000..0642fa8 --- /dev/null +++ b/resources/views/auth/forgot-password.blade.php @@ -0,0 +1,36 @@ + + + + + + + + +
+ {{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }} +
+ + + + + + + +
+ @csrf + + +
+ + + +
+ +
+ + {{ __('Email Password Reset Link') }} + +
+
+
+
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php new file mode 100644 index 0000000..3831eaa --- /dev/null +++ b/resources/views/auth/login.blade.php @@ -0,0 +1,44 @@ +@section('title') {{'Login'}} @endsection + + + + + + + +

My idlers

+
+ @csrf +
+ + + +
+
+ + + +
+ +
+ + +
+ @if (Route::has('password.request')) + + {{ __('Forgot your password?') }} + + @endif + + {{ __('Login') }} + +
+ +
+
diff --git a/resources/views/auth/passwords/confirm.blade.php b/resources/views/auth/passwords/confirm.blade.php new file mode 100644 index 0000000..f8c8e61 --- /dev/null +++ b/resources/views/auth/passwords/confirm.blade.php @@ -0,0 +1,49 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Confirm Password') }}
+ +
+ {{ __('Please confirm your password before continuing.') }} + +
+ @csrf + +
+ + +
+ + + @error('password') + + {{ $message }} + + @enderror +
+
+ +
+
+ + + @if (Route::has('password.request')) + + {{ __('Forgot Your Password?') }} + + @endif +
+
+
+
+
+
+
+
+@endsection diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php new file mode 100644 index 0000000..d1ac783 --- /dev/null +++ b/resources/views/auth/passwords/email.blade.php @@ -0,0 +1,47 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Reset Password') }}
+ +
+ @if (session('status')) + + @endif + +
+ @csrf + +
+ + +
+ + + @error('email') + + {{ $message }} + + @enderror +
+
+ +
+
+ +
+
+
+
+
+
+
+
+@endsection diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php new file mode 100644 index 0000000..dccf6c6 --- /dev/null +++ b/resources/views/auth/passwords/reset.blade.php @@ -0,0 +1,65 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Reset Password') }}
+ +
+
+ @csrf + + + +
+ + +
+ + + @error('email') + + {{ $message }} + + @enderror +
+
+ +
+ + +
+ + + @error('password') + + {{ $message }} + + @enderror +
+
+ +
+ + +
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+@endsection diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php new file mode 100644 index 0000000..2a52a19 --- /dev/null +++ b/resources/views/auth/register.blade.php @@ -0,0 +1,60 @@ +@section('title') {{'Register'}} @endsection + + + + + +

My idlers Register

+
+ @csrf + + +
+ + + +
+ + +
+ + + +
+ + +
+ + + +
+ + +
+ + + +
+ +
+ +
+ + {{ __('Register') }} + +
+
+
+
+
diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php new file mode 100644 index 0000000..979d1b4 --- /dev/null +++ b/resources/views/auth/reset-password.blade.php @@ -0,0 +1,48 @@ + + + + + + + + + + + +
+ @csrf + + + + + +
+ + + +
+ + +
+ + + +
+ + +
+ + + +
+ +
+ + {{ __('Reset Password') }} + +
+
+
+
diff --git a/resources/views/auth/verify-email.blade.php b/resources/views/auth/verify-email.blade.php new file mode 100644 index 0000000..dc0ae7f --- /dev/null +++ b/resources/views/auth/verify-email.blade.php @@ -0,0 +1,39 @@ + + + + + + + + +
+ {{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }} +
+ + @if (session('status') == 'verification-link-sent') +
+ {{ __('A new verification link has been sent to the email address you provided during registration.') }} +
+ @endif + +
+
+ @csrf + +
+ + {{ __('Resend Verification Email') }} + +
+
+ +
+ @csrf + + +
+
+
+
diff --git a/resources/views/auth/verify.blade.php b/resources/views/auth/verify.blade.php new file mode 100644 index 0000000..9f8c1bc --- /dev/null +++ b/resources/views/auth/verify.blade.php @@ -0,0 +1,28 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
{{ __('Verify Your Email Address') }}
+ +
+ @if (session('resent')) + + @endif + + {{ __('Before proceeding, please check your email for a verification link.') }} + {{ __('If you did not receive the email') }}, +
+ @csrf + . +
+
+
+
+
+
+@endsection diff --git a/resources/views/components/application-logo.blade.php b/resources/views/components/application-logo.blade.php new file mode 100644 index 0000000..46579cf --- /dev/null +++ b/resources/views/components/application-logo.blade.php @@ -0,0 +1,3 @@ + + + diff --git a/resources/views/components/auth-card.blade.php b/resources/views/components/auth-card.blade.php new file mode 100644 index 0000000..e14cb51 --- /dev/null +++ b/resources/views/components/auth-card.blade.php @@ -0,0 +1,12 @@ +
+
+
+ @if(isset($logo)) +
+ {{ $logo }} +
+ @endif + {{ $slot }} +
+
+
diff --git a/resources/views/components/auth-session-status.blade.php b/resources/views/components/auth-session-status.blade.php new file mode 100644 index 0000000..c4bd6e2 --- /dev/null +++ b/resources/views/components/auth-session-status.blade.php @@ -0,0 +1,7 @@ +@props(['status']) + +@if ($status) +
merge(['class' => 'font-medium text-sm text-green-600']) }}> + {{ $status }} +
+@endif diff --git a/resources/views/components/auth-validation-errors.blade.php b/resources/views/components/auth-validation-errors.blade.php new file mode 100644 index 0000000..5fb5265 --- /dev/null +++ b/resources/views/components/auth-validation-errors.blade.php @@ -0,0 +1,14 @@ +@props(['errors']) + +@if ($errors->any()) +
+
+ {{ __('Whoops! Something went wrong.') }} + +
+
+@endif diff --git a/resources/views/components/back-button.blade.php b/resources/views/components/back-button.blade.php new file mode 100644 index 0000000..fd568f3 --- /dev/null +++ b/resources/views/components/back-button.blade.php @@ -0,0 +1 @@ +{{$slot}} diff --git a/resources/views/components/button.blade.php b/resources/views/components/button.blade.php new file mode 100644 index 0000000..8f18773 --- /dev/null +++ b/resources/views/components/button.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/card.blade.php b/resources/views/components/card.blade.php new file mode 100644 index 0000000..721595f --- /dev/null +++ b/resources/views/components/card.blade.php @@ -0,0 +1,5 @@ +
+
+ {{ $slot }} +
+
diff --git a/resources/views/components/cont-card.blade.php b/resources/views/components/cont-card.blade.php new file mode 100644 index 0000000..70fbba9 --- /dev/null +++ b/resources/views/components/cont-card.blade.php @@ -0,0 +1,7 @@ +
+
+
+ +
+
+
diff --git a/resources/views/components/currency-select.blade.php b/resources/views/components/currency-select.blade.php new file mode 100644 index 0000000..c068bf4 --- /dev/null +++ b/resources/views/components/currency-select.blade.php @@ -0,0 +1,12 @@ +
+
{{ $title ??'Currency'}}
+ +
diff --git a/resources/views/components/datatables-assets.blade.php b/resources/views/components/datatables-assets.blade.php new file mode 100644 index 0000000..4d5a6a9 --- /dev/null +++ b/resources/views/components/datatables-assets.blade.php @@ -0,0 +1,3 @@ + + + diff --git a/resources/views/components/date-input.blade.php b/resources/views/components/date-input.blade.php new file mode 100644 index 0000000..002a147 --- /dev/null +++ b/resources/views/components/date-input.blade.php @@ -0,0 +1,5 @@ +
+
{{$title}}
+ +
diff --git a/resources/views/components/delete-confirm-modal.blade.php b/resources/views/components/delete-confirm-modal.blade.php new file mode 100644 index 0000000..d1a6878 --- /dev/null +++ b/resources/views/components/delete-confirm-modal.blade.php @@ -0,0 +1,39 @@ +
+ + + +
diff --git a/resources/views/components/disk-type-select.blade.php b/resources/views/components/disk-type-select.blade.php new file mode 100644 index 0000000..29b5a6d --- /dev/null +++ b/resources/views/components/disk-type-select.blade.php @@ -0,0 +1,6 @@ +
+
{{$title}}
+
diff --git a/resources/views/components/dropdown-link.blade.php b/resources/views/components/dropdown-link.blade.php new file mode 100644 index 0000000..761ee8a --- /dev/null +++ b/resources/views/components/dropdown-link.blade.php @@ -0,0 +1 @@ +merge(['class' => 'block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out']) }}>{{ $slot }} diff --git a/resources/views/components/dropdown.blade.php b/resources/views/components/dropdown.blade.php new file mode 100644 index 0000000..c015664 --- /dev/null +++ b/resources/views/components/dropdown.blade.php @@ -0,0 +1,43 @@ +@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white']) + +@php +switch ($align) { + case 'left': + $alignmentClasses = 'origin-top-left left-0'; + break; + case 'top': + $alignmentClasses = 'origin-top'; + break; + case 'right': + default: + $alignmentClasses = 'origin-top-right right-0'; + break; +} + +switch ($width) { + case '48': + $width = 'w-48'; + break; +} +@endphp + +
+
+ {{ $trigger }} +
+ + +
diff --git a/resources/views/components/errors-alert.blade.php b/resources/views/components/errors-alert.blade.php new file mode 100644 index 0000000..f89787e --- /dev/null +++ b/resources/views/components/errors-alert.blade.php @@ -0,0 +1,9 @@ +@if ($errors->any()) +
+ +
+@endif diff --git a/resources/views/components/form-style.blade.php b/resources/views/components/form-style.blade.php new file mode 100644 index 0000000..121f50e --- /dev/null +++ b/resources/views/components/form-style.blade.php @@ -0,0 +1,42 @@ + diff --git a/resources/views/components/input.blade.php b/resources/views/components/input.blade.php new file mode 100644 index 0000000..481beac --- /dev/null +++ b/resources/views/components/input.blade.php @@ -0,0 +1,3 @@ +@props(['disabled' => false]) + +merge(['class' => 'form-control']) !!}> diff --git a/resources/views/components/label.blade.php b/resources/views/components/label.blade.php new file mode 100644 index 0000000..27d02b0 --- /dev/null +++ b/resources/views/components/label.blade.php @@ -0,0 +1,5 @@ +@props(['value']) + + diff --git a/resources/views/components/labels-select.blade.php b/resources/views/components/labels-select.blade.php new file mode 100644 index 0000000..bd43542 --- /dev/null +++ b/resources/views/components/labels-select.blade.php @@ -0,0 +1,11 @@ +
+
{{$title}}
+ +
diff --git a/resources/views/components/locations-select.blade.php b/resources/views/components/locations-select.blade.php new file mode 100644 index 0000000..8c8cadb --- /dev/null +++ b/resources/views/components/locations-select.blade.php @@ -0,0 +1,10 @@ +
+
{{ $title ??'Location'}}
+ +
diff --git a/resources/views/components/login-card.blade.php b/resources/views/components/login-card.blade.php new file mode 100644 index 0000000..3ba4b47 --- /dev/null +++ b/resources/views/components/login-card.blade.php @@ -0,0 +1,18 @@ +
+ @isset($header) +
+ {!! $header !!} +
+ @endisset + @isset($body) +
+ {!! $body !!} + {{ $slot }} +
+ @endisset + @isset($footer) + + @endisset +
diff --git a/resources/views/components/modal-delete-script.blade.php b/resources/views/components/modal-delete-script.blade.php new file mode 100644 index 0000000..e6558a0 --- /dev/null +++ b/resources/views/components/modal-delete-script.blade.php @@ -0,0 +1,19 @@ + diff --git a/resources/views/components/modal-style.blade.php b/resources/views/components/modal-style.blade.php new file mode 100644 index 0000000..b610f9b --- /dev/null +++ b/resources/views/components/modal-style.blade.php @@ -0,0 +1,32 @@ + diff --git a/resources/views/components/nav-link.blade.php b/resources/views/components/nav-link.blade.php new file mode 100644 index 0000000..1e98d46 --- /dev/null +++ b/resources/views/components/nav-link.blade.php @@ -0,0 +1,13 @@ +@props(['active']) + +@php + $classes = ($active ?? false) + ? 'nav-link active' + : 'nav-link'; +@endphp + + diff --git a/resources/views/components/number-input.blade.php b/resources/views/components/number-input.blade.php new file mode 100644 index 0000000..aad5c5d --- /dev/null +++ b/resources/views/components/number-input.blade.php @@ -0,0 +1,5 @@ +
+
{{$title}}
+ +
diff --git a/resources/views/components/os-select.blade.php b/resources/views/components/os-select.blade.php new file mode 100644 index 0000000..09749ad --- /dev/null +++ b/resources/views/components/os-select.blade.php @@ -0,0 +1,10 @@ +
+
{{ $title ??'OS'}}
+ +
diff --git a/resources/views/components/pricing-select.blade.php b/resources/views/components/pricing-select.blade.php new file mode 100644 index 0000000..f08cf3c --- /dev/null +++ b/resources/views/components/pricing-select.blade.php @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/resources/views/components/providers-select.blade.php b/resources/views/components/providers-select.blade.php new file mode 100644 index 0000000..ebf8bd2 --- /dev/null +++ b/resources/views/components/providers-select.blade.php @@ -0,0 +1,10 @@ +
+
{{ $title ??'Provider'}}
+ +
diff --git a/resources/views/components/ram-type-select.blade.php b/resources/views/components/ram-type-select.blade.php new file mode 100644 index 0000000..a07e069 --- /dev/null +++ b/resources/views/components/ram-type-select.blade.php @@ -0,0 +1,6 @@ +
+
{{$title}}
+
diff --git a/resources/views/components/responsive-nav-link.blade.php b/resources/views/components/responsive-nav-link.blade.php new file mode 100644 index 0000000..6e4dff7 --- /dev/null +++ b/resources/views/components/responsive-nav-link.blade.php @@ -0,0 +1,11 @@ +@props(['active']) + +@php +$classes = ($active ?? false) + ? 'text-decoration-none' + : 'text-decoration-none'; +@endphp + +merge(['class' => $classes]) }}> + {{ $slot }} + diff --git a/resources/views/components/submit-button.blade.php b/resources/views/components/submit-button.blade.php new file mode 100644 index 0000000..e6b1056 --- /dev/null +++ b/resources/views/components/submit-button.blade.php @@ -0,0 +1,4 @@ + diff --git a/resources/views/components/success-alert.blade.php b/resources/views/components/success-alert.blade.php new file mode 100644 index 0000000..add129c --- /dev/null +++ b/resources/views/components/success-alert.blade.php @@ -0,0 +1,5 @@ +@if ($message = Session::get('success')) + +@endif diff --git a/resources/views/components/term-select.blade.php b/resources/views/components/term-select.blade.php new file mode 100644 index 0000000..ffbf55e --- /dev/null +++ b/resources/views/components/term-select.blade.php @@ -0,0 +1,11 @@ +
+
{{ $title ??'Term'}}
+ +
diff --git a/resources/views/components/text-input.blade.php b/resources/views/components/text-input.blade.php new file mode 100644 index 0000000..4f94292 --- /dev/null +++ b/resources/views/components/text-input.blade.php @@ -0,0 +1,5 @@ +
+
{{$title}}
+ +
diff --git a/resources/views/components/yes-no-select.blade.php b/resources/views/components/yes-no-select.blade.php new file mode 100644 index 0000000..e6bcf21 --- /dev/null +++ b/resources/views/components/yes-no-select.blade.php @@ -0,0 +1,6 @@ +
+
{{$title}}
+
diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php new file mode 100644 index 0000000..025a79a --- /dev/null +++ b/resources/views/dashboard.blade.php @@ -0,0 +1,17 @@ + + +

+ {{ __('Dashboard') }} +

+
+ +
+
+
+
+ You're logged in! +
+
+
+
+
diff --git a/resources/views/dns/create.blade.php b/resources/views/dns/create.blade.php new file mode 100644 index 0000000..9a34d0e --- /dev/null +++ b/resources/views/dns/create.blade.php @@ -0,0 +1,133 @@ +@section('title') {{'Insert DNS'}} @endsection + + + {{ __('Insert a new DNS') }} + +
+ +

DNS information

+ + {{ route('dns.index') }} + Go back + + +
+ @csrf +
+
+
+
Hostname
+ + @error('name') {{ $message }} + @enderror +
+
+
+ + address + address + +
+
+
+
Type
+
+
+
+
+
+ + label + label1 + +
+
+ + label + label2 + +
+
+ + label + label3 + +
+
+ + label + label4 + +
+
+
+

Related to:

+
+
+
Server
+
+
+
+
+
Shared
+
+
+
+
+
Reseller
+
+
+
+
+
Domain
+
+
+
+
+
+ Insert DNS +
+
+
+
+
+
diff --git a/resources/views/dns/edit.blade.php b/resources/views/dns/edit.blade.php new file mode 100644 index 0000000..c2a382c --- /dev/null +++ b/resources/views/dns/edit.blade.php @@ -0,0 +1,149 @@ +@section('title') {{'Edit'}} {{ $dn->hostname }} {{$dn->dns_type}} {{'DNS'}} @endsection + + + Edit {{ $dn->hostname }} {{$dn->dns_type}} record + +
+ +

DNS information

+ + {{ route('dns.index') }} + Go back + + +
+ @csrf + @method('PUT') +
+
+
+
Hostname
+ + @error('name') {{ $message }} + @enderror +
+
+
+
+
Address
+ +
+
+
+
+
Type
+ +
+
+
+
+
+ + label + label1 + @if(isset($labels[0]->id)) + {{$labels[0]->id}} + @endif + +
+
+ + label + label2 + @if(isset($labels[1]->id)) + {{$labels[1]->id}} + @endif + +
+
+ + label + label3 + @if(isset($labels[2]->id)) + {{$labels[2]->id}} + @endif + +
+
+ + label + label4 + @if(isset($labels[3]->id)) + {{$labels[3]->id}} + @endif + +
+
+
+

Related to:

+
+
+
Server
+
+
+
+
+
Shared
+
+
+
+
+
Reseller
+
+
+
+
+
Domain
+
+
+
+
+
+ Update DNS +
+
+
+
+
+
diff --git a/resources/views/dns/index.blade.php b/resources/views/dns/index.blade.php new file mode 100644 index 0000000..9d546bb --- /dev/null +++ b/resources/views/dns/index.blade.php @@ -0,0 +1,70 @@ +@section('title') {{'DNS'}} @endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('DNS') }} + +
+ + + Add DNS + +
+ + + + + + + + + + + @if(!empty($dn[0])) + @foreach($dn as $dns) + + + + + + + @endforeach + @else + + + + @endif + +
TypeHostnameAddressActions
{{ $dns->dns_type}}{{ $dns->hostname}}{{ $dns->address}} +
+ + + + + @csrf + @method('DELETE') + +
+
No DNSes found.
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + dns + +
diff --git a/resources/views/dns/show.blade.php b/resources/views/dns/show.blade.php new file mode 100644 index 0000000..ca575ee --- /dev/null +++ b/resources/views/dns/show.blade.php @@ -0,0 +1,102 @@ +@section('title') {{ $dns->hostname }} {{$dns->dns_type}} {{'dns'}} @endsection + + + {{ __('DNS details') }} + +
+ +
+
+

{{ $dns->hostname}}

+ @foreach($labels as $label) + @if($loop->last) + {{$label->label}} + @else + {{$label->label}}, + @endif + @endforeach +
+
+
{{$dns->id }}
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Type{{ $dns->dns_type }}
Name{{ $dns->hostname }}
Address{{ $dns->address }}
Server + @if(isset($dns->server_id)) + {{ $dns->server_id }} + @endif +
Shared + @if(isset($dns->shared_id)) + {{ $dns->shared_id }} + @endif +
Reseller + @if(isset($dns->reseller_id)) + {{ $dns->reseller_id }} + @endif +
Domain + @if(isset($dns->domain_id)) + {{ $dns->domain_id }} + @endif
Inserted + @if(!is_null($dns->created_at)) + {{ date_format(new DateTime($dns->created_at), 'jS M y g:i a') }} + @endif +
Updated + @if(!is_null($dns->updated_at)) + {{ date_format(new DateTime($dns->updated_at), 'jS M y g:i a') }} + @endif +
+
+
+
+ + Go back + + + Edit + +
+
+
diff --git a/resources/views/domains/create.blade.php b/resources/views/domains/create.blade.php new file mode 100644 index 0000000..9e9a0d1 --- /dev/null +++ b/resources/views/domains/create.blade.php @@ -0,0 +1,137 @@ +@section('title') {{'Insert domain'}} @endsection + + + {{ __('Insert a new domain') }} + +
+ +

Domain information

+ + {{ route('domains.index') }} + Go back + + +
+ @csrf +
+
+
+
Domain
+ + @error('name') {{ $message }} + @enderror +
+
+
+ + extension + extension + 255 + com + +
+
+
+
+ + NS1 + ns1 + 255 + +
+
+ + NS2 + ns2 + 255 + +
+
+ + NS3 + ns3 + 255 + +
+
+
+
+ + 1 + +
+
+ + Price + price + 9.99 + 9999 + 0.01 + + +
+
+ + 4 + +
+
+ + {{Session::get('default_currency')}} + +
+
+
+
+ + Owned since + owned_since + {{Carbon\Carbon::now()->subDays(30)->format('Y-m-d') }} + +
+
+ + Next due date + next_due_date + {{Carbon\Carbon::now()->addDays(30)->format('Y-m-d') }} + +
+
+
+
+ + label + label1 + +
+
+ + label + label2 + +
+
+ + label + label3 + +
+
+ + label + label4 + +
+
+
+
+ Insert domain +
+
+
+
+
+
diff --git a/resources/views/domains/edit.blade.php b/resources/views/domains/edit.blade.php new file mode 100644 index 0000000..f9ae1c4 --- /dev/null +++ b/resources/views/domains/edit.blade.php @@ -0,0 +1,162 @@ +@section('title') {{'Edit domain'}} @endsection + + + Edit {{ $domain->domain }}.{{ $domain->extension }} + +
+ +

Domain information

+ + {{ route('domains.index') }} + Go back + + +
+ @csrf + @method('PUT') +
+
+ +
+
domain
+ + @error('name') {{ $message }} + @enderror +
+
+
+ + Extension + extension + {{ $domain->extension }} + +
+
+
+
+ + NS1 + ns1 + 255 + {{$domain->ns1}} + +
+
+ + NS2 + ns2 + 255 + {{$domain->ns2}} + +
+
+ + NS3 + ns3 + 255 + {{$domain->ns3}} + +
+
+
+
+ + + {{$domain->provider_id}} + + +
+
+ + Price + price + 0.01 + {{ $domain_info[0]->price }} + +
+
+ + {{$domain_info[0]->term}} + +
+
+ + {{$domain_info[0]->currency}} + +
+
+
+
+ + Owned since + owned_since + {{$domain_info[0]->owned_since }} + +
+
+ + Next due date + next_due_date + {{$domain_info[0]->next_due_date}} + +
+
+ +
+
+ + label + label1 + @if(isset($labels[0]->id)) + {{$labels[0]->id}} + @endif + +
+
+ + label + label2 + @if(isset($labels[1]->id)) + {{$labels[1]->id}} + @endif + +
+
+ + label + label3 + @if(isset($labels[2]->id)) + {{$labels[2]->id}} + @endif + +
+
+ + label + label4 + @if(isset($labels[3]->id)) + {{$labels[3]->id}} + @endif + +
+
+ +
+ active === 1) ? 'checked' : '' }}> + +
+
+
+ Update domain +
+
+
+
+
+
diff --git a/resources/views/domains/index.blade.php b/resources/views/domains/index.blade.php new file mode 100644 index 0000000..fd46f07 --- /dev/null +++ b/resources/views/domains/index.blade.php @@ -0,0 +1,77 @@ +@section('title') {{'Domains'}} @endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Domains') }} + +
+ + + Add a domain + +
+ + + + + + + + + + + + + @if(!empty($domains)) + @foreach($domains as $domain) + + + + + + + + + @endforeach + @else + + + + @endif + +
DomainOwned sinceDue inProviderPriceActions
{{ $domain->domain }} + .{{$domain->extension}}{{ $domain->owned_since}}{{ now()->diffInDays($domain->next_due_date) }} days + {{ $domain->provider_name}}{{ $domain->price }} {{$domain->currency}} +
+ + + + + @csrf + @method('DELETE') + +
+
No domains found.
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + domains + +
diff --git a/resources/views/domains/show.blade.php b/resources/views/domains/show.blade.php new file mode 100644 index 0000000..4e9faa2 --- /dev/null +++ b/resources/views/domains/show.blade.php @@ -0,0 +1,102 @@ +@section('title') {{ $domain->domain }}.{{$domain->extension}} {{'domain'}} @endsection + + + {{ __('Domain details') }} + +
+ +
+
+

{{ $domain->domain }}.{{$domain->extension}}

+ @foreach($labels as $label) + @if($loop->last) + {{$label->label}} + @else + {{$label->label}}, + @endif + @endforeach +
+
+
{{ $domain->id }}
+ @if($domain->active !== 1) +
not active
+ @endif +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Domain{{ $domain->domain }}.{{$domain->extension}}
Provider{{ $service_extras[0]->provider_name }}
Price{{ $service_extras[0]->price }} {{ $service_extras[0]->currency }} + {{\App\Process::paymentTermIntToString($service_extras[0]->term)}} +
NS1{{ $domain->ns1 }}
NS2{{ $domain->ns2 }}
NS3{{ $domain->ns3 }}
Owned since + @if(!is_null($domain->owned_since)) + {{ date_format(new DateTime($domain->owned_since), 'jS F Y') }} + @endif +
Next due date{{Carbon\Carbon::parse($service_extras[0]->next_due_date)->diffForHumans()}} + ({{Carbon\Carbon::parse($service_extras[0]->next_due_date)->format('d/m/Y')}}) +
Inserted + @if(!is_null($domain->created_at)) + {{ date_format(new DateTime($domain->created_at), 'jS M y g:i a') }} + @endif +
Updated + @if(!is_null($domain->updated_at)) + {{ date_format(new DateTime($domain->updated_at), 'jS M y g:i a') }} + @endif +
+
+
+
+ + Go back + + + Edit + +
+
+
diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php new file mode 100644 index 0000000..a62683d --- /dev/null +++ b/resources/views/errors/404.blade.php @@ -0,0 +1,51 @@ +@section('title') {{'Error'}} +@if(isset($status)) + {{$status}} +@else + 404 +@endif +@endsection +@section('style') + +@endsection + +
+
+ @if(isset($status)) +

{{$status}}

+ @else +

Error

+ @endif + @if(isset($title)) +

{{$title}}

+ @endif + @if(isset($message)) +

{{$message}}

+ @endif +

Go home

+
+
+
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php new file mode 100644 index 0000000..079229c --- /dev/null +++ b/resources/views/home.blade.php @@ -0,0 +1,284 @@ +@section('title') {{'Home'}} @endsection + +
+ @if (Route::has('login')) + @auth +
+
+
+
+
+

{{ $information['servers'] }}

+
Servers
+
+
+
+
+
+
+
+
+

{{ $information['shared'] }}

+
Shared
+
+
+
+
+
+
+
+
+

{{ $information['reseller'] }}

+
Reseller
+
+
+
+
+
+
+
+
+

{{ $information['domains'] }}

+
Domains
+
+
+
+
+
+
+
+
+

{{ $information['misc'] }}

+
Misc
+
+
+
+
+
+
+
+
+

{{ $information['dns'] }}

+
DNS
+
+
+
+
+
+ +
+
+
+
+
+

{{$information['total_cost_weekly']}} USD

+

Weekly cost

+
+
+
+
+
+
+
+
+

{{$information['total_cost_monthly']}} USD +

+

Monthly cost

+
+
+
+
+
+
+
+
+

{{$information['total_cost_yearly']}} USD

+

Yearly cost

+
+
+
+
+
+
+
+
+

{{$information['total_cost_2_yearly']}} USD +

+

2 yearly cost

+
+
+
+
+
+
+
+
+

{{$information['total_services']}}

+

Active services

+
+
+
+
+
+
+
+
+

{{$information['total_inactive']}}

+

Inactive services

+
+
+
+
+
+ + +

Due soon

+ @if(!empty($information['due_soon'])) +
+
+
+ + + + + + + + + + + + @foreach($information['due_soon'] as $due_soon) + + + + + + + + @endforeach + +
NameTypeDuePrice
+ @if($due_soon->service_type === 1) + {{$due_soon->hostname}} + @elseif($due_soon->service_type === 2) + {{$due_soon->main_domain}} + @elseif($due_soon->service_type === 3) + {{$due_soon->reseller}} + @elseif($due_soon->service_type === 4) + {{$due_soon->domain}}.{{$due_soon->extension}} + @elseif($due_soon->service_type === 5) + {{$due_soon->name}} + @endif + + @if($due_soon->service_type === 1) + VPS + @elseif($due_soon->service_type === 2) + Shared + @elseif($due_soon->service_type === 3) + Reseller + @elseif($due_soon->service_type === 4) + Domain + @elseif($due_soon->service_type === 5) + Misc + @endif + + {{Carbon\Carbon::parse($due_soon->next_due_date)->diffForHumans()}}{{$due_soon->price}} {{$due_soon->currency}} {{\App\Process::paymentTermIntToString($due_soon->term)}} + @if($due_soon->service_type === 1) + + @elseif($due_soon->service_type === 2) + + @elseif($due_soon->service_type === 3) + + @elseif($due_soon->service_type === 4) + + @elseif($due_soon->service_type === 5) + + @endif +
+ +
+
+
+ @endif + +

Recently added

+ @if(!empty($information['newest'])) +
+
+
+ + + + + + + + + + + + @foreach($information['newest'] as $new) + + + + + + + + @endforeach + +
NameTypeAddedPrice
+ @if($new->service_type === 1) + {{$new->hostname}} + @elseif($new->service_type === 2) + {{$new->main_domain}} + @elseif($new->service_type === 3) + {{$new->reseller}} + @elseif($new->service_type === 4) + {{$new->domain}}.{{$new->extension}} + @elseif($new->service_type === 5) + {{$new->name}} + @endif + + @if($new->service_type === 1) + VPS + @elseif($new->service_type === 2) + Shared + @elseif($new->service_type === 3) + Reseller + @elseif($new->service_type === 4) + Domain + @elseif($new->service_type === 5) + Misc + @endif + {{Carbon\Carbon::parse($new->created_at)->diffForHumans()}}{{$new->price}} {{$new->currency}} {{\App\Process::paymentTermIntToString($new->term)}} + + + +
+ +
+
+
+ @endif + @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Page took {{$information['execution_time']}} seconds, + Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + @else + Login + + @if (Route::has('register')) + Register + @endif + @endauth + + @endif + +
diff --git a/resources/views/ips/create.blade.php b/resources/views/ips/create.blade.php new file mode 100644 index 0000000..9dc6f8b --- /dev/null +++ b/resources/views/ips/create.blade.php @@ -0,0 +1,64 @@ +@section('title') {{'Insert IP address'}} @endsection + + + {{ __('Insert a new IP') }} + +
+ +

IP information

+ + {{ route('IPs.index') }} + Go back + + +
+ @csrf +
+
+ + IP address + address + +
+
+
+
Type
+
+
+
+
+

Attached to:

+
+
+
Service
+
+
+
+
+
+ Insert IP +
+
+
+
+
+
diff --git a/resources/views/ips/index.blade.php b/resources/views/ips/index.blade.php new file mode 100644 index 0000000..c38e293 --- /dev/null +++ b/resources/views/ips/index.blade.php @@ -0,0 +1,86 @@ +@section('title') {{'IP Addresses'}} @endsection +@section('css_links') + +@endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('IP Addresses') }} + +
+ + + Add IP + +
+ + + + + + + + + + @if(!empty($ips)) + @foreach($ips as $ip) + + + + + + @endforeach + @else + + + + @endif + +
TypeAddressActions
@if ($ip->is_ipv4 === 1) + IPv4 + @else + IPv6 + @endif{{ $ip->address}} +
+ @csrf + @method('DELETE') + +
+
No IPs found.
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + + + IPs + +
diff --git a/resources/views/labels/create.blade.php b/resources/views/labels/create.blade.php new file mode 100644 index 0000000..cc13a44 --- /dev/null +++ b/resources/views/labels/create.blade.php @@ -0,0 +1,36 @@ +@section('title') {{'Insert project'}} @endsection + + + {{ __('Insert a new label') }} + +
+ +

Label information

+ + {{ route('labels.index') }} + Go back + + +
+ @csrf +
+
+
+
Label
+ + @error('name') {{ $message }} + @enderror +
+
+
+
+
+ Create label +
+
+
+
+
+
diff --git a/resources/views/labels/index.blade.php b/resources/views/labels/index.blade.php new file mode 100644 index 0000000..4eb0656 --- /dev/null +++ b/resources/views/labels/index.blade.php @@ -0,0 +1,80 @@ +@section('title') {{'Labels'}} @endsection +@section('css_links') + +@endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Labels') }} + +
+ + + Add a label + + + + + + + + + + @if(!empty($labels)) + @foreach($labels as $label) + + + + + @endforeach + @else + + + + @endif + +
NameActions
{{ $label->label}} +
+ + + @csrf + +
+
No labels found.
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + + + locations + +
diff --git a/resources/views/labels/show.blade.php b/resources/views/labels/show.blade.php new file mode 100644 index 0000000..af7d3ee --- /dev/null +++ b/resources/views/labels/show.blade.php @@ -0,0 +1,58 @@ +@section('title') {{ $label->label }} {{'label'}} @endsection + + + {{ __('Label details') }} + +
+ +
+
+

{{ $label->label }}

+
+
+
{{ $label->id }}
+
+
+
+
+
+ + + @foreach($labels as $label) + + + + + @endforeach + +
+ @if($label->service_type === 1) + Server + @elseif($label->service_type === 2) + Shared + @elseif($label->service_type === 3) + Reseller + @elseif($label->service_type === 4) + Domain + @endif + + @if($label->service_type === 1) + {{$label->hostname}} + @elseif($label->service_type === 2) + {{$label->shared}} + @elseif($label->service_type === 3) + {{$label->reseller}} + @elseif($label->service_type === 4) + {{$label->domain}}.{{$label->extension}} + @endif +
+
+
+
+ + {{ route('labels.index') }} + Go back + +
+
+
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php new file mode 100644 index 0000000..d38b410 --- /dev/null +++ b/resources/views/layouts/app.blade.php @@ -0,0 +1,39 @@ + + + + + + + @if(isset(Auth::user()->api_token)) + + @endif + + @yield('title') - My idlers + + + + + @yield('css_links') + @yield('style') + + + + @yield('scripts') + + +
+ @include('layouts.navigation') +
+@if(isset($header)) +
+

+ {{ $header}} +

+
+@endif + +
+ {{ $slot }} +
+ + diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php new file mode 100644 index 0000000..1f29a89 --- /dev/null +++ b/resources/views/layouts/guest.blade.php @@ -0,0 +1,19 @@ + + + + + + + + @yield('title') - My idlers + + + + + + + + +{{ $slot }} + + diff --git a/resources/views/layouts/navigation.blade.php b/resources/views/layouts/navigation.blade.php new file mode 100644 index 0000000..7c75def --- /dev/null +++ b/resources/views/layouts/navigation.blade.php @@ -0,0 +1,66 @@ + diff --git a/resources/views/locations/create.blade.php b/resources/views/locations/create.blade.php new file mode 100644 index 0000000..b15998b --- /dev/null +++ b/resources/views/locations/create.blade.php @@ -0,0 +1,36 @@ +@section('title') {{'Insert location'}} @endsection + + + {{ __('Insert a new location') }} + +
+ +

Location information

+ + {{ route('locations.index') }} + Go back + + +
+ @csrf +
+
+
+
Location
+ + @error('locations') {{ $message }} + @enderror +
+
+
+
+
+ Create location +
+
+
+
+
+
diff --git a/resources/views/locations/index.blade.php b/resources/views/locations/index.blade.php new file mode 100644 index 0000000..3d1080e --- /dev/null +++ b/resources/views/locations/index.blade.php @@ -0,0 +1,79 @@ +@section('title') {{'Locations'}} @endsection +@section('css_links') + +@endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Locations') }} + +
+ + + Add a location + + + + + + + + + + @if(!empty($locations)) + @foreach($locations as $location) + + + + + @endforeach + @else + + + + @endif + +
LocationActions
{{ $location->name }} +
+ + + +
+
No locations found.
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + + + locations + +
diff --git a/resources/views/locations/show.blade.php b/resources/views/locations/show.blade.php new file mode 100644 index 0000000..5e18bd7 --- /dev/null +++ b/resources/views/locations/show.blade.php @@ -0,0 +1,60 @@ +@section('title') {{ $location->name }} {{'location'}} @endsection + + + {{ __('Location details') }} + +
+ +
+
+

{{ $location->name }}

+
+
+
{{ $location->id }}
+
+
+
+
+
+ + + @if(!empty($data)) + @foreach($data as $l) + + + + + @endforeach + @else + + + + @endif + +
+ @if(isset($l->hostname)) + Server + @elseif(isset($l->main_domain_shared)) + Shared + @elseif(isset($l->main_domain_reseller)) + Reseller + @endif + + @if(isset($l->hostname)) + {{$l->hostname}} + @elseif(isset($l->main_domain_shared)) + {{$l->main_domain_shared}} + @elseif(isset($l->main_domain_reseller)) + {{$l->main_domain_reseller}} + @endif +
No services found for {{ $location ->name }}
+
+
+
+ + {{ route('locations.index') }} + Go back + +
+
+
diff --git a/resources/views/misc/create.blade.php b/resources/views/misc/create.blade.php new file mode 100644 index 0000000..260cedc --- /dev/null +++ b/resources/views/misc/create.blade.php @@ -0,0 +1,71 @@ +@section('title') {{'Insert misc service'}} @endsection + + + {{ __('Insert a new misc service') }} + +
+ +

Service information

+ + {{ route('misc.index') }} + Go back + + +
+ @csrf +
+
+ +
+
Name
+ + @error('name') {{ $message }} + @enderror +
+
+
+ + Price + price + 9.99 + 9999 + 0.01 + + +
+
+ +
+
+ + {{Session::get('default_currency')}} + +
+
+
+
+ + Owned since + owned_since + {{Carbon\Carbon::now()->format('Y-m-d') }} + +
+
+ + Next due date + next_due_date + {{Carbon\Carbon::now()->addDays(30)->format('Y-m-d') }} + +
+
+
+
+ Insert misc service +
+
+
+
+
+
diff --git a/resources/views/misc/edit.blade.php b/resources/views/misc/edit.blade.php new file mode 100644 index 0000000..b62c2c5 --- /dev/null +++ b/resources/views/misc/edit.blade.php @@ -0,0 +1,78 @@ +@section('title') {{$misc[0]->name}} {{'edit'}} @endsection + + + Edit {{ $misc[0]->name }} + +
+ +

Service information

+ + {{ route('misc.index') }} + Go back + + +
+ @csrf + @method('PUT') +
+
+
+
Name
+ + @error('name') {{ $message }} + @enderror +
+
+
+ + Price + price + 0.01 + {{ $misc[0]->price }} + +
+
+ + {{$misc[0]->term}} + +
+
+ + {{$misc[0]->currency}} + +
+
+
+
+ + Owned since + owned_since + {{$misc[0]->owned_since }} + +
+
+ + Next due date + next_due_date + {{$misc[0]->next_due_date}} + +
+
+
+ active === 1) ? 'checked' : '' }}> + +
+
+
+ Update misc service +
+
+
+
+
+
diff --git a/resources/views/misc/index.blade.php b/resources/views/misc/index.blade.php new file mode 100644 index 0000000..74ac459 --- /dev/null +++ b/resources/views/misc/index.blade.php @@ -0,0 +1,79 @@ +@section('title') {{'Misc services'}} @endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Misc services') }} + +
+ + + Add misc service + +
+ + + + + + + + + + + + @if(!empty($misc[0])) + @foreach($misc as $m) + + + + + + + + @endforeach + @else + + + + @endif + +
NameOwned sinceDue inPriceActions
{{$m->name}} + @if(!is_null($m->owned_since)) + {{ date_format(new DateTime($m->owned_since), 'jS F Y') }} + @endif + {{ now()->diffInDays($m->next_due_date) }} + days{{$m->price}} {{$m->currency}} + {{\App\Process::paymentTermIntToString($m->term)}} +
+ + + + + + @csrf + @method('DELETE') + +
+
No misc services found.
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + misc + +
diff --git a/resources/views/misc/show.blade.php b/resources/views/misc/show.blade.php new file mode 100644 index 0000000..9ba0200 --- /dev/null +++ b/resources/views/misc/show.blade.php @@ -0,0 +1,79 @@ +@section('title') {{ $service_extras[0]->name }} {{'service'}} @endsection + + + {{ __('Misc details') }} + +
+ +
+
+

{{ $service_extras[0]->name}}

+
+
+
{{ $service_extras[0]->service_id }}
+ @if($service_extras[0]->active !== 1) +
not active
+ @endif +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Service{{ $service_extras[0]->name }}
Price{{ $service_extras[0]->price }} {{ $service_extras[0]->currency }} + {{\App\Process::paymentTermIntToString($service_extras[0]->term)}} +
Owned since + @if(!is_null($service_extras[0]->owned_since)) + {{ date_format(new DateTime($service_extras[0]->owned_since), 'jS F Y') }} + @endif +
Next due date{{Carbon\Carbon::parse($service_extras[0]->next_due_date)->diffForHumans()}} + ({{Carbon\Carbon::parse($service_extras[0]->next_due_date)->format('d/m/Y')}}) +
Inserted + @if(!is_null($service_extras[0]->created_at)) + {{ date_format(new DateTime($service_extras[0]->created_at), 'jS M y g:i a') }} + @endif +
Updated + @if(!is_null($service_extras[0]->updated_at)) + {{ date_format(new DateTime($service_extras[0]->updated_at), 'jS M y g:i a') }} + @endif +
+
+
+
+ + Go back + + + Edit + +
+
+
diff --git a/resources/views/os/create.blade.php b/resources/views/os/create.blade.php new file mode 100644 index 0000000..2acde16 --- /dev/null +++ b/resources/views/os/create.blade.php @@ -0,0 +1,36 @@ +@section('title') {{'Insert operating system'}} @endsection + + + {{ __('Insert a new OS') }} + +
+ +

Operating system name

+ + {{ route('os.index') }} + Go back + + +
+ @csrf +
+
+
+
OS
+ + @error('os') {{ $message }} + @enderror +
+
+
+
+
+ Create Operating system +
+
+
+
+
+
diff --git a/resources/views/os/index.blade.php b/resources/views/os/index.blade.php new file mode 100644 index 0000000..e35cd53 --- /dev/null +++ b/resources/views/os/index.blade.php @@ -0,0 +1,76 @@ +@section('title') {{'Operating systems'}} @endsection +@section('css_links') + +@endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Operating systems') }} + +
+ + + Add an OS + + + + + + + + + + @if(!empty($os)) + @foreach($os as $o) + + + + + @endforeach + @else + + + + @endif + +
Operating systemActions
{{ $o->name }} +
+ +
+
No Operating systems found.
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ + + + os + +
diff --git a/resources/views/providers/create.blade.php b/resources/views/providers/create.blade.php new file mode 100644 index 0000000..c118286 --- /dev/null +++ b/resources/views/providers/create.blade.php @@ -0,0 +1,36 @@ +@section('title') {{'Insert provider'}} @endsection + + + {{ __('Insert a new provider') }} + +
+ +

Provider information

+ + {{ route('providers.index') }} + Go back + + +
+ @csrf +
+
+
+
Provider
+ + @error('provider') {{ $message }} + @enderror +
+
+
+
+
+ Create provider +
+
+
+
+
+
diff --git a/resources/views/providers/index.blade.php b/resources/views/providers/index.blade.php new file mode 100644 index 0000000..5b94b90 --- /dev/null +++ b/resources/views/providers/index.blade.php @@ -0,0 +1,77 @@ +@section('title') {{'Providers'}} @endsection +@section('css_links') + +@endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Providers') }} + +
+ + + Add a provider + + + + + + + + + + @if(!empty($providers)) + @foreach($providers as $provider) + + + + + @endforeach + @else + + + + @endif + +
ProviderActions
{{ $provider->name }} +
+ + + +
+
No providers found.
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Built on Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+ + + + providers + +
diff --git a/resources/views/providers/show.blade.php b/resources/views/providers/show.blade.php new file mode 100644 index 0000000..9898d41 --- /dev/null +++ b/resources/views/providers/show.blade.php @@ -0,0 +1,60 @@ +@section('title') {{ $provider->name }} {{'provider'}} @endsection + + + {{ __('Provider details') }} + +
+ +
+
+

{{ $provider->name }}

+
+
+
{{ $provider->id }}
+
+
+
+
+
+ + + @if(!empty($data)) + @foreach($data as $l) + + + + + @endforeach + @else + + + + @endif + +
+ @if(isset($l->hostname)) + Server + @elseif(isset($l->main_domain_shared)) + Shared + @elseif(isset($l->main_domain_reseller)) + Reseller + @endif + + @if(isset($l->hostname)) + {{$l->hostname}} + @elseif(isset($l->main_domain_shared)) + {{$l->main_domain_shared}} + @elseif(isset($l->main_domain_reseller)) + {{$l->main_domain_reseller}} + @endif +
No services found for {{ $provider->name }}
+
+
+
+ + {{ route('providers.index') }} + Go back + +
+
+
diff --git a/resources/views/reseller/create.blade.php b/resources/views/reseller/create.blade.php new file mode 100644 index 0000000..2359db2 --- /dev/null +++ b/resources/views/reseller/create.blade.php @@ -0,0 +1,228 @@ +@section('title') {{'Enter new reseller hosting'}} @endsection + + + {{ __('Insert a new reseller hosting') }} + +
+
+
+

Reseller hosting information

+ + + Go back + +
+ @csrf +
+
+
+
Domain
+ + @error('name') {{ $message }} + @enderror +
+
+
+
+
Type
+ +
+
+
+ + Dedicated IP + dedicated_ip + 255 + +
+
+
+
+ + 1 + +
+
+ + Price + price + 2.50 + 9999 + 0.01 + + +
+
+ +
+
+ + {{Session::get('default_currency')}} + +
+
+
+
+ + 1 + +
+
+ + Was promo + was_promo + 1 + +
+
+ + Owned since + owned_since + {{Carbon\Carbon::now()->format('Y-m-d') }} + +
+
+ + Next due date + next_due_date + {{Carbon\Carbon::now()->addDays(30)->format('Y-m-d') }} + +
+
+
+

Limits

+
+ + Accounts + accounts + 1 + 999999 + 1 + 10 + +
+
+ + Domains + domains + 1 + 999999 + 1 + 10 + +
+
+ + Sub domains + sub_domains + 1 + 999999 + 1 + 20 + +
+
+ + Disk GB + disk + 1 + 999999 + 1 + 50 + +
+
+
+
+ + Email + Email + 1 + 999999 + 1 + 100 + +
+
+ + Bandwidth GB + bandwidth + 1 + 999999 + 1 + 500 + +
+
+ + FTP + ftp + 1 + 999999 + 1 + 100 + +
+
+ + DB + db + 1 + 999999 + 1 + 100 + +
+
+
+
+ + label + label1 + +
+
+ + label + label2 + +
+
+ + label + label3 + +
+
+ + label + label4 + +
+
+
+ +
+
+
+
+
+
diff --git a/resources/views/reseller/edit.blade.php b/resources/views/reseller/edit.blade.php new file mode 100644 index 0000000..028880c --- /dev/null +++ b/resources/views/reseller/edit.blade.php @@ -0,0 +1,287 @@ +@section('title') {{$reseller[0]->main_domain}} {{'edit'}} @endsection + + + Edit {{ $reseller[0]->main_domain }} + + +
+
+
+ + Back to reseller hosting + + +
+ @csrf + @method('PUT') +
+
+
+
Domain
+ + @error('name') {{ $message }} + @enderror +
+
+
+ +
+
Type
+ +
+
+
+ + Dedicated IP + dedicated_ip + 255 + @if(isset($ip_address[0]['address'])){{$ip_address[0]['address']}}@endif + +
+
+
+
+ + {{$reseller[0]->provider_id}} + +
+
+ + Price + price + {{$reseller[0]->price}} + 9999 + 0.01 + + +
+
+ + {{$reseller[0]->term}} + +
+
+ + {{$reseller[0]->currency}} + +
+
+
+
+ + {{$reseller[0]->location_id}} + +
+
+ + Promo price + was_promo + {{ $reseller[0]->was_promo }} + +
+
+ + Owned since + owned_since + {{$reseller[0]->owned_since }} + +
+
+ + Next due date + next_due_date + {{$reseller[0]->next_due_date }} + +
+
+
+

Limits

+
+ + Accounts + accounts + 1 + 999999 + 1 + {{$reseller[0]->accounts}} + +
+
+ + Domains + domains + 1 + 999999 + 1 + {{$reseller[0]->domains_limit}} + +
+
+ + Sub domains + sub_domains + 1 + 999999 + 1 + {{$reseller[0]->subdomains_limit}} + +
+
+ + Disk GB + disk + 1 + 999999 + 1 + {{$reseller[0]->disk_as_gb}} + +
+
+
+
+ + Email + Email + 1 + 999999 + 1 + {{$reseller[0]->email_limit}} + +
+
+ + Bandwidth GB + bandwidth + 1 + 999999 + 1 + {{$reseller[0]->bandwidth}} + +
+
+ + FTP + ftp + 1 + 999999 + 1 + {{$reseller[0]->ftp_limit}} + +
+
+ + DB + db + 1 + 999999 + 1 + {{$reseller[0]->db_limit}} + +
+
+
+
+ + label + label1 + @if(isset($labels[0]->id)) + {{$labels[0]->id}} + @endif + +
+
+ + label + label2 + @if(isset($labels[1]->id)) + {{$labels[1]->id}} + @endif + +
+
+ + label + label3 + @if(isset($labels[2]->id)) + {{$labels[2]->id}} + @endif + +
+
+ + label + label4 + @if(isset($labels[3]->id)) + {{$labels[3]->id}} + @endif + +
+
+
+ active === 1) ? 'checked' : '' }}> + +
+ +
+ +
+
+
+
+
+
diff --git a/resources/views/reseller/index.blade.php b/resources/views/reseller/index.blade.php new file mode 100644 index 0000000..0b2b08f --- /dev/null +++ b/resources/views/reseller/index.blade.php @@ -0,0 +1,102 @@ +@section('title') {{'Resellers'}} @endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Reseller') }} + + +
+ +
+
+ Add a reseller + @if ($message = Session::get('success')) + + @endif +
+ + + + + + + + + + + + + + + + + @if(!empty($resellers)) + @foreach($resellers as $row) + + + + + + + + + + + + + @endforeach + @else + + + + @endif + +
NameTypeAccountsLocationProviderDiskPriceDueHad sinceActions
{{ $row->main_domain }}{{ $row->reseller_type }}{{ $row->accounts }}{{ $row->location }}{{ $row->provider_name }}{{ $row->disk_as_gb }} GB{{ $row->price }} {{$row->currency}} {{\App\Process::paymentTermIntToString($row->term)}}{{Carbon\Carbon::parse($row->next_due_date)->diffForHumans()}}{{ $row->owned_since }} +
+ + + +
+
No reseller hosting found.
+ +
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+ +
diff --git a/resources/views/reseller/show.blade.php b/resources/views/reseller/show.blade.php new file mode 100644 index 0000000..f3093ec --- /dev/null +++ b/resources/views/reseller/show.blade.php @@ -0,0 +1,161 @@ +@section('title') {{$reseller->main_domain}} {{'reseller hosting'}} @endsection + + + {{ __('Reseller hosting details') }} + +
+ +
+
+

{{ $reseller->main_domain }}

+ @foreach($labels as $label) + @if($loop->last) + {{$label->label}} + @else + {{$label->label}}, + @endif + @endforeach +
+
+
{{ $reseller->id }}
+ @if($reseller->active !== 1) +
not active
+ @endif +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Type{{ $reseller_extras[0]->reseller_type }}
Main domain{{ $reseller->main_domain }}
Location{{ $reseller_extras[0]->location }}
Provider{{ $reseller_extras[0]->provider_name }}
Price{{ $reseller_extras[0]->price }} {{ $reseller_extras[0]->currency }} + {{\App\Process::paymentTermIntToString($reseller_extras[0]->term)}} +
Has dedicated IP? + @if(isset($ip_address[0]->address)) + Yes + @else + No + @endif +
IP@if(isset($ip_address[0]->address)) + {{$ip_address[0]->address}} + @endif +
Owned since + @if(!is_null($reseller->owned_since)) + {{ date_format(new DateTime($reseller->owned_since), 'jS F Y') }} + @endif +
Next due date{{Carbon\Carbon::parse($reseller_extras[0]->next_due_date)->diffForHumans()}} + ({{Carbon\Carbon::parse($reseller_extras[0]->next_due_date)->format('d/m/Y')}}) +
Inserted + @if(!is_null($reseller->created_at)) + {{ date_format(new DateTime($reseller->created_at), 'jS M y g:i a') }} + @endif +
Updated + @if(!is_null($reseller->updated_at)) + {{ date_format(new DateTime($reseller->updated_at), 'jS M y g:i a') }} + @endif +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Disk GB{{$reseller->disk_as_gb}}
Accounts{{$reseller->accounts}}
Domains Limit{{$reseller->domains_limit}}
Subdomains Limit{{$reseller->subdomains_limit}}
Bandwidth GB{{$reseller->bandwidth}}
Email Limit{{$reseller->email_limit}}
DB Limit{{$reseller->db_limit}}
FTP Limit{{$reseller->ftp_limit}}
+ +
+
+ + Go back + + + Edit + +
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+
diff --git a/resources/views/servers/choose-compare.blade.php b/resources/views/servers/choose-compare.blade.php new file mode 100644 index 0000000..58665fd --- /dev/null +++ b/resources/views/servers/choose-compare.blade.php @@ -0,0 +1,77 @@ +@section('title') {{'Choose servers'}} @endsection +@section('scripts') + +@endsection + + + {{ __('Choose two servers to compare') }} + +
+
+
+ Servers home +
+
+
+
Server1
+ +
+
+
+
+
Server2
+ +
+
+
+ + View comparison table +
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Built on Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+ +
diff --git a/resources/views/servers/compare.blade.php b/resources/views/servers/compare.blade.php new file mode 100644 index 0000000..aaa1289 --- /dev/null +++ b/resources/views/servers/compare.blade.php @@ -0,0 +1,246 @@ +@section('title') {{'Compare servers'}} @endsection +@section('style') + +@endsection + +
+
+
+ Choose others +
+ + + + + + + + + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->cpu_cores, $server2_data[0]->cpu_cores, ' cores') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->cpu_freq, $server2_data[0]->cpu_freq, 'Ghz') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->ram_mb, $server2_data[0]->ram_mb, 'MB') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->disk_gb, $server2_data[0]->disk_gb, 'GB') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->gb5_single, $server2_data[0]->gb5_single, '') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->gb5_multi, $server2_data[0]->gb5_multi, '') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->d_4k_as_mbps, $server2_data[0]->d_4k_as_mbps, 'MB/s') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->d_64k_as_mbps, $server2_data[0]->d_64k_as_mbps, 'MB/s') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->d_512k_as_mbps, $server2_data[0]->d_512k_as_mbps, 'MB/s') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->d_1m_as_mbps, $server2_data[0]->d_1m_as_mbps, 'MB/s') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_network[0]->send_as_mbps, $server2_network[0]->send_as_mbps, 'MBps') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_network[0]->receive_as_mbps, $server2_network[0]->receive_as_mbps, 'MBps') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_network[1]->send_as_mbps, $server2_network[1]->send_as_mbps, 'MBps') !!} + + + @if($server1_network[0]->location === $server2_network[0]->location) + + + + {!! \App\Models\Server::tableRowCompare($server1_network[1]->receive_as_mbps, $server2_network[1]->receive_as_mbps, 'MBps') !!} + + + @endif + @if($server1_network[1]->location === $server2_network[1]->location) + + + + {!! \App\Models\Server::tableRowCompare($server1_network[2]->send_as_mbps, $server2_network[2]->send_as_mbps, 'MBps') !!} + + + @endif + @if($server1_network[2]->location === $server2_network[2]->location) + + + + {!! \App\Models\Server::tableRowCompare($server1_network[2]->receive_as_mbps, $server2_network[2]->receive_as_mbps, 'MBps') !!} + + + @endif + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->usd_per_month, $server2_data[0]->usd_per_month, 'p/m') !!} + + + + + + + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->cpu_cores / $server1_data[0]->usd_per_month, $server2_data[0]->cpu_cores / $server2_data[0]->usd_per_month, '') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->disk_gb / $server1_data[0]->usd_per_month, $server2_data[0]->disk_gb / $server2_data[0]->usd_per_month, '') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->ram_mb / $server1_data[0]->usd_per_month, $server2_data[0]->ram_mb / $server2_data[0]->usd_per_month, '') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->gb5_single / $server1_data[0]->usd_per_month, $server2_data[0]->gb5_single / $server2_data[0]->usd_per_month, '') !!} + + + + + + {!! \App\Models\Server::tableRowCompare($server1_data[0]->gb5_multi / $server1_data[0]->usd_per_month, $server2_data[0]->gb5_multi / $server2_data[0]->usd_per_month, '') !!} + + + + + + + + + + + + + + + + + + + + + +
{{$server1_data[0]->hostname}}DIF{{$server2_data[0]->hostname}}
CPU count{{$server1_data[0]->cpu_cores}}{{$server2_data[0]->cpu_cores}}
CPU freq{{$server1_data[0]->cpu_freq}}Ghz{{$server2_data[0]->cpu_freq}}Ghz
Ram{{$server1_data[0]->ram_mb}}MB{{$server2_data[0]->ram_mb}}MB
Disk{{$server1_data[0]->disk_gb}}GB{{$server2_data[0]->disk_gb}}GB
GB5 single{{$server1_data[0]->gb5_single}}{{$server2_data[0]->gb5_single}}
GB5 multi{{$server1_data[0]->gb5_multi}}{{$server2_data[0]->gb5_multi}}
4k disk{{$server1_data[0]->d_4k_as_mbps}}MB/s + {{$server2_data[0]->d_4k_as_mbps}}MB/s +
64k disk{{$server1_data[0]->d_64k_as_mbps}}MB/s + {{$server2_data[0]->d_64k_as_mbps}}MB/s +
512k disk{{$server1_data[0]->d_512k_as_mbps}}MB/s{{$server2_data[0]->d_512k_as_mbps}}MB/s
1m disk{{$server1_data[0]->d_1m_as_mbps}}MB/s + {{$server2_data[0]->d_1m_as_mbps}}MB/s +
{{$server1_network[0]->location}} send{{$server1_network[0]->send_as_mbps}}MBps{{$server2_network[0]->send_as_mbps}}MBps
{{$server1_network[0]->location}} receive{{$server1_network[0]->receive_as_mbps}}MBps{{$server2_network[0]->receive_as_mbps}}MBps
{{$server1_network[1]->location}} send{{$server1_network[1]->send_as_mbps}}MBps{{$server2_network[1]->send_as_mbps}}MBps
{{$server1_network[1]->location}} receive{{$server1_network[1]->receive_as_mbps}}MBps + {{$server2_network[1]->receive_as_mbps}}MBps +
{{$server1_network[2]->location}} send{{$server1_network[2]->send_as_mbps}}MBps{{$server2_network[2]->send_as_mbps}}MBps
{{$server1_network[2]->location}} receive{{$server1_network[2]->receive_as_mbps}}MBps + {{$server2_network[2]->receive_as_mbps}}MBps +
USD p/m{{$server1_data[0]->usd_per_month}}p/m + {{$server2_data[0]->usd_per_month}}p/m +
Actual price{{$server1_data[0]->price}}{{$server1_data[0]->currency}} {{\App\Process::paymentTermIntToString($server1_data[0]->term)}} + {{$server2_data[0]->price}}{{$server2_data[0]->currency}} {{\App\Process::paymentTermIntToString($server2_data[0]->term)}} +
CPU per USD{{number_format($server1_data[0]->cpu_cores / $server1_data[0]->usd_per_month,2)}}{{number_format($server2_data[0]->cpu_cores / $server2_data[0]->usd_per_month,2)}}
Disk GB per USD{{number_format($server1_data[0]->disk_gb / $server1_data[0]->usd_per_month,2)}}{{number_format($server2_data[0]->disk_gb / $server2_data[0]->usd_per_month,2)}}
Ram MB per USD{{number_format($server1_data[0]->ram_mb / $server1_data[0]->usd_per_month,2)}}{{number_format($server2_data[0]->ram_mb / $server2_data[0]->usd_per_month,2)}}
GB5 single per USD{{number_format($server1_data[0]->gb5_single / $server1_data[0]->usd_per_month,2)}}{{number_format($server2_data[0]->gb5_single / $server2_data[0]->usd_per_month,2)}}
GB5 multi per USD{{number_format($server1_data[0]->gb5_multi / $server1_data[0]->usd_per_month,2)}}{{number_format($server2_data[0]->gb5_multi / $server2_data[0]->usd_per_month,2)}}
Location{{$server1_data[0]->location}}{{$server2_data[0]->location}}
Provider{{$server1_data[0]->provider_name}}{{$server2_data[0]->provider_name}}
Owned since{{ date_format(new DateTime($server1_data[0]->owned_since), 'F Y') }} + {{\Carbon\Carbon::parse($server1_data[0]->owned_since)->diffForHumans(\Carbon\Carbon::parse($server2_data[0]->owned_since))}} + {{ date_format(new DateTime($server2_data[0]->owned_since), 'F Y') }}
+
+
+
+
+
diff --git a/resources/views/servers/create.blade.php b/resources/views/servers/create.blade.php new file mode 100644 index 0000000..2da5e58 --- /dev/null +++ b/resources/views/servers/create.blade.php @@ -0,0 +1,284 @@ +@section('title') {{'Enter new server'}} @endsection +@section('scripts') + + +@endsection + + + {{ __('Insert a new server') }} + +
+ +

Server information

+ + {{ route('servers.index') }} + Go back + + +
+ @csrf +
+
+ +
+
Hostname
+ + @error('name') {{ $message }} + @enderror +
+
+
+
+
+
Type
+ +
+
+
+ + OS + os_id + {{Session::get('default_server_os')}} + +
+
+
+

If you need to add more IPs go to /IPs after creation.

+
+
+
IP
+ +
+
+
+
+
IP
+ +
+
+
+ + NS1 + ns1 + 255 + +
+
+ + NS2 + ns2 + 255 + +
+
+
+
+
+
Virt
+
+
+
+ + SSH + ssh_port + 22 + 999999 + 1 + +
+
+ + Bandwidth GB + bandwidth + 1000 + 99999 + 1 + +
+
+ + Promo price + was_promo + 1 + +
+
+
+
+ + 1 + +
+
+ + Price + price + 2.50 + 9999 + 0.01 + + +
+
+ +
+
+ + {{Session::get('default_currency')}} + +
+
+
+

Note adding a YABs output will overwrite Ram, disk and CPU values.

+
+ + Ram + ram + 2024 + 100000 + +
+
+ + Ram type + ram_type + +
+
+ + Disk + disk + 10 + 99999 + 0.1 + +
+
+ + Disk type + disk_type + +
+
+
+
+ + CPU + cpu + 2 + 64 + 1 + +
+
+ + 1 + +
+
+ + Owned since + owned_since + {{Carbon\Carbon::now()->format('Y-m-d') }} + +
+
+ + Next due date + next_due_date + {{Carbon\Carbon::now()->addDays(30)->format('Y-m-d') }} + +
+
+
+
+ + label + label1 + +
+
+ + label + label2 + +
+
+ + label + label3 + +
+
+ + label + label4 + +
+
+
+ + +
+
+
+ Insert server +
+
+
+
+
+ + +
diff --git a/resources/views/servers/edit.blade.php b/resources/views/servers/edit.blade.php new file mode 100644 index 0000000..57e1474 --- /dev/null +++ b/resources/views/servers/edit.blade.php @@ -0,0 +1,296 @@ +@section('title') {{$server[0]->hostname}} {{'edit'}} @endsection + + + Edit {{ $server[0]->hostname }} + +
+ +

Server information

+ + {{ route('servers.index') }} + Back to servers + + +
+ @csrf + @method('PUT') +
+
+ +
+
Hostname
+ + @error('name') {{ $message }} + @enderror +
+
+
+
+
Type
+ +
+
+
+
+
OS
+ +
+
+
+
+
+ + NS1 + ns1 + 255 + {{ $server[0]->ns1 }} + +
+
+ + NS2 + ns2 + 255 + {{ $server[0]->ns2 }} + +
+
+
+
+
+
Virt
+
+
+
+ + SSH + ssh_port + 22 + 999999 + 1 + {{ $server[0]->ssh }} + +
+
+ + Bandwidth GB + bandwidth + 1000 + 99999 + 1 + {{ $server[0]->bandwidth }} + +
+
+ + Promo price + was_promo + {{ $server[0]->was_promo }} + +
+
+
+
+ + {{$server[0]->provider_id}} + +
+
+ + Price + price + {{$server[0]->price}} + 9999 + 0.01 + + +
+
+ + {{$server[0]->term}} + +
+
+ + {{$server[0]->currency}} + +
+
+
+

Note adding a YABs output will overwrite Ram, disk and CPU.

+
+ + CPU + cpu + 2 + 64 + 1 + +
+
+ + Ram + ram + {{$server[0]->ram}} + 100000 + +
+
+ + Ram type + ram_type + {{$server[0]->ram_type}} + +
+
+ + Disk + disk + {{$server[0]->disk}} + 99999 + 0.1 + +
+
+ + Disk type + disk_type + {{$server[0]->disk_type}} + +
+
+
+
+
+
+ Location +
+ +
+
+
+ + Owned since + owned_since + {{$server[0]->owned_since }} + +
+
+ + Next due date + next_due_date + {{$server[0]->next_due_date }} + +
+
+
+
+ + label + label1 + @if(isset($labels[0]->id)) + {{$labels[0]->id}} + @endif + +
+
+ + label + label2 + @if(isset($labels[1]->id)) + {{$labels[1]->id}} + @endif + +
+
+ + label + label3 + @if(isset($labels[2]->id)) + {{$labels[2]->id}} + @endif + +
+
+ + label + label4 + @if(isset($labels[3]->id)) + {{$labels[3]->id}} + @endif + +
+
+
+ @foreach($ip_addresses as $ip) +
+ + IP + ip{{{$loop->iteration}}} + 255 + {{ $ip['address'] }} + +
+ @endforeach +
+
+
+
+ active === 1) ? 'checked' : '' }}> + +
+
+
+
+ show_public === 1) ? 'checked' : '' }}> + +
+
+
+
+
+ Update server +
+
+
+
+
+
diff --git a/resources/views/servers/index.blade.php b/resources/views/servers/index.blade.php new file mode 100644 index 0000000..e46a055 --- /dev/null +++ b/resources/views/servers/index.blade.php @@ -0,0 +1,248 @@ +@section('title') {{'Servers'}} @endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Servers') }} + +
+ + +
+
+ + Add server + Compare + servers + Add a YABs + +
+ + + + + + + + + + + + + + + + + + + @if(!empty($servers)) + @foreach($servers as $server) + + + + + + + + + + + + + + + @endforeach + @else + + + + @endif + +
NameOSLocationProviderPriceDue inHad sinceActions
{{ $server->hostname }} + {{ App\Models\Server::serviceServerType($server->server_type) }} + {!!App\Models\Server::osIntToIcon($server->os_id, $server->os_name)!!}{{$server->cpu}} + @if(isset($server->ram)) + {{ $server->ram }}{{$server->ram_type}} + @else + {{$server->ram_as_mb}}MB + @endif + + @if(isset($server->disk)) + {{ $server->disk }}{{$server->disk_type}} + @else + {{$server->disk}}GB + @endif + {{ $server->location }}{{ $server->provider_name }}{{ $server->price }} {{$server->currency}} {{\App\Process::paymentTermIntToString($server->term)}} + {{now()->diffInDays(Carbon\Carbon::parse($server->next_due_date))}} + days {{ $server->owned_since }} +
+ + + + + + + + + + +
+
No servers found.
+
+
+
+
+ + Add server + Compare + servers + +
+ + + + + + + + + + + + + + + + + + @if(!empty($non_active_servers)) + @foreach($non_active_servers as $server) + + + + + + + + + + + + + + @endforeach + @else + + + + @endif + +
NameOSLocationProviderPriceHad sinceActions
{{ $server->hostname }} + {{ App\Models\Server::serviceServerType($server->server_type) }} + {!!App\Models\Server::osIntToIcon($server->os_id, $server->os_name)!!}{{$server->cpu}} + @if($server->ram_as_mb > 1024) + {{ number_format(($server->ram_as_mb / 1000),0) }}GB + @else + {{$server->ram_as_mb}}MB + @endif + + @if($server->disk > 1000) + {{ number_format(($server->disk / 1000),1) }}TB + @else + {{$server->disk}}GB + @endif + {{ $server->location }}{{ $server->provider_name }}{{ $server->price }} {{$server->currency}} {{\App\Process::paymentTermIntToString($server->term)}} {{ $server->owned_since }} +
+ + + + + + + + + + +
+
No non-active servers found.
+
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Built on Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+ + + diff --git a/resources/views/servers/public-index.blade.php b/resources/views/servers/public-index.blade.php new file mode 100644 index 0000000..2c3e6d4 --- /dev/null +++ b/resources/views/servers/public-index.blade.php @@ -0,0 +1,133 @@ +@section('title') {{'Public viewable servers'}} @endsection + + + {{ __('Servers') }} + +
+ +
+ + + + @if(Session::get('show_server_value_hostname') === 1) + + @endif + + + + + + + + + + + + + + + + + @if(Session::get('show_server_value_ip') === 1) + + + @endif + + + + @if(!empty($servers[0])) + @foreach($servers as $s) + + @if(Session::get('show_server_value_hostname') === 1) + + @endif + + + + + + + + + + + + + + + + + @if(Session::get('show_server_value_ip') === 1) + + + @endif + + @endforeach + @else + + + + @endif + +
NameOSGhzLocationProviderPriceHad sinceGB5 SGB5 M4k64k512k1mIPv4IPv6
+ {{ $s->hostname }} + + {{ App\Models\Server::serviceServerType($s->server_type) }} + {!!App\Models\Server::osIntToIcon($s->os_id, $s->os_name)!!}{{$s->cpu}}{{$s->cpu_freq}} + @if($s->ram_as_mb > 1024) + {{ number_format(($s->ram_as_mb / 1000),0) }}GB + @else + {{$s->ram_as_mb}}MB + @endif + + @if($s->disk > 1000) + {{ number_format(($s->disk / 1000),1) }}TB + @else + {{$s->disk}}GB + @endif + + @if(Session::get('show_server_value_location') === 1) + {{ $s->location }} + @endif + @if(Session::get('show_server_value_provider') === 1) + {{ $s->provider_name }} + @endif + {{ $s->price }} {{$s->currency}} {{\App\Process::paymentTermIntToString($s->term)}} {{ $s->owned_since }} + @if(Session::get('show_server_value_yabs') === 1) + {{$s->gb5_single}} + @endif + + @if(Session::get('show_server_value_yabs') === 1) + {{$s->gb5_multi}} + @endif + + @if(Session::get('show_server_value_yabs') === 1) + {{$s->d_4k}}{{$s->d_4k_type}} + @endif + + @if(Session::get('show_server_value_yabs') === 1) + {{$s->d_64k}}{{$s->d_64k_type}} + @endif + + @if(Session::get('show_server_value_yabs') === 1) + {{$s->d_512k}}{{$s->d_512k_type}} + @endif + @if(Session::get('show_server_value_yabs') === 1) + {{$s->d_1m}}{{$s->d_1m_type}} + @endif + @if($s->is_ipv4 === 1) + {{ $s->ip }} + @endif + + @if($s->is_ipv4 === 0) + {{ $s->ip }} + @endif +
No servers found.
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Built on Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+
diff --git a/resources/views/servers/show.blade.php b/resources/views/servers/show.blade.php new file mode 100644 index 0000000..38e555f --- /dev/null +++ b/resources/views/servers/show.blade.php @@ -0,0 +1,211 @@ +@section('title') {{$server->hostname}} {{'server'}} @endsection + + + {{ __('Server details') }} + +
+ +
+
+

{{ $server->hostname }}

+ @foreach($labels as $label) + @if($loop->last) + {{$label->label}} + @else + {{$label->label}}, + @endif + @endforeach +
+
+
{{ $server->id }}
+ @if($server->active !== 1) +
not active
+ @endif +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($ip_addresses as $ip) + + + + + @endforeach + + + + + + + + + + + + + + + + + +
Type + {{ $server->serviceServerType($server->server_type) }} +
OS{{ $server_extras[0]->os_name }}
Location{{$server_extras[0]->location}}
Provider{{$server_extras[0]->provider}}
Price{{ $server_extras[0]->price }} {{ $server_extras[0]->currency }} + {{\App\Process::paymentTermIntToString($server_extras[0]->term)}} +
Next due date{{Carbon\Carbon::parse($server_extras[0]->next_due_date)->diffForHumans()}} + ({{Carbon\Carbon::parse($server_extras[0]->next_due_date)->format('d/m/Y')}}) +
CPU + {{ $server_extras[0]->cpu }} @if($server_extras[0]->has_yabs) + @ {{ $server_extras[0]->cpu_freq }} Ghz + @endif
RAM + @if(isset($server_extras[0]->ram)) + {{ $server_extras[0]->ram }} {{ $server_extras[0]->ram_type }} + @else + {{ $server->ram }} {{ $server->ram_type }} + @endif +
Disk + @if(isset($server_extras[0]->disk)) + {{ $server_extras[0]->disk }} {{ $server_extras[0]->disk_type }} + @else + {{ $server->disk }} {{ $server->disk_type }} + @endif +
Bandwidth{{ $server_extras[0]->bandwidth }} GB
@if($ip['is_ipv4']) + IPv4 + @else + IPv6 + @endif + {{ $ip['address'] }}
Was promo{{ ($server_extras[0]->was_promo === 1) ? 'Yes' : 'No' }}
Owned since + @if(!is_null($server->owned_since)) + {{ date_format(new DateTime($server->owned_since), 'jS F Y') }} + @endif +
Inserted + @if(!is_null($server->created_at)) + {{ date_format(new DateTime($server->created_at), 'jS M y g:i a') }} + @endif +
Updated + @if(!is_null($server->updated_at)) + {{ date_format(new DateTime($server->updated_at), 'jS M y g:i a') }} + @endif +
+
+ + Go back + + + Edit + +
+
+ @if($server_extras[0]->has_yabs) +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($network_speeds as $ns) + + + + + @endforeach + +
GB5 Single/Multi + {{$server_extras[0]->gb5_single}} / {{$server_extras[0]->gb5_multi}} +
CPU{{$server_extras[0]->cpu_model}}
AES{{ ($server_extras[0]->aes === 1) ? 'Yes' : 'No' }}
VM{{ ($server_extras[0]->vm === 1) ? 'Yes' : 'No' }}
Disk 4k{{$server_extras[0]->d_4k}} {{$server_extras[0]->d_4k_type}}
Disk 64k{{$server_extras[0]->d_64k}} {{$server_extras[0]->d_64k_type}} +
Disk 512k{{$server_extras[0]->d_512k}} {{$server_extras[0]->d_512k_type}} +
Disk 1m{{$server_extras[0]->d_1m}} {{$server_extras[0]->d_1m_type}}
Network speed (s/r)
{{$ns['location']}}{{$ns['send']}} {{$ns['send_type']}} {{$ns['receive']}} + {{$ns['receive_type']}}
+
+ @else +

Please add a YABs to + see Geekbench, disk and network speeds

+ @endif +
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+
diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php new file mode 100644 index 0000000..99ce061 --- /dev/null +++ b/resources/views/settings/index.blade.php @@ -0,0 +1,189 @@ +@section('title') {{'Edit settings'}} @endsection + + + Edit Settings + +
+ + @if ($message = Session::get('success')) + + @endif + + {{ route('/') }} + Back to home + +
+ @csrf + @method('PUT') +
+
+
+
Show versions footer
+ +
+
+
+
+
+
+
Show servers to public
+ +
+
+
+

Only if show_servers_public is YES do these apply:

+
+
+
+
Show servers IP's
+ +
+
+
+
+
+
+
Show servers hostname
+ +
+
+
+
+
+
+
Show servers provider
+ +
+
+
+
+
+
+
Show servers location
+ +
+
+
+
+
+
+
Show servers price
+ +
+
+
+
+
+
+
Show servers YABs
+ +
+
+
+
+
+ + Default server OS + default_server_os + {{$setting[0]->default_server_os}} + +
+
+
+
+ + Default currency + default_currency + {{$setting[0]->default_currency}} + +
+
+
+
+ Update settings +
+
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Built on Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+
diff --git a/resources/views/shared/create.blade.php b/resources/views/shared/create.blade.php new file mode 100644 index 0000000..0db3df4 --- /dev/null +++ b/resources/views/shared/create.blade.php @@ -0,0 +1,218 @@ +@section('title') {{'Enter new shared hosting'}} @endsection + + + {{ __('Insert a new shared hosting') }} + +
+
+
+

Shared hosting information

+ + + Go back + +
+ @csrf +
+
+
+
Domain
+ + @error('name') {{ $message }} + @enderror +
+
+
+
+
Type
+ +
+
+
+ + Dedicated IP + dedicated_ip + 255 + +
+
+
+
+ + 1 + +
+
+ + Price + price + 2.50 + 9999 + 0.01 + + +
+
+ +
+
+ + {{Session::get('default_currency')}} + +
+
+
+
+ + 1 + +
+
+ + Was promo + was_promo + 1 + +
+
+ + Owned since + owned_since + {{Carbon\Carbon::now()->format('Y-m-d') }} + +
+
+ + Next due date + next_due_date + {{Carbon\Carbon::now()->addDays(30)->format('Y-m-d') }} + +
+
+
+

Limits

+
+ + Domains + domains + 1 + 999999 + 1 + 10 + +
+
+ + Sub domains + sub_domains + 1 + 999999 + 1 + 20 + +
+
+ + Disk GB + disk + 1 + 999999 + 1 + 50 + +
+
+ + Email + Email + 1 + 999999 + 1 + 100 + +
+
+
+
+ + Bandwidth GB + bandwidth + 1 + 999999 + 1 + 500 + +
+
+ + FTP + ftp + 1 + 999999 + 1 + 100 + +
+
+ + DB + db + 1 + 999999 + 1 + 100 + +
+
+
+
+ + label + label1 + +
+
+ + label + label2 + +
+
+ + label + label3 + +
+
+ + label + label4 + +
+
+
+ +
+
+
+
+
+
diff --git a/resources/views/shared/edit.blade.php b/resources/views/shared/edit.blade.php new file mode 100644 index 0000000..52b9549 --- /dev/null +++ b/resources/views/shared/edit.blade.php @@ -0,0 +1,272 @@ +@section('title') {{$shared[0]->main_domain}} {{'edit'}} @endsection + + + Edit {{ $shared[0]->main_domain }} + + +
+
+
+ + Back to shared hosting + + +
+ @csrf + @method('PUT') +
+
+
+
Domain
+ + @error('name') {{ $message }} + @enderror +
+
+
+ +
+
Type
+ +
+
+
+ + Dedicated IP + dedicated_ip + 255 + @if(isset($ip_address[0]['address'])) {{$ip_address[0]['address']}}@endif + +
+
+
+
+ + {{$shared[0]->provider_id}} + +
+
+ + Price + price + {{$shared[0]->price}} + 9999 + 0.01 + + +
+
+ + {{$shared[0]->term}} + +
+
+ + {{$shared[0]->currency}} + +
+
+
+
+ + {{$shared[0]->location_id}} + +
+
+ + Promo price + was_promo + {{ $shared[0]->was_promo }} + +
+
+ + Owned since + owned_since + {{$shared[0]->owned_since }} + +
+
+ + Next due date + next_due_date + {{$shared[0]->next_due_date }} + +
+
+
+

Limits

+
+ + Domains + domains + 1 + 999999 + 1 + {{$shared[0]->domains_limit}} + +
+
+ + Sub domains + sub_domains + 1 + 999999 + 1 + {{$shared[0]->subdomains_limit}} + +
+
+ + Disk GB + disk + 1 + 999999 + 1 + {{$shared[0]->disk_as_gb}} + +
+
+ + Email + Email + 1 + 999999 + 1 + {{$shared[0]->email_limit}} + +
+
+
+
+ + Bandwidth GB + bandwidth + 1 + 999999 + 1 + {{$shared[0]->bandwidth}} + +
+
+ + FTP + ftp + 1 + 999999 + 1 + {{$shared[0]->ftp_limit}} + +
+
+ + DB + db + 1 + 999999 + 1 + {{$shared[0]->db_limit}} + +
+
+
+
+ + label + label1 + @if(isset($labels[0]->id)) + {{$labels[0]->id}} + @endif + +
+
+ + label + label2 + @if(isset($labels[1]->id)) + {{$labels[1]->id}} + @endif + +
+
+ + label + label3 + @if(isset($labels[2]->id)) + {{$labels[2]->id}} + @endif + +
+
+ + label + label4 + @if(isset($labels[3]->id)) + {{$labels[3]->id}} + @endif + +
+
+
+ active === 1) ? 'checked' : '' }}> + +
+
+ +
+
+
+
+
+
diff --git a/resources/views/shared/index.blade.php b/resources/views/shared/index.blade.php new file mode 100644 index 0000000..80ebb6a --- /dev/null +++ b/resources/views/shared/index.blade.php @@ -0,0 +1,102 @@ +@section('title') {{'Shared hosting'}} @endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('Shared hosting') }} + +
+ +
+
+ Add shared hosting + @if ($message = Session::get('success')) + + @endif +
+ + + + + + + + + + + + + + + + @if(!empty($shared)) + @foreach($shared as $row) + + + + + + + + + + + + @endforeach + @else + + + + @endif + +
NameTypeLocationProviderDiskPriceDueHad sinceActions
{{ $row->main_domain }}{{ $row->shared_type }}{{ $row->location }}{{ $row->provider_name }}{{ $row->disk_as_gb }} GB{{ $row->price }} {{$row->currency}} {{\App\Process::paymentTermIntToString($row->term)}}{{Carbon\Carbon::parse($row->next_due_date)->diffForHumans()}}{{ $row->owned_since }} +
+ + + + + + + + +
+
No shared hosting found.
+
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Built on Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+ + +
diff --git a/resources/views/shared/show.blade.php b/resources/views/shared/show.blade.php new file mode 100644 index 0000000..34143c6 --- /dev/null +++ b/resources/views/shared/show.blade.php @@ -0,0 +1,156 @@ +@section('title') {{$shared->main_domain}} {{'shared'}} @endsection + + + {{ __('Share hosting details') }} + +
+ +
+
+

{{ $shared->main_domain }}

+ @foreach($labels as $label) + @if($loop->last) + {{$label->label}} + @else + {{$label->label}}, + @endif + @endforeach +
+
+
{{ $shared->id }}
+ @if($shared->active !== 1) +
not active
+ @endif +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Type{{ $shared->shared_type }}
Location{{ $shared_extras[0]->location }}
Provider{{ $shared_extras[0]->provider_name }}
Price{{ $shared_extras[0]->price }} {{ $shared_extras[0]->currency }} + {{\App\Process::paymentTermIntToString($shared_extras[0]->term)}} +
Was promo{{ ($shared_extras[0]->was_promo === 1) ? 'Yes' : 'No' }}
Has dedicated IP? + @if(isset($ip_address[0]->address)) + Yes + @else + No + @endif +
IP@if(isset($ip_address[0]->address)) + {{$ip_address[0]->address}} + @endif +
Owned since + @if(!is_null($shared->owned_since)) + {{ date_format(new DateTime($shared->owned_since), 'jS F Y') }} + @endif +
Next due date{{Carbon\Carbon::parse($shared_extras[0]->next_due_date)->diffForHumans()}} + ({{Carbon\Carbon::parse($shared_extras[0]->next_due_date)->format('d/m/Y')}}) +
Inserted + @if(!is_null($shared->created_at)) + {{ date_format(new DateTime($shared->created_at), 'jS M y g:i a') }} + @endif +
Updated + @if(!is_null($shared->updated_at)) + {{ date_format(new DateTime($shared->updated_at), 'jS M y g:i a') }} + @endif +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Disk GB{{$shared->disk_as_gb}}
Bandwidth GB{{$shared->bandwidth}}
Domains Limit{{$shared->domains_limit}}
Subdomains Limit{{$shared->subdomains_limit}}
Email Limit{{$shared->email_limit}}
DB Limit{{$shared->db_limit}}
FTP Limit{{$shared->ftp_limit}}
+ +
+
+ + Go back + + + Edit + +
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php new file mode 100644 index 0000000..c450472 --- /dev/null +++ b/resources/views/welcome.blade.php @@ -0,0 +1,132 @@ + + + + + + + Laravel + + + + + + + + + + +
+ @if (Route::has('login')) + + @endif + +
+
+ + + + + +
+ +
+
+
+ + +
+
+ Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end. +
+
+
+ +
+
+ + +
+ +
+
+ Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process. +
+
+
+ +
+
+ + +
+ +
+
+ Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials. +
+
+
+ +
+
+ +
Vibrant Ecosystem
+
+ +
+
+ Laravel's robust library of first-party tools and libraries, such as Forge, Vapor, Nova, and Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like Cashier, Dusk, Echo, Horizon, Sanctum, Telescope, and more. +
+
+
+
+
+ +
+
+
+ + + + + + Shop + + + + + + + + Sponsor + +
+
+ +
+ Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}) +
+
+
+
+ + diff --git a/resources/views/yabs/create.blade.php b/resources/views/yabs/create.blade.php new file mode 100644 index 0000000..a34b94b --- /dev/null +++ b/resources/views/yabs/create.blade.php @@ -0,0 +1,46 @@ +@section('title') {{'Insert YABs'}} @endsection + + + {{ __('Insert a YABs') }} + +
+ +

YABs

+ + {{ route('yabs.index') }} + Go back + + +
+ @csrf +
+
+
+
Server
+
+
+
+
+

YABs output: curl -sL yabs.sh | bash or curl -sL yabs.sh | bash -s -- + -r only

+
+ +
+
+
+
+ Insert YABs +
+
+
+
+
+
diff --git a/resources/views/yabs/index.blade.php b/resources/views/yabs/index.blade.php new file mode 100644 index 0000000..f010de3 --- /dev/null +++ b/resources/views/yabs/index.blade.php @@ -0,0 +1,92 @@ +@section('title') {{'YABs'}} @endsection +@section('style') + +@endsection +@section('scripts') + + +@endsection + + + {{ __('YABs') }} + +
+ + + Add YABs + + +
+ + + + + + + + + + + + + + + + + + + + + @if(!empty($yabs)) + @foreach($yabs as $yab) + + + + + + + + + + + + + + + + + @endforeach + @else + + + + @endif + +
ServerCPUCPU FREQRAMDISKGB5 SGB5 MIpv64k64k512k1mDateActions
{{ $yab->hostname }}{{ $yab->cpu_cores }}{{ $yab->cpu_freq }}Ghz{{ $yab->ram }}{{ $yab->ram_type }}{{ $yab->disk }}{{ $yab->disk_type }}{{ $yab->gb5_single }}{{ $yab->gb5_multi }}@if($yab->has_ipv6 === 1) + Yes + @else + No + @endif + {{ $yab->d_4k }}{{ $yab->d_4k_type }}{{ $yab->d_64k }}{{ $yab->d_64k_type }}{{ $yab->d_512k }}{{ $yab->d_512k_type }}{{ $yab->d_1m }}{{ $yab->d_1m_type }}{{ date_format(new DateTime($yab->output_date), 'Y-m-d g:i a') }} +
+ + + + + +
+
No YABs found.
+ +
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

Built on Laravel + v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})

+ @endif +
+ + yabs + +
diff --git a/resources/views/yabs/show.blade.php b/resources/views/yabs/show.blade.php new file mode 100644 index 0000000..4e37b2b --- /dev/null +++ b/resources/views/yabs/show.blade.php @@ -0,0 +1,134 @@ +@section('title') {{$yab[0]->hostname}} {{$yab[0]->id}} {{'YABs'}} @endsection + + + {{ __('YABs details') }} + +
+ + + {{ route('yabs.index') }} + Go back + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Server{{ $yab[0]->hostname }}
CPU{{ $yab[0]->cpu_cores }} @ {{$yab[0]->cpu_freq}} Ghz
CPU type{{ $yab[0]->cpu_model }}
Ram{{ $yab[0]->ram }} {{$yab[0]->ram_type}}
Disk{{ $yab[0]->disk }} {{$yab[0]->disk_type}}
Has IPv6 + @if($yab[0]->has_ipv6 === 1) + Yes + @else + No + @endif +
AES + @if($yab[0]->aes === 1) + Yes + @else + No + @endif +
VM + @if($yab[0]->vm === 1) + Yes + @else + No + @endif +
GB5 Single{{ $yab[0]->gb5_single }}
GB5 Multi{{ $yab[0]->gb5_multi }}
Tested + @if(!is_null($yab[0]->output_date)) + {{date_format(new DateTime($yab[0]->output_date), 'jS F Y')}} + @endif +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + @foreach($network as $speed_test) + + + + @endforeach + +
Disk speeds:
4k {{$yab[0]->d_4k}} + {{$yab[0]->d_4k_type}}
64k {{$yab[0]->d_64k}} + {{$yab[0]->d_64k_type}}
512k {{$yab[0]->d_512k}} + {{$yab[0]->d_512k_type}}
1m {{$yab[0]->d_1m}} {{$yab[0]->d_1m_type}} +
Network speed (location|send|receive):
+ {{$speed_test->location}} {{$speed_test->send}} + {{$speed_test->send_type}}, {{$speed_test->receive}} + {{$speed_test->receive_type}}
+
+
+
+ @if(Session::has('timer_version_footer') && Session::get('timer_version_footer') === 1) +

+ Built on Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }} + ) +

+ @endif +
+
diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..cfbad94 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,67 @@ +get('/user', function (Request $request) { + return $request->user(); +}); + +Route::middleware('auth:api')->get('dns/', 'App\Http\Controllers\ApiController@getAllDns'); +Route::middleware('auth:api')->get('dns/{id}', 'App\Http\Controllers\ApiController@getDns'); + +Route::middleware('auth:api')->get('domains/', 'App\Http\Controllers\ApiController@getAllDomains'); +Route::middleware('auth:api')->get('domains/{id}', 'App\Http\Controllers\ApiController@getDomains'); + +Route::middleware('auth:api')->get('servers', 'App\Http\Controllers\ApiController@getAllServers'); +Route::middleware('auth:api')->get('servers/{id}', 'App\Http\Controllers\ApiController@getServer'); + +Route::middleware('auth:api')->get('IPs/', 'App\Http\Controllers\ApiController@getAllIPs'); +Route::middleware('auth:api')->get('IPs/{id}', 'App\Http\Controllers\ApiController@getIP'); + +Route::middleware('auth:api')->get('labels/', 'App\Http\Controllers\ApiController@getAllLabels'); +Route::middleware('auth:api')->get('labels/{id}', 'App\Http\Controllers\ApiController@getLabel'); + +Route::middleware('auth:api')->get('locations/', 'App\Http\Controllers\ApiController@getAllLocations'); +Route::middleware('auth:api')->get('locations/{id}', 'App\Http\Controllers\ApiController@getLocation'); + +Route::middleware('auth:api')->get('misc/', 'App\Http\Controllers\ApiController@getAllMisc'); +Route::middleware('auth:api')->get('misc/{id}', 'App\Http\Controllers\ApiController@getMisc'); + +Route::middleware('auth:api')->get('networkSpeeds/', 'App\Http\Controllers\ApiController@getAllNetworkSpeeds'); +Route::middleware('auth:api')->get('networkSpeeds/{id}', 'App\Http\Controllers\ApiController@getNetworkSpeeds'); + +Route::middleware('auth:api')->get('os/', 'App\Http\Controllers\ApiController@getAllOs'); +Route::middleware('auth:api')->get('os/{id}', 'App\Http\Controllers\ApiController@getOs'); + +Route::middleware('auth:api')->get('pricing/', 'App\Http\Controllers\ApiController@getAllPricing'); +Route::middleware('auth:api')->get('pricing/{id}', 'App\Http\Controllers\ApiController@getPricing'); + +Route::middleware('auth:api')->get('providers/', 'App\Http\Controllers\ApiController@getAllProviders'); +Route::middleware('auth:api')->get('providers/{id}', 'App\Http\Controllers\ApiController@getProvider'); + +Route::middleware('auth:api')->get('reseller/', 'App\Http\Controllers\ApiController@getAllReseller'); +Route::middleware('auth:api')->get('reseller/{id}', 'App\Http\Controllers\ApiController@getReseller'); + +Route::middleware('auth:api')->get('settings/', 'App\Http\Controllers\ApiController@getAllSettings'); + +Route::middleware('auth:api')->get('shared/', 'App\Http\Controllers\ApiController@getAllShared'); +Route::middleware('auth:api')->get('shared/{id}', 'App\Http\Controllers\ApiController@getShared'); + +//Route::get('providers', 'App\Http\Controllers\ApiController@getAllProvidersTable')->name('get-all-providers'); + +Route::middleware('auth:api')->get('online/{hostname}', 'App\Http\Controllers\ApiController@checkHostIsUp'); + +Route::middleware('auth:api')->get('dns/{domainName}/{type}', 'App\Http\Controllers\ApiController@getIpForDomain'); diff --git a/routes/auth.php b/routes/auth.php new file mode 100644 index 0000000..0fb1129 --- /dev/null +++ b/routes/auth.php @@ -0,0 +1,64 @@ +middleware('guest') + ->name('register'); + +Route::post('/register', [RegisteredUserController::class, 'store']) + ->middleware('guest'); + +Route::get('/login', [AuthenticatedSessionController::class, 'create']) + ->middleware('guest') + ->name('login'); + +Route::post('/login', [AuthenticatedSessionController::class, 'store']) + ->middleware('guest'); + +Route::get('/forgot-password', [PasswordResetLinkController::class, 'create']) + ->middleware('guest') + ->name('password.request'); + +Route::post('/forgot-password', [PasswordResetLinkController::class, 'store']) + ->middleware('guest') + ->name('password.email'); + +Route::get('/reset-password/{token}', [NewPasswordController::class, 'create']) + ->middleware('guest') + ->name('password.reset'); + +Route::post('/reset-password', [NewPasswordController::class, 'store']) + ->middleware('guest') + ->name('password.update'); + +Route::get('/verify-email', [EmailVerificationPromptController::class, '__invoke']) + ->middleware('auth') + ->name('verification.notice'); + +Route::get('/verify-email/{id}/{hash}', [VerifyEmailController::class, '__invoke']) + ->middleware(['auth', 'signed', 'throttle:6,1']) + ->name('verification.verify'); + +Route::post('/email/verification-notification', [EmailVerificationNotificationController::class, 'store']) + ->middleware(['auth', 'throttle:6,1']) + ->name('verification.send'); + +Route::get('/confirm-password', [ConfirmablePasswordController::class, 'show']) + ->middleware('auth') + ->name('password.confirm'); + +Route::post('/confirm-password', [ConfirmablePasswordController::class, 'store']) + ->middleware('auth'); + +Route::post('/logout', [AuthenticatedSessionController::class, 'destroy']) + ->middleware('auth') + ->name('logout'); diff --git a/routes/channels.php b/routes/channels.php new file mode 100644 index 0000000..5d451e1 --- /dev/null +++ b/routes/channels.php @@ -0,0 +1,18 @@ +id === (int) $id; +}); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..e05f4c9 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,19 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..1e0522d --- /dev/null +++ b/routes/web.php @@ -0,0 +1,72 @@ +name('/'); + + +Route::get('dashboard', function () { + return redirect('/'); +}); + +require __DIR__ . '/auth.php'; + +Route::resource('account', AccountController::class)->middleware(['auth']); + +Route::resource('dns', DNSController::class)->middleware(['auth']); + +Route::resource('domains', DomainsController::class)->middleware(['auth']); + +Route::resource('IPs', IPsController::class)->middleware(['auth']); + +Route::resource('labels', LabelsController::class)->middleware(['auth']); + +Route::resource('locations', LocationsController::class)->middleware(['auth']); + +Route::resource('misc', MiscController::class)->middleware(['auth']); + +Route::resource('os', OsController::class)->middleware(['auth']); + +Route::resource('providers', ProvidersController::class)->middleware(['auth']); + +Route::resource('reseller', ResellerController::class)->middleware(['auth']); + +Route::get('servers/public', 'App\Http\Controllers\ServerController@showServersPublic')->name('servers/public'); + +Route::resource('servers', ServerController::class)->middleware(['auth']); + + +Route::resource('settings', SettingsController::class)->middleware(['auth']); + +Route::resource('shared', SharedController::class)->middleware(['auth']); + +Route::resource('yabs', YabsController::class)->middleware(['auth']); + +Route::get('servers-compare-choose', 'App\Http\Controllers\ServerController@chooseCompare')->middleware(['auth'])->name('servers-compare-choose'); + +Route::get('servers-compare/{server1}/{server2}', 'App\Http\Controllers\ServerController@compareServers')->middleware(['auth']); diff --git a/storage/app/.gitignore b/storage/app/.gitignore new file mode 100644 index 0000000..8f4803c --- /dev/null +++ b/storage/app/.gitignore @@ -0,0 +1,3 @@ +* +!public/ +!.gitignore diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore new file mode 100644 index 0000000..05c4471 --- /dev/null +++ b/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore new file mode 100644 index 0000000..01e4a6c --- /dev/null +++ b/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/storage/framework/cache/data/.gitignore b/storage/framework/cache/data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/views/.gitignore b/storage/framework/views/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/logs/.gitignore b/storage/logs/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/tests/CreatesApplication.php b/tests/CreatesApplication.php new file mode 100644 index 0000000..547152f --- /dev/null +++ b/tests/CreatesApplication.php @@ -0,0 +1,22 @@ +make(Kernel::class)->bootstrap(); + + return $app; + } +} diff --git a/tests/Feature/Auth/AuthenticationTest.php b/tests/Feature/Auth/AuthenticationTest.php new file mode 100644 index 0000000..075a4c2 --- /dev/null +++ b/tests/Feature/Auth/AuthenticationTest.php @@ -0,0 +1,45 @@ +get('/login'); + + $response->assertStatus(200); + } + + public function test_users_can_authenticate_using_the_login_screen() + { + $user = User::factory()->create(); + + $response = $this->post('/login', [ + 'email' => $user->email, + 'password' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(RouteServiceProvider::HOME); + } + + public function test_users_can_not_authenticate_with_invalid_password() + { + $user = User::factory()->create(); + + $this->post('/login', [ + 'email' => $user->email, + 'password' => 'wrong-password', + ]); + + $this->assertGuest(); + } +} diff --git a/tests/Feature/Auth/EmailVerificationTest.php b/tests/Feature/Auth/EmailVerificationTest.php new file mode 100644 index 0000000..e61810e --- /dev/null +++ b/tests/Feature/Auth/EmailVerificationTest.php @@ -0,0 +1,65 @@ +create([ + 'email_verified_at' => null, + ]); + + $response = $this->actingAs($user)->get('/verify-email'); + + $response->assertStatus(200); + } + + public function test_email_can_be_verified() + { + $user = User::factory()->create([ + 'email_verified_at' => null, + ]); + + Event::fake(); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1($user->email)] + ); + + $response = $this->actingAs($user)->get($verificationUrl); + + Event::assertDispatched(Verified::class); + $this->assertTrue($user->fresh()->hasVerifiedEmail()); + $response->assertRedirect(RouteServiceProvider::HOME.'?verified=1'); + } + + public function test_email_is_not_verified_with_invalid_hash() + { + $user = User::factory()->create([ + 'email_verified_at' => null, + ]); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1('wrong-email')] + ); + + $this->actingAs($user)->get($verificationUrl); + + $this->assertFalse($user->fresh()->hasVerifiedEmail()); + } +} diff --git a/tests/Feature/Auth/PasswordConfirmationTest.php b/tests/Feature/Auth/PasswordConfirmationTest.php new file mode 100644 index 0000000..d2072ff --- /dev/null +++ b/tests/Feature/Auth/PasswordConfirmationTest.php @@ -0,0 +1,44 @@ +create(); + + $response = $this->actingAs($user)->get('/confirm-password'); + + $response->assertStatus(200); + } + + public function test_password_can_be_confirmed() + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'password', + ]); + + $response->assertRedirect(); + $response->assertSessionHasNoErrors(); + } + + public function test_password_is_not_confirmed_with_invalid_password() + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'wrong-password', + ]); + + $response->assertSessionHasErrors(); + } +} diff --git a/tests/Feature/Auth/PasswordResetTest.php b/tests/Feature/Auth/PasswordResetTest.php new file mode 100644 index 0000000..b2cd77a --- /dev/null +++ b/tests/Feature/Auth/PasswordResetTest.php @@ -0,0 +1,71 @@ +get('/forgot-password'); + + $response->assertStatus(200); + } + + public function test_reset_password_link_can_be_requested() + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class); + } + + public function test_reset_password_screen_can_be_rendered() + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) { + $response = $this->get('/reset-password/'.$notification->token); + + $response->assertStatus(200); + + return true; + }); + } + + public function test_password_can_be_reset_with_valid_token() + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) { + $response = $this->post('/reset-password', [ + 'token' => $notification->token, + 'email' => $user->email, + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $response->assertSessionHasNoErrors(); + + return true; + }); + } +} diff --git a/tests/Feature/Auth/RegistrationTest.php b/tests/Feature/Auth/RegistrationTest.php new file mode 100644 index 0000000..317a827 --- /dev/null +++ b/tests/Feature/Auth/RegistrationTest.php @@ -0,0 +1,32 @@ +get('/register'); + + $response->assertStatus(200); + } + + public function test_new_users_can_register() + { + $response = $this->post('/register', [ + 'name' => 'Test User', + 'email' => 'test@example.com', + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(RouteServiceProvider::HOME); + } +} diff --git a/tests/Feature/AuthenticationTest.php b/tests/Feature/AuthenticationTest.php new file mode 100644 index 0000000..2dbceac --- /dev/null +++ b/tests/Feature/AuthenticationTest.php @@ -0,0 +1,45 @@ +get('/login'); + + $response->assertStatus(200); + } + + public function test_users_can_authenticate_using_the_login_screen() + { + $user = User::factory()->create(); + + $response = $this->post('/login', [ + 'email' => $user->email, + 'password' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(RouteServiceProvider::HOME); + } + + public function test_users_can_not_authenticate_with_invalid_password() + { + $user = User::factory()->create(); + + $this->post('/login', [ + 'email' => $user->email, + 'password' => 'wrong-password', + ]); + + $this->assertGuest(); + } +} diff --git a/tests/Feature/EmailVerificationTest.php b/tests/Feature/EmailVerificationTest.php new file mode 100644 index 0000000..61b5775 --- /dev/null +++ b/tests/Feature/EmailVerificationTest.php @@ -0,0 +1,65 @@ +create([ + 'email_verified_at' => null, + ]); + + $response = $this->actingAs($user)->get('/verify-email'); + + $response->assertStatus(200); + } + + public function test_email_can_be_verified() + { + Event::fake(); + + $user = User::factory()->create([ + 'email_verified_at' => null, + ]); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1($user->email)] + ); + + $response = $this->actingAs($user)->get($verificationUrl); + + Event::assertDispatched(Verified::class); + $this->assertTrue($user->fresh()->hasVerifiedEmail()); + $response->assertRedirect(RouteServiceProvider::HOME.'?verified=1'); + } + + public function test_email_is_not_verified_with_invalid_hash() + { + $user = User::factory()->create([ + 'email_verified_at' => null, + ]); + + $verificationUrl = URL::temporarySignedRoute( + 'verification.verify', + now()->addMinutes(60), + ['id' => $user->id, 'hash' => sha1('wrong-email')] + ); + + $this->actingAs($user)->get($verificationUrl); + + $this->assertFalse($user->fresh()->hasVerifiedEmail()); + } +} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..cdb5111 --- /dev/null +++ b/tests/Feature/ExampleTest.php @@ -0,0 +1,21 @@ +get('/'); + + $response->assertStatus(200); + } +} diff --git a/tests/Feature/PasswordConfirmationTest.php b/tests/Feature/PasswordConfirmationTest.php new file mode 100644 index 0000000..fdfe630 --- /dev/null +++ b/tests/Feature/PasswordConfirmationTest.php @@ -0,0 +1,44 @@ +create(); + + $response = $this->actingAs($user)->get('/confirm-password'); + + $response->assertStatus(200); + } + + public function test_password_can_be_confirmed() + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'password', + ]); + + $response->assertRedirect(); + $response->assertSessionHasNoErrors(); + } + + public function test_password_is_not_confirmed_with_invalid_password() + { + $user = User::factory()->create(); + + $response = $this->actingAs($user)->post('/confirm-password', [ + 'password' => 'wrong-password', + ]); + + $response->assertSessionHasErrors(); + } +} diff --git a/tests/Feature/PasswordResetTest.php b/tests/Feature/PasswordResetTest.php new file mode 100644 index 0000000..8d98149 --- /dev/null +++ b/tests/Feature/PasswordResetTest.php @@ -0,0 +1,71 @@ +get('/forgot-password'); + + $response->assertStatus(200); + } + + public function test_reset_password_link_can_be_requested() + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class); + } + + public function test_reset_password_screen_can_be_rendered() + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) { + $response = $this->get('/reset-password/'.$notification->token); + + $response->assertStatus(200); + + return true; + }); + } + + public function test_password_can_be_reset_with_valid_token() + { + Notification::fake(); + + $user = User::factory()->create(); + + $this->post('/forgot-password', ['email' => $user->email]); + + Notification::assertSentTo($user, ResetPassword::class, function ($notification) use ($user) { + $response = $this->post('/reset-password', [ + 'token' => $notification->token, + 'email' => $user->email, + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $response->assertSessionHasNoErrors(); + + return true; + }); + } +} diff --git a/tests/Feature/RegistrationTest.php b/tests/Feature/RegistrationTest.php new file mode 100644 index 0000000..6dd5ff8 --- /dev/null +++ b/tests/Feature/RegistrationTest.php @@ -0,0 +1,32 @@ +get('/register'); + + $response->assertStatus(200); + } + + public function test_new_users_can_register() + { + $response = $this->post('/register', [ + 'name' => 'Test User', + 'email' => 'test@example.com', + 'password' => 'password', + 'password_confirmation' => 'password', + ]); + + $this->assertAuthenticated(); + $response->assertRedirect(RouteServiceProvider::HOME); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..2932d4a --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,10 @@ +assertTrue(true); + } +}