├── database ├── .gitignore ├── seeds │ └── DatabaseSeeder.php ├── migrations │ ├── 2017_12_17_122527_create_payms_table.php │ ├── 2017_12_11_061116_create_admin_password_resets_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2017_12_17_113709_create_stats_table.php │ ├── 2017_12_17_070938_create_sliders_table.php │ ├── 2017_12_17_105510_create_services_table.php │ ├── 2017_12_11_124235_create_etemplates_table.php │ ├── 2017_12_13_110540_create_deposits_table.php │ ├── 2017_12_11_061115_create_admins_table.php │ ├── 2017_12_14_111540_create_withdraws_table.php │ ├── 2017_12_17_115511_create_testms_table.php │ ├── 2017_12_17_130754_create_interfaces_table.php │ ├── 2017_12_13_090851_create_returnlogs_table.php │ ├── 2017_12_30_112708_create_translogs_table.php │ ├── 2017_12_12_093147_create_packages_table.php │ ├── 2017_12_12_094859_create_investments_table.php │ ├── 2017_12_12_065651_create_gateways_table.php │ ├── 2017_12_11_064550_create_generals_table.php │ └── 2014_10_12_000000_create_users_table.php └── factories │ └── UserFactory.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── views │ ├── layouts │ │ ├── preloader.blade.php │ │ ├── master.blade.php │ │ ├── message.blade.php │ │ ├── user.blade.php │ │ ├── header.blade.php │ │ ├── apheader.blade.php │ │ ├── app.blade.php │ │ ├── head.blade.php │ │ └── scripts.blade.php │ ├── admin │ │ ├── layout │ │ │ ├── footer.blade.php │ │ │ ├── error.blade.php │ │ │ ├── master.blade.php │ │ │ ├── message.blade.php │ │ │ ├── container.blade.php │ │ │ ├── header.blade.php │ │ │ └── auth.blade.php │ │ ├── auth │ │ │ ├── login.blade.php │ │ │ ├── changepass.blade.php │ │ │ ├── passwords │ │ │ │ └── email.blade.php │ │ │ └── register.blade.php │ │ ├── user │ │ │ ├── translog.blade.php │ │ │ ├── broadcast.blade.php │ │ │ ├── banned.blade.php │ │ │ └── email.blade.php │ │ ├── lends │ │ │ └── lendings.blade.php │ │ ├── deposit │ │ │ └── deposits.blade.php │ │ ├── withdraw │ │ │ └── index.blade.php │ │ └── website │ │ │ └── email.blade.php │ ├── front │ │ ├── footer.blade.php │ │ ├── story.blade.php │ │ ├── counter.blade.php │ │ ├── pmethod.blade.php │ │ ├── about.blade.php │ │ ├── service.blade.php │ │ ├── double.blade.php │ │ ├── header.blade.php │ │ ├── nav.blade.php │ │ ├── testm.blade.php │ │ ├── index.blade.php │ │ └── stat.blade.php │ ├── 404.blade.php │ ├── user │ │ ├── deposit │ │ │ ├── preview.blade.php │ │ │ ├── deplog.blade.php │ │ │ ├── withlog.blade.php │ │ │ ├── deposit.blade.php │ │ │ └── withdraw.blade.php │ │ ├── trans.blade.php │ │ ├── lend │ │ │ ├── invpreview.blade.php │ │ │ ├── retur.blade.php │ │ │ ├── myinvest.blade.php │ │ │ └── lend.blade.php │ │ └── refer.blade.php │ └── auth │ │ ├── passwords │ │ └── email.blade.php │ │ ├── login.blade.php │ │ └── changepass.blade.php ├── assets │ ├── sass │ │ ├── app.scss │ │ └── _variables.scss │ └── js │ │ ├── components │ │ └── ExampleComponent.vue │ │ ├── app.js │ │ └── bootstrap.js └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── .gitattributes ├── .gitignore ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── app ├── Paym.php ├── Stat.php ├── Service.php ├── Slider.php ├── Testm.php ├── Etemplate.php ├── Interf.php ├── General.php ├── Gateway.php ├── Deposit.php ├── Withdraw.php ├── Translog.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrimStrings.php │ │ ├── RedirectIfAdmin.php │ │ ├── RedirectIfNotAdmin.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrustProxies.php │ │ └── CheckStatus.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── Auth │ │ │ ├── LoginController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── RegisterController.php │ │ ├── PaymController.php │ │ ├── EtemplateController.php │ │ ├── AdminAuth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── RegisterController.php │ │ ├── StatController.php │ │ ├── ServiceController.php │ │ ├── InterfaceController.php │ │ ├── WithdrawController.php │ │ ├── PaymentController.php │ │ ├── SliderController.php │ │ ├── TestmController.php │ │ ├── PackageController.php │ │ └── DepositController.php │ ├── Helpers │ │ └── helpers.php │ └── Kernel.php ├── Package.php ├── Returnlog.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ ├── AppServiceProvider.php │ └── RouteServiceProvider.php ├── Investment.php ├── Admin.php ├── Console │ └── Kernel.php ├── Lib │ └── CPHelper.php ├── User.php ├── Notifications │ └── AdminResetPassword.php └── Exceptions │ └── Handler.php ├── routes ├── admin.php ├── channels.php ├── api.php └── console.php ├── webpack.mix.js ├── server.php ├── .env.example ├── config ├── view.php ├── services.php ├── broadcasting.php ├── filesystems.php └── queue.php ├── phpunit.xml ├── package.json ├── composer.json └── artisan /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/layouts/preloader.blade.php: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | /.idea 7 | /.vagrant 8 | Homestead.json 9 | Homestead.yaml 10 | npm-debug.log 11 | yarn-error.log 12 | .env 13 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | 2 | 4 |
5 | 6 |
7 | -------------------------------------------------------------------------------- /app/Service.php: -------------------------------------------------------------------------------- 1 | user(); 6 | $users[] = Auth::guard('admin')->user(); 7 | 8 | //dd($users); 9 | 10 | return view('admin.home'); 11 | })->name('home'); 12 | 13 | -------------------------------------------------------------------------------- /resources/views/admin/layout/error.blade.php: -------------------------------------------------------------------------------- 1 | @if ($errors->any()) 2 |
3 | 8 |
9 | @endif -------------------------------------------------------------------------------- /app/General.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Gateway.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Website 5 | 6 | 7 | 8 | 9 |
10 |
11 | @yield('content') 12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /app/Deposit.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Withdraw.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Translog.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /resources/views/front/footer.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/Package.php: -------------------------------------------------------------------------------- 1 | hasMany('App\Investment', 'id', 'package_id'); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /resources/views/admin/layout/master.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @include('admin.layout.head') 6 | 7 | 8 | 9 | @include('admin.layout.header') 10 | 11 |
12 | 13 | @include('admin.layout.container') 14 | 15 | @include('admin.layout.footer') 16 | 17 | @include('admin.layout.scripts') 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /resources/views/admin/layout/message.blade.php: -------------------------------------------------------------------------------- 1 | @if (session('success')) 2 | 7 | @endif 8 | 9 | @if (session('alert')) 10 | 15 | @endif -------------------------------------------------------------------------------- /app/Returnlog.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 15 | } 16 | 17 | public function investment() 18 | { 19 | return $this->belongsTo('App\Investment'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |

{{$ints->sthead}}

6 |
7 |
8 |
9 | {!! $ints->stdesc !!} 10 |
11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /resources/views/admin/layout/container.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | @include('admin.layout.sidebar') 4 | 5 | 6 |
7 | 8 |
9 | @include('admin.layout.message') 10 | @include('admin.layout.error') 11 | 12 | @yield('content') 13 | 14 |
15 | 16 |
17 | 18 |
-------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAdmin.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('admin/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | let mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/assets/js/app.js', 'public/js') 15 | .sass('resources/assets/sass/app.scss', 'public/css'); 16 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfNotAdmin.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('admin/login'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /app/Investment.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 17 | } 18 | 19 | public function package() 20 | { 21 | return $this->belongsTo('App\Package'); 22 | } 23 | 24 | public function returnlog() 25 | { 26 | return $this->hasMany('App\Returnlog','id','investment_id'); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /resources/views/layouts/message.blade.php: -------------------------------------------------------------------------------- 1 | @if (session('success')) 2 | 7 | @endif 8 | @if (session('alert')) 9 | 14 | @endif 15 | @if (session('error')) 16 | 21 | @endif -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_LOG_LEVEL=debug 6 | APP_URL=http://localhost 7 | 8 | DB_CONNECTION=mysql 9 | DB_HOST=127.0.0.1 10 | DB_PORT=3306 11 | DB_DATABASE=homestead 12 | DB_USERNAME=homestead 13 | DB_PASSWORD=secret 14 | 15 | BROADCAST_DRIVER=log 16 | CACHE_DRIVER=file 17 | SESSION_DRIVER=file 18 | SESSION_LIFETIME=120 19 | QUEUE_DRIVER=sync 20 | 21 | REDIS_HOST=127.0.0.1 22 | REDIS_PASSWORD=null 23 | REDIS_PORT=6379 24 | 25 | MAIL_DRIVER=smtp 26 | MAIL_HOST=smtp.mailtrap.io 27 | MAIL_PORT=2525 28 | MAIL_USERNAME=null 29 | MAIL_PASSWORD=null 30 | MAIL_ENCRYPTION=null 31 | 32 | PUSHER_APP_ID= 33 | PUSHER_APP_KEY= 34 | PUSHER_APP_SECRET= 35 | -------------------------------------------------------------------------------- /resources/assets/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/views/layouts/user.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @include('layouts.head') 5 | 6 | 7 | 8 | @include('layouts.preloader') 9 | 10 |
11 | 12 | @include('layouts.header') 13 | 14 | @include('layouts.sidebar') 15 | 16 | @include('layouts.message') 17 |
18 | @yield('content') 19 |
20 | 21 |
22 | @yield('scripts') 23 | 24 | 25 | @include('layouts.scripts') 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/assets/js/app.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * First we will load all of this project's JavaScript dependencies which 4 | * includes Vue and other libraries. It is a great starting point when 5 | * building robust, powerful web applications using Vue and Laravel. 6 | */ 7 | 8 | require('./bootstrap'); 9 | 10 | window.Vue = require('vue'); 11 | 12 | /** 13 | * Next, we will create a fresh Vue application instance and attach it to 14 | * the page. Then, you may begin adding components to this application 15 | * or customize the JavaScript scaffolding to fit your unique needs. 16 | */ 17 | 18 | Vue.component('example-component', require('./components/ExampleComponent.vue')); 19 | 20 | const app = new Vue({ 21 | el: '#app' 22 | }); 23 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'App\Listeners\EventListener', 18 | ], 19 | ]; 20 | 21 | /** 22 | * Register any events for your application. 23 | * 24 | * @return void 25 | */ 26 | public function boot() 27 | { 28 | parent::boot(); 29 | 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2017_12_17_122527_create_payms_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('payment'); 19 | $table->timestamps(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('payms'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/views/front/counter.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | @foreach($stats as $stat) 6 |
7 |
8 | 9 | {{$stat->large}} 10 | {{$stat->small}} 11 |
12 |
13 | @endforeach 14 |
15 |
16 |
17 |
-------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | 'FORWARDED', 24 | Request::HEADER_X_FORWARDED_FOR => 'X_FORWARDED_FOR', 25 | Request::HEADER_X_FORWARDED_HOST => 'X_FORWARDED_HOST', 26 | Request::HEADER_X_FORWARDED_PORT => 'X_FORWARDED_PORT', 27 | Request::HEADER_X_FORWARDED_PROTO => 'X_FORWARDED_PROTO', 28 | ]; 29 | } 30 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(App\User::class, function (Faker $faker) { 17 | static $password; 18 | 19 | return [ 20 | 'name' => $faker->name, 21 | 'email' => $faker->unique()->safeEmail, 22 | 'password' => $password ?: $password = bcrypt('secret'), 23 | 'remember_token' => str_random(10), 24 | ]; 25 | }); 26 | -------------------------------------------------------------------------------- /database/migrations/2017_12_11_061116_create_admin_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 17 | $table->string('token')->index(); 18 | $table->timestamp('created_at')->nullable(); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::drop('admin_password_resets'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2017_12_17_113709_create_stats_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('image'); 19 | $table->string('small'); 20 | $table->string('large'); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('stats'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Passwords must be at least six characters and match the confirmation.', 17 | 'reset' => 'Your password has been reset!', 18 | 'sent' => 'We have e-mailed your password reset link!', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckStatus.php: -------------------------------------------------------------------------------- 1 | user()->tfver == '1' && Auth()->user()->status == '1' && Auth()->user()->emailv == '1' && Auth()->user()->smsv == '1') 23 | { 24 | return $next($request); 25 | } 26 | else 27 | { 28 | return redirect('authorization'); 29 | } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2017_12_17_070938_create_sliders_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('image'); 19 | $table->string('small'); 20 | $table->string('large'); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('sliders'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/views/front/pmethod.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

Payment we Accept

6 |
7 |
8 | 17 |
18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /database/migrations/2017_12_17_105510_create_services_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('image'); 19 | $table->string('small'); 20 | $table->string('large'); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('services'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2017_12_11_124235_create_etemplates_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('esender'); 19 | $table->text('emessage'); 20 | $table->text('smsapi'); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('etemplates'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/views/front/about.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | About 4 |
5 |
6 |
7 |

about us

8 |
9 |
10 |
11 |
12 | 13 |
14 |
15 |
16 |

{!! $ints->abdesc !!}

17 | 18 | 19 |
20 |
21 |
22 |
23 |
24 |
-------------------------------------------------------------------------------- /database/migrations/2017_12_13_110540_create_deposits_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('trxid'); 19 | $table->integer('user_id'); 20 | $table->string('amount'); 21 | $table->integer('status'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('deposits'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2017_12_11_061115_create_admins_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->string('name'); 18 | $table->string('email')->unique(); 19 | $table->string('username')->unique(); 20 | $table->string('password'); 21 | $table->rememberToken(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::drop('admins'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2017_12_14_111540_create_withdraws_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('wdid'); 19 | $table->integer('user_id'); 20 | $table->integer('status'); 21 | $table->string('amount'); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('withdraws'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2017_12_17_115511_create_testms_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('photo'); 19 | $table->string('name'); 20 | $table->string('company'); 21 | $table->string('star'); 22 | $table->text('comment'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('testms'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Admin.php: -------------------------------------------------------------------------------- 1 | notify(new AdminResetPassword($token)); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /database/migrations/2017_12_17_130754_create_interfaces_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('abhead'); 19 | $table->text('abdesc'); 20 | $table->text('stdesc'); 21 | $table->string('sthead'); 22 | $table->string('ftcon'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('interfaces'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2017_12_13_090851_create_returnlogs_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('trxid'); 19 | $table->integer('user_id'); 20 | $table->integer('investment_id'); 21 | $table->string('trxtime'); 22 | $table->string('amount'); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('returnlogs'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2017_12_30_112708_create_translogs_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('user_id'); 19 | $table->string('trxid'); 20 | $table->string('amount'); 21 | $table->string('balance'); 22 | $table->string('type'); 23 | $table->string('details'); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('translogs'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | } 30 | 31 | /** 32 | * Register the commands for the application. 33 | * 34 | * @return void 35 | */ 36 | protected function commands() 37 | { 38 | $this->load(__DIR__.'/Commands'); 39 | 40 | require base_path('routes/console.php'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /resources/views/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | 5 | 10 | 11 |
12 |
13 |
14 |
15 |

16 | Oops!

17 |

18 | 404 Not Found

19 |
20 | Sorry, an error has occured, Requested page not found! 21 |
22 | 26 |
27 |
28 |
29 |
30 | 31 | @endsection -------------------------------------------------------------------------------- /resources/views/user/deposit/preview.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | @section('content') 3 |
4 |
5 |
6 |
7 |

Confirm Deposit {{$gnl->cur}}

8 |
9 |
10 | 11 |
12 |
13 |
    14 |
  • Your Current Balance: {{Auth::user()->balance}} {{$gnl->cursym}}

  • 15 |
  • Deposit amount: {{$bcoin}} {{$gnl->cursym}}

  • 16 |
  • Your Balance After Deposit: {{Auth::user()->balance+$bcoin}} {{$gnl->cursym}}

  • 17 | 18 |
19 | 20 |

{!! $form !!}

21 | 22 |
23 |
24 | 25 | 26 |
27 |
28 |
29 |
30 | 31 | @endsection -------------------------------------------------------------------------------- /database/migrations/2017_12_12_093147_create_packages_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('min'); 20 | $table->string('max'); 21 | $table->string('times'); 22 | $table->string('ret'); 23 | $table->string('period'); 24 | $table->string('total'); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('packages'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /resources/assets/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | // Body 3 | $body-bg: #f5f8fa; 4 | 5 | // Borders 6 | $laravel-border-color: darken($body-bg, 10%); 7 | $list-group-border: $laravel-border-color; 8 | $navbar-default-border: $laravel-border-color; 9 | $panel-default-border: $laravel-border-color; 10 | $panel-inner-border: $laravel-border-color; 11 | 12 | // Brands 13 | $brand-primary: #3097D1; 14 | $brand-info: #8eb4cb; 15 | $brand-success: #2ab27b; 16 | $brand-warning: #cbb956; 17 | $brand-danger: #bf5329; 18 | 19 | // Typography 20 | $icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/"; 21 | $font-family-sans-serif: "Raleway", sans-serif; 22 | $font-size-base: 14px; 23 | $line-height-base: 1.6; 24 | $text-color: #636b6f; 25 | 26 | // Navbar 27 | $navbar-default-bg: #fff; 28 | 29 | // Buttons 30 | $btn-default-color: $text-color; 31 | 32 | // Inputs 33 | $input-border: lighten($text-color, 40%); 34 | $input-border-focus: lighten($brand-primary, 25%); 35 | $input-color-placeholder: lighten($text-color, 30%); 36 | 37 | // Panels 38 | $panel-default-heading-bg: #fff; 39 | -------------------------------------------------------------------------------- /database/migrations/2017_12_12_094859_create_investments_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('user_id'); 19 | $table->integer('package_id'); 20 | $table->string('amount'); 21 | $table->string('rtime'); 22 | $table->string('returned'); 23 | $table->string('next'); 24 | $table->integer('status'); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('investments'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => realpath(storage_path('framework/views')), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | ], 21 | 22 | 'ses' => [ 23 | 'key' => env('SES_KEY'), 24 | 'secret' => env('SES_SECRET'), 25 | 'region' => 'us-east-1', 26 | ], 27 | 28 | 'sparkpost' => [ 29 | 'secret' => env('SPARKPOST_SECRET'), 30 | ], 31 | 32 | 'stripe' => [ 33 | 'model' => App\User::class, 34 | 'key' => env('STRIPE_KEY'), 35 | 'secret' => env('STRIPE_SECRET'), 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Feature 14 | 15 | 16 | 17 | ./tests/Unit 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.17", 14 | "bootstrap-sass": "^3.3.7", 15 | "cross-env": "^5.1", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^1.0", 18 | "lodash": "^4.17.4", 19 | "vue": "^2.5.7" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Lib/CPHelper.php: -------------------------------------------------------------------------------- 1 | Deposit Now'; 14 | } 15 | 16 | 17 | public function createProperties($fields) 18 | { 19 | $field['cmd'] = '_pay_simple'; 20 | $field['item_name'] = 'Payment'; 21 | $field['custom'] = ''; 22 | $field['want_shipping'] = '0'; 23 | 24 | 25 | foreach($field as $key=>$item) 26 | { 27 | if(!array_key_exists($key, $fields)) 28 | { 29 | $fields[$key] = $item; 30 | } 31 | } 32 | 33 | 34 | return $fields; 35 | 36 | } 37 | 38 | 39 | public function createForm($fields) 40 | { 41 | $data = $this->createProperties($fields); 42 | 43 | $text = '
'; 44 | 45 | foreach($data as $name => $value) { 46 | $text .= ''; 47 | } 48 | 49 | return $text.$this->createButton().'
'; 50 | 51 | } 52 | 53 | 54 | 55 | 56 | 57 | 58 | } -------------------------------------------------------------------------------- /resources/views/user/trans.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |

{{$gnl->cur}} Transaction Log

9 |
10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | @foreach($trans as $log) 20 | 21 | 25 | 26 | 27 | 28 | 29 | 30 | @endforeach 31 |
TypeAmountBalanceTRX IDDetails
22 | {{$log->type == '0' ? 'Sent' : 'Received'}} 23 | 24 | {{$log->amount}} {{$gnl->cur}}{{$log->balance}} {{$gnl->cur}}{{$log->trxid}}{{$log->details}}
32 | render(); ?> 33 |
34 |
35 |
36 |
37 | 38 | 39 | @endsection 40 | -------------------------------------------------------------------------------- /resources/views/user/lend/invpreview.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | @section('content') 3 |
4 |
5 |
6 |
7 |

Confirm Lending {{$gnl->cur}}

8 |
9 |
10 | 11 |
12 |
13 |
    14 |
  • Lend amount: {{$amount}} {{$gnl->cursym}}

  • 15 |
  • Every Time Return amount: {{$every}} {{$gnl->cursym}}

  • 16 |
  • Total Return in {{$pack->times}} Times: {{$total}} {{$gnl->cursym}}

  • 17 |
18 | 19 |
20 | {{ csrf_field() }} 21 | 22 | 25 |
26 | 27 |
28 |
29 | 30 | 31 |
32 |
33 |
34 |
35 | 36 | @endsection -------------------------------------------------------------------------------- /database/migrations/2017_12_12_065651_create_gateways_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('gateimg')->nullable(); 20 | $table->string('minamo'); 21 | $table->string('maxamo'); 22 | $table->string('charged'); 23 | $table->string('chargep'); 24 | $table->string('rate'); 25 | $table->string('val1')->nullable(); 26 | $table->string('val2')->nullable(); 27 | $table->string('currency')->nullable(); 28 | $table->integer('status')->nullable(); 29 | $table->timestamps(); 30 | }); 31 | } 32 | 33 | /** 34 | * Reverse the migrations. 35 | * 36 | * @return void 37 | */ 38 | public function down() 39 | { 40 | Schema::dropIfExists('gateways'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Http/Controllers/PaymController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 13 | } 14 | public function index() 15 | { 16 | $payment = Paym::all(); 17 | return view('admin.interface.pay', compact('payment')); 18 | } 19 | 20 | public function store(Request $request) 21 | { 22 | $this->validate($request, 23 | [ 24 | 'payment' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048', 25 | ]); 26 | 27 | if($request->hasFile('payment')) 28 | { 29 | $pay['payment'] = uniqid().'.'.$request->payment->getClientOriginalExtension(); 30 | $request->payment->move('assets/images/paymethod',$pay['payment']); 31 | 32 | Paym::create($pay); 33 | 34 | return back()->with('success', 'New Payment Method Icon Added Successfully!'); 35 | } 36 | 37 | } 38 | 39 | public function destroy(Paym $paymethod) 40 | { 41 | unlink('assets/images/paymethod/'.$paymethod->payment); 42 | 43 | $paymethod->delete(); 44 | return back()->with('success', 'Payment Icon Deleted Successfully!'); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | hasMany('App\Deposit','id','user_id'); 33 | } 34 | public function investment() 35 | { 36 | return $this->hasMany('App\Investment','id','user_id'); 37 | } 38 | public function translog() 39 | { 40 | return $this->hasMany('App\Translog','id','user_id'); 41 | } 42 | public function returnlog() 43 | { 44 | return $this->hasMany('App\Returnlog','id','user_id'); 45 | } 46 | public function withdraw() 47 | { 48 | return $this->hasMany('App\Withdraw','id','user_id'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /resources/views/layouts/header.blade.php: -------------------------------------------------------------------------------- 1 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /resources/views/admin/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.auth') 2 | @section('content') 3 | 4 |
5 | {{ csrf_field() }} 6 |

Admin Sign In

7 |
8 | 9 | 10 | 11 |
12 | @if ($errors->has('username')) 13 | 14 | {{ $errors->first('username') }} 15 | 16 | @endif 17 |
18 | 19 |
20 | @if ($errors->has('password')) 21 | 22 | {{ $errors->first('password') }} 23 | 24 | @endif 25 |
26 | 27 |
28 | 29 |
30 | @endsection 31 | -------------------------------------------------------------------------------- /resources/views/front/service.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

How it Works

6 |
7 |
8 |
9 | @foreach($services as $service) 10 |
11 |
12 | 13 |

{{$service->large}}

14 |

{{$service->small}}

15 |
16 |
17 | @endforeach 18 |
19 |
20 |
21 |
22 |
23 | 24 |
25 |
26 |
27 |
28 |

Step up to get double Bitcoin Today

29 |
30 | get Started now 31 |
32 |
33 |
-------------------------------------------------------------------------------- /resources/views/user/lend/retur.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | @section('content') 3 | 4 |
5 |
6 |
7 |

My {{$gnl->cur}} Investment Returns

8 |
9 |
10 |
11 |
12 |
13 | 14 | 15 | 16 | 19 | 22 | 25 | 26 | 27 | 28 | @foreach($rlogs as $rlog) 29 | 30 | 33 | 36 | 39 | 40 | @endforeach 41 | 42 |
17 | Transaction ID 18 | 20 | Transaction Time 21 | 23 | Return Amount 24 |
31 | {{ $rlog->trxid }} 32 | 34 | {{$rlog->trxtime }} 35 | 37 | {{$rlog->amount}} {{$gnl->cursym}} 38 |
43 | 44 |
45 |
46 |
47 | 48 |
49 | 50 |
51 | 52 |
53 | @endsection 54 | -------------------------------------------------------------------------------- /app/Notifications/AdminResetPassword.php: -------------------------------------------------------------------------------- 1 | token = $token; 25 | } 26 | 27 | /** 28 | * Get the notification's delivery channels. 29 | * 30 | * @param mixed $notifiable 31 | * @return array 32 | */ 33 | public function via($notifiable) 34 | { 35 | return ['mail']; 36 | } 37 | 38 | /** 39 | * Get the mail representation of the notification. 40 | * 41 | * @param mixed $notifiable 42 | * @return \Illuminate\Notifications\Messages\MailMessage 43 | */ 44 | public function toMail($notifiable) 45 | { 46 | return (new MailMessage) 47 | ->line('You are receiving this email because we received a password reset request for your account.') 48 | ->action('Reset Password', url('admin/password/reset', $this->token)) 49 | ->line('If you did not request a password reset, no further action is required.'); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /resources/views/front/double.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

Get Double Bitcoin

6 |
7 |
8 |
9 |
10 |
11 | {{csrf_field()}} 12 |
13 | 14 | @if ($errors->has('walletid')) 15 | 16 | {{ $errors->first('walletid') }} 17 | 18 | @endif 19 |
20 |
21 | 22 |
23 |
24 |
25 |
26 |
27 | 28 |
29 |
30 |
-------------------------------------------------------------------------------- /database/migrations/2017_12_11_064550_create_generals_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('title')->default('Website'); 19 | $table->string('subtitle')->default('Sub Title'); 20 | $table->string('color')->default('336699'); 21 | $table->string('cur')->default('USD'); 22 | $table->string('cursym')->default('$'); 23 | $table->integer('reg')->default('1'); 24 | $table->integer('emailver')->default('1'); 25 | $table->integer('smsver')->default('1'); 26 | $table->integer('decimal')->default('2'); 27 | $table->integer('emailnotf')->default('1'); 28 | $table->integer('smsnotf')->default('1'); 29 | $table->string('startdate')->nullable(); 30 | $table->timestamps(); 31 | }); 32 | } 33 | 34 | /** 35 | * Reverse the migrations. 36 | * 37 | * @return void 38 | */ 39 | public function down() 40 | { 41 | Schema::dropIfExists('generals'); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/Http/Controllers/EtemplateController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 14 | } 15 | 16 | public function index() 17 | { 18 | $temp = Etemplate::first(); 19 | if($temp == null) 20 | { 21 | $default = [ 22 | 'esender' => 'email@example.com', 23 | 'emessage' => 'Email Message', 24 | 'smsapi' => 'SMS Message', 25 | 26 | ]; 27 | Etemplate::create($default); 28 | $temp = Etemplate::first(); 29 | } 30 | return view('admin.website.email', compact('temp')); 31 | } 32 | 33 | public function update(Request $request) 34 | { 35 | $temp = Etemplate::first(); 36 | 37 | $this->validate($request, 38 | [ 39 | 'esender' => 'required', 40 | 'smsapi' => 'required', 41 | 'emessage' => 'required' 42 | ]); 43 | 44 | $temp['esender'] = $request->esender; 45 | $temp['smsapi'] = $request->smsapi; 46 | $temp['emessage'] = $request->emessage; 47 | 48 | $temp->save(); 49 | 50 | return back()->with('success', 'Email and SMS Template Updated Successfully!'); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /app/Http/Helpers/helpers.php: -------------------------------------------------------------------------------- 1 | emessage; 14 | $from = $temp->esender; 15 | if($gnl->emailnotf == 1) 16 | { 17 | 18 | $headers = "From: $gnl->title <$from> \r\n"; 19 | $headers .= "Reply-To: $gnl->title <$from> \r\n"; 20 | $headers .= "MIME-Version: 1.0\r\n"; 21 | $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; 22 | 23 | $mm = str_replace("{{name}}",$name,$template); 24 | $message = str_replace("{{message}}",$message,$mm); 25 | 26 | if (mail($to, $subject, $message, $headers)) { 27 | // echo 'Your message has been sent.'; 28 | } else { 29 | //echo 'There was a problem sending the email.'; 30 | } 31 | 32 | } 33 | 34 | } 35 | } 36 | 37 | if (! function_exists('send_sms')) 38 | { 39 | 40 | function send_sms( $to, $message) 41 | { 42 | $temp = Etemplate::first(); 43 | $gnl = General::first(); 44 | 45 | if($gnl->smsnotf == 1) 46 | { 47 | 48 | $sendtext = urlencode("$message"); 49 | $appi = $temp->smsapi; 50 | $appi = str_replace("{{number}}",$to,$appi); 51 | $appi = str_replace("{{message}}",$sendtext,$appi); 52 | $result = file_get_contents($appi); 53 | } 54 | 55 | } 56 | } -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->string('username')->unique(); 21 | $table->string('password'); 22 | $table->string('mobile'); 23 | $table->string('balance'); 24 | $table->integer('tauth'); 25 | $table->integer('tfver'); 26 | $table->integer('status')->nullable(); 27 | $table->integer('emailv')->nullable(); 28 | $table->integer('smsv')->nullable(); 29 | $table->string('vsent')->nullable(); 30 | $table->string('vercode')->nullable(); 31 | $table->string('secretcode')->nullable(); 32 | $table->string('wallet'); 33 | $table->rememberToken(); 34 | $table->timestamps(); 35 | }); 36 | } 37 | 38 | /** 39 | * Reverse the migrations. 40 | * 41 | * @return void 42 | */ 43 | public function down() 44 | { 45 | Schema::dropIfExists('users'); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /resources/views/admin/user/translog.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 | 7 |
8 |
9 |
10 | 11 | User Transaction Log 12 |
13 | 14 |
15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | @foreach($trans as $log) 27 | 28 | 32 | 35 | 36 | 37 | 38 | 39 | 40 | @endforeach 41 |
TypeUserAmountBalanceTRX IDDetails
29 | {{$log->type == '0' ? 'Sent' : 'Received'}} 30 | 31 | 33 | {{$log->user->username}} 34 | {{$log->amount}} {{$gnl->cur}}{{$log->balance}} {{$gnl->cur}}{{$log->trxid}}{{$log->details}}
42 | render(); ?> 43 |
44 | 45 |
46 |
47 |
48 | @endsection -------------------------------------------------------------------------------- /resources/views/user/deposit/deplog.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |

{{$gnl->cur}} Deposit Log

9 |
10 |
11 | 12 | 13 | 14 | 17 | 20 | 23 | 24 | 25 | 26 | @foreach($depos as $dep) 27 | 28 | 31 | 34 | 37 | 38 | @endforeach 39 | 40 |
15 | Deposit ID 16 | 18 | Amount 19 | 21 | Processed on 22 |
29 | {{$dep->trxid}} 30 | 32 | {{$dep->amount}} {{$gnl->cursym}} 33 | 35 | {{$dep->updated_at}} 36 |
41 | render(); ?> 42 |
43 |
44 |
45 |
46 | 47 | 48 | @endsection 49 | -------------------------------------------------------------------------------- /resources/views/user/deposit/withlog.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |

{{$gnl->cur}} Withdraw Log

9 |
10 |
11 | 12 | 13 | 14 | 17 | 20 | 23 | 24 | 25 | 26 | @foreach($withds as $dep) 27 | 28 | 31 | 34 | 37 | 38 | @endforeach 39 | 40 |
15 | Withdraw ID 16 | 18 | Amount 19 | 21 | Processed on 22 |
29 | {{$dep->wdid}} 30 | 32 | {{$dep->amount}} {{$gnl->cursym}} 33 | 35 | {{$dep->updated_at}} 36 |
41 | render(); ?> 42 |
43 |
44 |
45 |
46 | 47 | 48 | @endsection 49 | -------------------------------------------------------------------------------- /resources/views/layouts/apheader.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/Http/Controllers/AdminAuth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('admin.guest'); 32 | } 33 | 34 | /** 35 | * Display the form to request a password reset link. 36 | * 37 | * @return \Illuminate\Http\Response 38 | */ 39 | public function showLinkRequestForm() 40 | { 41 | return view('admin.auth.passwords.email'); 42 | } 43 | 44 | /** 45 | * Get the broker to be used during password reset. 46 | * 47 | * @return \Illuminate\Contracts\Auth\PasswordBroker 48 | */ 49 | public function broker() 50 | { 51 | return Password::broker('admins'); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{$gnl->title}} 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | @include('layouts.apheader') 26 | @include('layouts.message') 27 | @yield('content') 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'THESOFTKING', 27 | 'subtitle' => 'Subtitle', 28 | 'startdate' => '2017-12-29', 29 | 'color' => '009933', 30 | 'cur' => 'BDT', 31 | 'cursym' => 'TK', 32 | 'decimal' => '2', 33 | 'reg' => '1', 34 | 'emailver' => '0', 35 | 'smsver' => '1', 36 | 'emailnotf' => '0', 37 | 'smsnotf' => '1' 38 | ]; 39 | General::create($default); 40 | $gnl = General::first(); 41 | } 42 | view()->share('gnl', $gnl); 43 | 44 | $all = file_get_contents("https://blockchain.info/ticker"); 45 | $res = json_decode($all); 46 | $btcrate = $res->USD->last; 47 | // $btcrate = 0; 48 | 49 | view()->share('btcrate', $btcrate); 50 | 51 | } 52 | 53 | /** 54 | * Register any application services. 55 | * 56 | * @return void 57 | */ 58 | public function register() 59 | { 60 | // 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "description": "The Laravel Framework.", 4 | "keywords": ["framework", "laravel"], 5 | "license": "MIT", 6 | "type": "project", 7 | "require": { 8 | "php": ">=7.0.0", 9 | "fideloper/proxy": "~3.3", 10 | "hesto/multi-auth": "^2.0", 11 | "laravel/framework": "5.5.*", 12 | "laravel/tinker": "~1.0" 13 | }, 14 | "require-dev": { 15 | "filp/whoops": "~2.0", 16 | "fzaninotto/faker": "~1.4", 17 | "mockery/mockery": "~1.0", 18 | "phpunit/phpunit": "~6.0" 19 | }, 20 | "autoload": { 21 | "classmap": [ 22 | "database/seeds", 23 | "database/factories" 24 | ], 25 | "psr-4": { 26 | "App\\": "app/" 27 | } 28 | }, 29 | "autoload-dev": { 30 | "psr-4": { 31 | "Tests\\": "tests/" 32 | }, 33 | "files": ["app/Http/Helpers/helpers.php"] 34 | }, 35 | "extra": { 36 | "laravel": { 37 | "dont-discover": [ 38 | ] 39 | } 40 | }, 41 | "scripts": { 42 | "post-root-package-install": [ 43 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 44 | ], 45 | "post-create-project-cmd": [ 46 | "@php artisan key:generate" 47 | ], 48 | "post-autoload-dump": [ 49 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 50 | "@php artisan package:discover" 51 | ] 52 | }, 53 | "config": { 54 | "preferred-install": "dist", 55 | "sort-packages": true, 56 | "optimize-autoloader": true 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /app/Http/Controllers/StatController.php: -------------------------------------------------------------------------------- 1 | validate($request, 20 | [ 21 | 'image' => 'required|string', 22 | 'small' => 'required|string', 23 | 'large' => 'required|string', 24 | ]); 25 | 26 | $stat['image'] = $request->image; 27 | $stat['small'] = $request->small; 28 | $stat['large'] = $request->large; 29 | 30 | Stat::create($stat); 31 | 32 | return back()->with('success', 'New Statistics Created Successfully!'); 33 | } 34 | 35 | public function update(Request $request, $id) 36 | { 37 | $stat = Stat::find($id); 38 | $this->validate($request, 39 | [ 40 | 'image' => 'required|string', 41 | 'small' => 'required|string', 42 | 'large' => 'required|string', 43 | ]); 44 | 45 | $stat['image'] = $request->image; 46 | $stat['small'] = $request->small; 47 | $stat['large'] = $request->large; 48 | $stat->save(); 49 | 50 | return back()->with('success', 'Statistics Updated Successfully!'); 51 | } 52 | 53 | public function destroy(Stat $stat) 54 | { 55 | $stat->delete(); 56 | 57 | return back()->with('success', 'Statistics Deleted Successfully!'); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /resources/views/user/deposit/deposit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | @section('content') 3 |
4 |
5 |
6 |
7 |

Add {{$gnl->cur}} Balance

8 |
9 |
10 |
11 | {{ csrf_field() }} 12 |
13 | 14 |
15 | 16 | {{$gnl->cursym}} 17 |
18 |
19 | 20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |

YOUR ACCOUNT BALANCE

28 |
29 |
30 |

{{Auth::user()->balance}} {{$gnl->cursym}}

31 |
32 |
33 |
34 |
35 | 36 | @endsection 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /resources/views/user/refer.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |

My References

9 |
10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 | @foreach($refers as $ref) 18 | 19 | 20 | 21 | 22 | 23 | @endforeach 24 |
UsernameFull NameJoining Date
{{$ref->username}}{{$ref->name}}{{$ref->created_at}}
25 | render(); ?> 26 |
27 |
28 |
29 |
30 |
31 |
32 |

Referal URL

33 |
34 |
35 |
36 |
37 | 38 | Copy 39 |
40 |
41 |
42 |
43 | 44 |
45 |
46 | 47 | 48 | 55 | 56 | @endsection 57 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | // 40 | ], 41 | ], 42 | 43 | 'redis' => [ 44 | 'driver' => 'redis', 45 | 'connection' => 'default', 46 | ], 47 | 48 | 'log' => [ 49 | 'driver' => 'log', 50 | ], 51 | 52 | 'null' => [ 53 | 'driver' => 'null', 54 | ], 55 | 56 | ], 57 | 58 | ]; 59 | -------------------------------------------------------------------------------- /resources/views/user/deposit/withdraw.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | @section('content') 3 |
4 |
5 |
6 |
7 |

Withdraw {{$gnl->cur}}

8 |
9 |
10 |
11 | {{ csrf_field() }} 12 |
13 | 14 |
15 | 16 | {{$gnl->cursym}} 17 |
18 |
19 | 20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |

YOUR ACCOUNT BALANCE

28 |
29 |
30 |

{{Auth::user()->balance}} {{$gnl->cursym}}

31 |
32 |
33 |
34 |
35 | @endsection 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /resources/assets/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | 2 | window._ = require('lodash'); 3 | 4 | /** 5 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 6 | * for JavaScript based Bootstrap features such as modals and tabs. This 7 | * code may be modified to fit the specific needs of your application. 8 | */ 9 | 10 | try { 11 | window.$ = window.jQuery = require('jquery'); 12 | 13 | require('bootstrap-sass'); 14 | } catch (e) {} 15 | 16 | /** 17 | * We'll load the axios HTTP library which allows us to easily issue requests 18 | * to our Laravel back-end. This library automatically handles sending the 19 | * CSRF token as a header based on the value of the "XSRF" token cookie. 20 | */ 21 | 22 | window.axios = require('axios'); 23 | 24 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 25 | 26 | /** 27 | * Next we will register the CSRF Token as a common header with Axios so that 28 | * all outgoing HTTP requests automatically have it attached. This is just 29 | * a simple convenience so we don't have to attach every token manually. 30 | */ 31 | 32 | let token = document.head.querySelector('meta[name="csrf-token"]'); 33 | 34 | if (token) { 35 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 36 | } else { 37 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 38 | } 39 | 40 | /** 41 | * Echo exposes an expressive API for subscribing to channels and listening 42 | * for events that are broadcast by Laravel. Echo and event broadcasting 43 | * allows your team to easily build robust real-time web applications. 44 | */ 45 | 46 | // import Echo from 'laravel-echo' 47 | 48 | // window.Pusher = require('pusher-js'); 49 | 50 | // window.Echo = new Echo({ 51 | // broadcaster: 'pusher', 52 | // key: 'your-pusher-key' 53 | // }); 54 | -------------------------------------------------------------------------------- /app/Http/Controllers/AdminAuth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('admin.guest', ['except' => 'logout']); 42 | } 43 | 44 | /** 45 | * Show the application's login form. 46 | * 47 | * @return \Illuminate\Http\Response 48 | */ 49 | public function showLoginForm() 50 | { 51 | return view('admin.auth.login'); 52 | } 53 | 54 | /** 55 | * Get the guard to be used during authentication. 56 | * 57 | * @return \Illuminate\Contracts\Auth\StatefulGuard 58 | */ 59 | protected function guard() 60 | { 61 | return Auth::guard('admin'); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Http/Controllers/ServiceController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 13 | } 14 | public function index() 15 | { 16 | $services = Service::all(); 17 | 18 | return view('admin.interface.service', compact('services')); 19 | } 20 | 21 | 22 | public function store(Request $request) 23 | { 24 | $this->validate($request, 25 | [ 26 | 'image' => 'required|string', 27 | 'small' => 'required|string', 28 | 'large' => 'required|string', 29 | ]); 30 | 31 | $serv['image'] = $request->image; 32 | $serv['small'] = $request->small; 33 | $serv['large'] = $request->large; 34 | 35 | Service::create($serv); 36 | 37 | return back()->with('success', 'New Service Created Successfully!'); 38 | } 39 | 40 | public function update(Request $request, $id) 41 | { 42 | $serv = Service::find($id); 43 | $this->validate($request, 44 | [ 45 | 'image' => 'required|string', 46 | 'small' => 'required|string', 47 | 'large' => 'required|string', 48 | ]); 49 | 50 | $serv['image'] = $request->image; 51 | $serv['small'] = $request->small; 52 | $serv['large'] = $request->large; 53 | $serv->save(); 54 | 55 | return back()->with('success', 'Service Updated Successfully!'); 56 | } 57 | 58 | public function destroy(Service $service) 59 | { 60 | $service->delete(); 61 | 62 | return back()->with('success', 'Service Deleted Successfully!'); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | isHttpException($exception)) 52 | { 53 | 54 | switch ($exception->getStatusCode()) 55 | { 56 | 57 | case 404: 58 | 59 | return redirect()->route('404'); 60 | 61 | break; 62 | 63 | case 405: 64 | 65 | return redirect()->route('404'); 66 | 67 | break; 68 | } 69 | } 70 | return parent::render($request, $exception); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /resources/views/front/header.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/admin/auth/changepass.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 | 10 | Change Password 11 |
12 | 13 |
14 |
15 | 16 | 36 |
37 | 38 |
39 |
40 |
41 | 42 | 43 | @endsection -------------------------------------------------------------------------------- /resources/views/user/lend/myinvest.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | @section('content') 3 | 4 |
5 |
6 |
7 |

My {{$gnl->cur}} Investments

8 |
9 |
10 |
11 |
12 |
13 | 14 | 15 | 16 | 19 | 22 | 25 | 28 | 31 | 32 | 33 | 34 | @foreach($myinvests as $inv) 35 | 36 | 39 | 42 | 45 | 48 | 51 | 52 | @endforeach 53 | 54 |
17 | Amount 18 | 20 | Every Return Amount 21 | 23 | Return Times 24 | 26 | Total Return 27 | 29 | Status 30 |
37 | {{$inv->amount }} {{$gnl->cursym}} 38 | 40 | {{$inv->package->ret*$inv->amount/100}} {{$gnl->cursym}} 41 | 43 | {{$inv->package->times}} 44 | 46 | {{$inv->package->total*$inv->amount/100}} {{$gnl->cursym}} 47 | 49 | {{$inv->status == 1 ? 'Active' : 'Completed'}} 50 |
55 | 56 |
57 |
58 |
59 | 60 |
61 | 62 |
63 | 64 |
65 | @endsection 66 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Reset Password
9 | 10 |
11 | @if (session('status')) 12 |
13 | {{ session('status') }} 14 |
15 | @endif 16 | 17 |
18 | {{ csrf_field() }} 19 | 20 |
21 | 22 | 23 |
24 | 25 | 26 | @if ($errors->has('email')) 27 | 28 | {{ $errors->first('email') }} 29 | 30 | @endif 31 |
32 |
33 | 34 |
35 |
36 | 39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | @endsection 48 | -------------------------------------------------------------------------------- /resources/views/admin/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.auth') 2 | 3 | 4 | @section('content') 5 |
6 |
7 |
8 |
9 |
Reset Password
10 |
11 | @if (session('status')) 12 |
13 | {{ session('status') }} 14 |
15 | @endif 16 | 17 |
18 | {{ csrf_field() }} 19 | 20 |
21 | 22 | 23 |
24 | 25 | 26 | @if ($errors->has('email')) 27 | 28 | {{ $errors->first('email') }} 29 | 30 | @endif 31 |
32 |
33 | 34 |
35 |
36 | 39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | @endsection 48 | -------------------------------------------------------------------------------- /resources/views/admin/lends/lendings.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 | 7 |
8 |
9 |
10 | 11 | User Lendings 12 |
13 | 14 |
15 |
16 | 17 | 18 | 19 | 20 | 23 | 26 | 29 | 32 | 33 | 34 | 35 | @foreach($invests as $inv) 36 | 37 | 40 | 43 | 46 | 49 | 50 | @endforeach 51 | 52 |
21 | User 22 | 24 | Amount 25 | 27 | Returned 28 | 30 | Status 31 |
38 | {{$inv->user->username}} 39 | 41 | {{$inv->amount}} {{$gnl->cursym}} 42 | 44 | {{$inv->returned}} Times 45 | 47 | {{$inv->status == 1 ? 'Active' : 'Completed'}} 48 |
53 |
54 | 55 |
56 |
57 |
58 | 59 | 60 | @endsection -------------------------------------------------------------------------------- /resources/views/admin/deposit/deposits.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 | 7 |
8 |
9 |
10 | 11 | Deposit List 12 |
13 |
14 |
15 | 16 | 17 | 18 | 19 | 22 | 25 | 28 | 31 | 32 | 33 | 34 | @foreach($deposits as $dep) 35 | 36 | 39 | 44 | 47 | 50 | 51 | @endforeach 52 | 53 |
20 | Deposit ID 21 | 23 | User 24 | 26 | Amount 27 | 29 | Processed on 30 |
37 | {{$dep->trxid}} 38 | 40 | 41 | {{$dep->user->username}} 42 | 43 | 45 | {{$dep->amount}} {{$gnl->cursym}} 46 | 48 | {{$dep->updated_at}} 49 |
54 |
55 | 56 |
57 |
58 |
59 | 60 | 61 | @endsection -------------------------------------------------------------------------------- /resources/views/admin/withdraw/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 | 7 |
8 |
9 |
10 | 11 | Withdraw List 12 |
13 |
14 |
15 | 16 | 17 | 18 | 19 | 22 | 25 | 28 | 31 | 32 | 33 | 34 | @foreach($withdrws as $with) 35 | 36 | 39 | 44 | 47 | 50 | 51 | @endforeach 52 | 53 |
20 | Withdraw ID 21 | 23 | User 24 | 26 | Amount 27 | 29 | Processed on 30 |
37 | {{$with->wdid}} 38 | 40 | 41 | {{$with->user->username}} 42 | 43 | 45 | {{$with->amount}} {{$gnl->cur}} 46 | 48 | {{$with->updated_at}} 49 |
54 |
55 | 56 |
57 |
58 |
59 | 60 | 61 | @endsection -------------------------------------------------------------------------------- /app/Http/Controllers/InterfaceController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 13 | } 14 | public function index() 15 | { 16 | $ints = Interf::first(); 17 | if($ints == null) 18 | { 19 | $default = [ 20 | 'abdesc' => 'About Us', 21 | 'stdesc' => 'Story of Us', 22 | 'sthead' => 'Our Story', 23 | 'ftcon' => 'fOOTER', 24 | ]; 25 | Interf::create($default); 26 | $ints = Interf::first(); 27 | } 28 | 29 | return view('admin.interface.index', compact('ints')); 30 | } 31 | 32 | public function update(Request $request) 33 | { 34 | $intfs = Interf::first(); 35 | 36 | $this->validate($request, [ 37 | 'abimage' => 'image|mimes:jpeg,png,jpg,gif,svg|max:8048', 38 | 'stimage' => 'image|mimes:jpeg,png,jpg,gif,svg|max:8048', 39 | 'ttimage' => 'image|mimes:jpeg,png,jpg,gif,svg|max:8048', 40 | 'abdesc' => 'required', 41 | 'stdesc' => 'required', 42 | 'sthead' => 'required', 43 | 'ftcon' => 'required', 44 | ]); 45 | 46 | if($request->hasFile('about')) 47 | { 48 | $request->about->move('assets/images/interface','about.jpg'); 49 | } 50 | if($request->hasFile('stimage')) 51 | { 52 | $request->stimage->move('assets/images/interface','story.jpg'); 53 | } 54 | if($request->hasFile('ttimage')) 55 | { 56 | $request->ttimage->move('assets/images/interface','testm.jpg'); 57 | } 58 | 59 | $intfs['abdesc'] = $request->abdesc; 60 | $intfs['sthead'] = $request->sthead; 61 | $intfs['stdesc'] = $request->stdesc; 62 | $intfs['ftcon'] = $request->ftcon; 63 | 64 | $intfs->save(); 65 | 66 | return back()->with('success', 'Interface Content Updated Successfully!'); 67 | 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /resources/views/admin/user/broadcast.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 | 10 | Broadcast Email 11 |
12 |
13 |
14 |
15 | {{ csrf_field() }} 16 |
17 |
18 | 19 | 20 |
21 |
22 | 23 | 26 |
27 |
28 |
29 | 30 |
31 |
32 |
33 |
34 |
35 |
36 | 37 | @endsection -------------------------------------------------------------------------------- /resources/views/front/nav.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/user/lend/lend.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |

Lending Package

9 |
10 | 11 |
12 |
    13 |
  • Limit: {{$pack->min}} ~ {{$pack->max}} {{$gnl->cursym}}
  • 14 |
  • Return in {{$pack->times}} Times
  • 15 |
  • {{$pack->ret}} % of investment Return Every Time
  • 16 |
  • {{$pack->total}} % Return of Total Investment
  • 17 |
  • Return Period: 18 | @if($pack->period == '1') Hourly 19 | @elseif($pack->period == '24') Daily 20 | @elseif($pack->period == '168') Weekly 21 | @elseif($pack->period == '720') Monthly 22 | @elseif($pack->period == '2880') Quaterly 23 | @elseif($pack->period == '8640') Yearly 24 | @endif 25 | ({{$pack->period}} hours) 26 |
  • 27 |
28 |
29 | {{csrf_field()}} 30 | 31 |
32 |
33 | 34 | {{$gnl->cursym }} 35 |
36 |
37 |
38 |
39 | 40 |
41 | 42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |

Your Baalance: {{Auth::user()->balance}} {{$gnl->cursym}}

50 |
51 |
52 |
53 |
54 | @endsection 55 | -------------------------------------------------------------------------------- /resources/views/front/testm.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

what people say

6 |
7 | 40 |
41 |
42 |
-------------------------------------------------------------------------------- /app/Http/Controllers/WithdrawController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 16 | } 17 | 18 | public function index() 19 | { 20 | $withdrws = Withdraw::where('status', 1)->orderBy('id', 'desc')->get(); 21 | 22 | return view('admin.withdraw.index', compact('withdrws')); 23 | } 24 | 25 | public function requests() 26 | { 27 | $withdrws = Withdraw::where('status', 0)->orderBy('id', 'desc')->get(); 28 | 29 | return view('admin.withdraw.requests', compact('withdrws')); 30 | } 31 | 32 | public function approve(Request $request, $id) 33 | { 34 | $withdr = Withdraw::findorFail($id); 35 | 36 | $withdr['status'] = 1; 37 | $withdr->save(); 38 | 39 | $user = User::find($withdr['user_id']); 40 | 41 | $msg = 'Your Withdraw Processed Successfully'; 42 | send_email($user->email, $user->username, 'Purchase Processed', $msg); 43 | $sms = 'Your Withdraw Processed Successfully'; 44 | send_sms($user->mobile, $sms); 45 | 46 | return back()->with('success', 'Withdraw Request Approved Successfully!'); 47 | } 48 | 49 | public function destroy(Withdraw $withdraw) 50 | { 51 | $user = User::find($withdraw['user_id']); 52 | $user['balance'] = $user->balance + $withdraw['amount']; 53 | $user->save(); 54 | 55 | $tlog['user_id'] = $user->id; 56 | $tlog['trxid'] = str_random(16); 57 | $tlog['amount'] =$withdraw['amount']; 58 | $tlog['balance'] = $user->balance; 59 | $tlog['type'] = 1; 60 | $tlog['details'] = 'Withdraw Request Canceled'; 61 | Translog::create($tlog); 62 | 63 | 64 | $msg = 'Your Withdraw Request canceled by Admin'; 65 | send_email($user->email, $user->username, 'Withdraw Canceled', $msg); 66 | $sms = 'Your Withdraw Request canceled by Admin'; 67 | send_sms($user->mobile, $sms); 68 | 69 | $withdraw->delete(); 70 | 71 | return back()->with('success', 'Deposit Canceled Successfully!'); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/Http/Controllers/AdminAuth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('admin.guest'); 42 | } 43 | 44 | /** 45 | * Display the password reset view for the given token. 46 | * 47 | * If no token is present, display the link request form. 48 | * 49 | * @param \Illuminate\Http\Request $request 50 | * @param string|null $token 51 | * @return \Illuminate\Http\Response 52 | */ 53 | public function showResetForm(Request $request, $token = null) 54 | { 55 | return view('admin.auth.passwords.reset')->with( 56 | ['token' => $token, 'email' => $request->email] 57 | ); 58 | } 59 | 60 | /** 61 | * Get the broker to be used during password reset. 62 | * 63 | * @return \Illuminate\Contracts\Auth\PasswordBroker 64 | */ 65 | public function broker() 66 | { 67 | return Password::broker('admins'); 68 | } 69 | 70 | /** 71 | * Get the guard to be used during password reset. 72 | * 73 | * @return \Illuminate\Contracts\Auth\StatefulGuard 74 | */ 75 | protected function guard() 76 | { 77 | return Auth::guard('admin'); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "s3", "rackspace" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | ], 65 | 66 | ], 67 | 68 | ]; 69 | -------------------------------------------------------------------------------- /resources/views/layouts/head.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{$gnl->title}} | Dashboard 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /resources/views/admin/layout/header.blade.php: -------------------------------------------------------------------------------- 1 | 51 | -------------------------------------------------------------------------------- /resources/views/layouts/scripts.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | 'bindings', 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'admin' => \App\Http\Middleware\RedirectIfNotAdmin::class, 55 | 'admin.guest' => \App\Http\Middleware\RedirectIfAdmin::class, 56 | 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, 57 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 58 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 59 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 60 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 61 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 62 | 'ckstatus' => \App\Http\Middleware\CheckStatus::class, 63 | 64 | ]; 65 | } 66 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | $this->mapAdminRoutes(); 43 | 44 | // 45 | } 46 | 47 | /** 48 | * Define the "admin" routes for the application. 49 | * 50 | * These routes all receive session state, CSRF protection, etc. 51 | * 52 | * @return void 53 | */ 54 | protected function mapAdminRoutes() 55 | { 56 | Route::group([ 57 | 'middleware' => ['web', 'admin', 'auth:admin'], 58 | 'prefix' => 'admin', 59 | 'as' => 'admin.', 60 | 'namespace' => $this->namespace, 61 | ], function ($router) { 62 | require base_path('routes/admin.php'); 63 | }); 64 | } 65 | 66 | /** 67 | * Define the "web" routes for the application. 68 | * 69 | * These routes all receive session state, CSRF protection, etc. 70 | * 71 | * @return void 72 | */ 73 | protected function mapWebRoutes() 74 | { 75 | Route::middleware('web') 76 | ->namespace($this->namespace) 77 | ->group(base_path('routes/web.php')); 78 | } 79 | 80 | /** 81 | * Define the "api" routes for the application. 82 | * 83 | * These routes are typically stateless. 84 | * 85 | * @return void 86 | */ 87 | protected function mapApiRoutes() 88 | { 89 | Route::prefix('api') 90 | ->middleware('api') 91 | ->namespace($this->namespace) 92 | ->group(base_path('routes/api.php')); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | @section('content') 3 |
4 |
5 |
6 | 40 |
41 |
42 |
43 | @endsection 44 | -------------------------------------------------------------------------------- /resources/views/auth/changepass.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.user') 2 | @section('content') 3 |
4 |
5 |
6 |
7 |

Change Password

8 |
9 |
10 |
11 | {{ csrf_field() }} 12 |
13 |
14 |
15 | 16 | 17 | @if ($errors->has('passwordold')) 18 | 19 | {{ $errors->first('passwordold') }} 20 | 21 | @endif 22 |
23 | 24 |
25 | 26 | 27 | @if ($errors->has('password')) 28 | 29 | {{ $errors->first('password') }} 30 | 31 | @endif 32 |
33 |
34 | 35 | 36 | @if ($errors->has('password')) 37 | 38 | {{ $errors->first('password') }} 39 | 40 | @endif 41 |
42 |
43 | 44 |
45 |
46 | 47 |
48 |
49 |
50 |
51 | 52 |
53 | 54 |
55 | 56 | @endsection 57 | -------------------------------------------------------------------------------- /resources/views/front/index.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{$gnl->title}} 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | @include('front.header') 29 | @include('front.double') 30 | @include('front.about') 31 | @include('front.service') 32 | @include('front.story') 33 | @include('front.counter') 34 | @include('front.stat') 35 | @include('front.testm') 36 | @include('front.pmethod') 37 | @include('front.footer') 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /app/Http/Controllers/PaymentController.php: -------------------------------------------------------------------------------- 1 | validate($request, 19 | [ 20 | 'amount' => 'required', 21 | ]); 22 | 23 | $user = User::find(Auth::id()); 24 | 25 | if ($request->amount <= 0) 26 | { 27 | return back()->with('alert', 'Invalid Amount'); 28 | } 29 | else 30 | { 31 | $method = Gateway::find(5); 32 | 33 | // You need to set a callback URL if you want the IPN to work 34 | $callbackUrl = route('ipn.coinPay'); 35 | 36 | // Create an instance of the class 37 | $CP = new coinPayments(); 38 | 39 | // Set the merchant ID and secret key (can be found in account settings on CoinPayments.net) 40 | $CP->setMerchantId($method->val1); 41 | $CP->setSecretKey($method->val2); 42 | 43 | // Create a payment button with item name, currency, cost, custom variable, and the callback URL 44 | 45 | $bcoin = $request->amount; 46 | $ntrc = str_random(16); 47 | 48 | $depo['user_id'] = Auth::id(); 49 | $depo['amount'] = $bcoin; 50 | $depo['status'] = 0; 51 | $depo['trxid'] = $ntrc; 52 | Deposit::create($depo); 53 | 54 | $form = $CP->createPayment('User Deposit', 'btc', $bcoin, $ntrc, $callbackUrl); 55 | 56 | return view('user.deposit.preview', compact('bcoin','form')); 57 | } 58 | 59 | } 60 | 61 | 62 | public function ipncoin(Request $request) 63 | { 64 | $track = $request->custom; 65 | $status = $request->status; 66 | $amount1 = floatval($request->amount1); 67 | $currency1 = $request->currency1; 68 | 69 | $DepositData = Deposit::where('trxid', $track)->first(); 70 | 71 | 72 | if ($currency1 == "btc" && $amount1 >= $DepositData->amount && $DepositData->status == '0') { 73 | 74 | if ($status>=100 || $status==2) 75 | { 76 | 77 | $user = User::find(Auth::id()); 78 | $user['balance'] = $user['balance'] + $DepositData->amount; 79 | $user->save(); 80 | 81 | $tlog['user_id'] = $user->id; 82 | $tlog['trxid'] = str_random(16); 83 | $tlog['amount'] = $DepositData->amount; 84 | $tlog['balance'] = $user->balance; 85 | $tlog['type'] = 1; 86 | $tlog['details'] = 'Deposit Successfull'; 87 | Translog::create($tlog); 88 | 89 | $DepositData['status'] = 1; 90 | $DepositData->save(); 91 | } 92 | 93 | } 94 | 95 | } 96 | 97 | } 98 | -------------------------------------------------------------------------------- /resources/views/admin/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 | 6 | 7 |
8 | {{ csrf_field() }} 9 |

Register New Admin

10 |
11 | 12 |
13 | 14 | 15 |
16 |
17 | 18 | 19 |
20 |
21 | 22 | 23 |
24 |
25 | 26 | 27 |
28 |
29 | 30 | 31 | @if ($errors->has('password_confirmation')) 32 | 33 | {{ $errors->first('password_confirmation') }} 34 | 35 | @endif 36 |
37 | 38 | 39 |
40 | 41 |
42 |
43 |
44 | @endsection 45 | -------------------------------------------------------------------------------- /resources/views/admin/user/banned.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 | 10 | Banned User List 11 |
12 | 13 |
14 |
15 | 16 | 17 | 18 | 19 | 22 | 25 | 28 | 31 | 34 | 37 | 38 | 39 | 40 | @foreach($users as $user) 41 | 42 | 45 | 48 | 51 | 54 | 57 | 61 | 62 | @endforeach 63 | 64 |
20 | Name 21 | 23 | Email 24 | 26 | Username 27 | 29 | Phone 30 | 32 | Balance 33 | 35 | Details 36 |
43 | {{$user->name}} 44 | 46 | {{$user->email}} 47 | 49 | {{$user->username}} 50 | 52 | {{$user->mobile}} 53 | 55 | {{number_format(floatval($user->balance), $gnl->decimal, '.', '')}} {{$gnl->cursym}} 56 | 58 | 59 | View 60 |
65 | render(); ?> 66 |
67 | 68 |
69 |
70 |
71 | 72 | 73 | @endsection -------------------------------------------------------------------------------- /app/Http/Controllers/SliderController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 13 | } 14 | 15 | public function index() 16 | { 17 | $sliders = Slider::all(); 18 | 19 | return view('admin.interface.slider', compact('sliders')); 20 | } 21 | 22 | 23 | public function store(Request $request) 24 | { 25 | $this->validate($request, 26 | [ 27 | 'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:8048', 28 | 'small' => 'required|string', 29 | 'large' => 'required|string', 30 | ]); 31 | 32 | if($request->hasFile('image')) 33 | { 34 | 35 | $slider['image'] = uniqid().'.'.$request->image->getClientOriginalExtension(); 36 | $request->image->move('assets/images/slider',$slider['image']); 37 | } 38 | $slider['small'] = $request->small; 39 | $slider['large'] = $request->large; 40 | 41 | Slider::create($slider); 42 | 43 | return back()->with('success', 'New Slide Created Successfully!'); 44 | } 45 | 46 | public function update(Request $request, $id) 47 | { 48 | $slide = Slider::find($id); 49 | $this->validate($request, 50 | [ 51 | 'image' => 'image|mimes:jpeg,png,jpg,gif,svg|max:8048', 52 | 'small' => 'required|string', 53 | 'large' => 'required|string', 54 | ]); 55 | 56 | if($request->hasFile('image')) 57 | { 58 | $path = 'assets/images/slider/'.$slide->image; 59 | 60 | if(file_exists($path)) 61 | { 62 | unlink($path); 63 | } 64 | 65 | $slide['image'] = uniqid().'.'.$request->image->getClientOriginalExtension(); 66 | $request->image->move('assets/images/slider',$slide['image']); 67 | } 68 | 69 | $slide['large'] = $request->large; 70 | $slide['small'] = $request->small; 71 | $slide->save(); 72 | 73 | return back()->with('success', 'Slider Updated Successfully!'); 74 | } 75 | 76 | public function destroy(Slider $slider) 77 | { 78 | $path = 'assets/images/slider/'.$slider->image; 79 | 80 | if(file_exists($path)) 81 | { 82 | unlink($path); 83 | } 84 | $slider->delete(); 85 | 86 | return back()->with('success', 'Slider Deleted Successfully!'); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /resources/views/admin/website/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 |

Email Template Settings

7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | Short Code
16 | 17 |
18 |
19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
# CODE DESCRIPTION
1
{{message}}
Details Text From Script
2
{{name}}
Users Name. Will Pull From Database and Use in EMAIL text
47 |
48 |
49 |
50 |
51 |
52 | 53 |
54 |
55 |
56 |
57 |
58 | 59 | Email and SMS Template 60 |
61 |
62 |
63 |
64 | {{ csrf_field() }} 65 |
66 |
67 | 68 | 69 |
70 |
71 | 72 | 75 |
76 |
77 | 78 | 81 |
82 |
83 |
84 | 85 |
86 |
87 |
88 |
89 |
90 |
91 | 92 | @endsection -------------------------------------------------------------------------------- /app/Http/Controllers/AdminAuth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 41 | } 42 | 43 | /** 44 | * Get a validator for an incoming registration request. 45 | * 46 | * @param array $data 47 | * @return \Illuminate\Contracts\Validation\Validator 48 | */ 49 | protected function validator(array $data) 50 | { 51 | return Validator::make($data, [ 52 | 'name' => 'required|max:255', 53 | 'email' => 'required|email|max:255|unique:admins', 54 | 'username' => 'required|max:255|unique:admins', 55 | 'password' => 'required|min:5|confirmed', 56 | ]); 57 | } 58 | 59 | /** 60 | * Create a new user instance after a valid registration. 61 | * 62 | * @param array $data 63 | * @return Admin 64 | */ 65 | protected function create(array $data) 66 | { 67 | return Admin::create([ 68 | 'name' => $data['name'], 69 | 'email' => $data['email'], 70 | 'username' => $data['username'], 71 | 'password' => bcrypt($data['password']), 72 | ]); 73 | } 74 | 75 | /** 76 | * Show the application registration form. 77 | * 78 | * @return \Illuminate\Http\Response 79 | */ 80 | public function showRegistrationForm() 81 | { 82 | 83 | return view('admin.auth.register'); 84 | } 85 | 86 | /** 87 | * Get the guard to be used during registration. 88 | * 89 | * @return \Illuminate\Contracts\Auth\StatefulGuard 90 | */ 91 | protected function guard() 92 | { 93 | return Auth::guard('admin'); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_DRIVER', 'sync'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Queue Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may configure the connection information for each server that 26 | | is used by your application. A default configuration has been added 27 | | for each back-end shipped with Laravel. You are free to add more. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | ], 50 | 51 | 'sqs' => [ 52 | 'driver' => 'sqs', 53 | 'key' => 'your-public-key', 54 | 'secret' => 'your-secret-key', 55 | 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', 56 | 'queue' => 'your-queue-name', 57 | 'region' => 'us-east-1', 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => 'default', 64 | 'retry_after' => 90, 65 | ], 66 | 67 | ], 68 | 69 | /* 70 | |-------------------------------------------------------------------------- 71 | | Failed Queue Jobs 72 | |-------------------------------------------------------------------------- 73 | | 74 | | These options configure the behavior of failed queue job logging so you 75 | | can control which database and table are used to store the jobs that 76 | | have failed. You may change them to any database / table you wish. 77 | | 78 | */ 79 | 80 | 'failed' => [ 81 | 'database' => env('DB_CONNECTION', 'mysql'), 82 | 'table' => 'failed_jobs', 83 | ], 84 | 85 | ]; 86 | -------------------------------------------------------------------------------- /app/Http/Controllers/TestmController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 13 | } 14 | 15 | public function index() 16 | { 17 | $testims = Testm::all(); 18 | return view('admin.interface.testim', compact('testims')); 19 | } 20 | 21 | 22 | public function store(Request $request) 23 | { 24 | $this->validate($request, 25 | [ 26 | 'photo' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048', 27 | 'name' => 'required', 28 | 'company' => 'required', 29 | 'star' => 'required', 30 | 'comment' => 'required', 31 | ]); 32 | 33 | if($request->hasFile('photo')) 34 | { 35 | $testim['photo'] = uniqid().'.'.$request->photo->getClientOriginalExtension(); 36 | $request->photo->move('assets/images/testimonial',$testim['photo']); 37 | } 38 | $testim['name'] = $request->name; 39 | $testim['company'] = $request->company; 40 | $testim['star'] = $request->star; 41 | $testim['comment'] = $request->comment; 42 | 43 | 44 | Testm::create($testim); 45 | 46 | return back()->with('success', 'New Testimonial Created Successfully!'); 47 | } 48 | 49 | 50 | public function update(Request $request, $id) 51 | { 52 | $testim = Testm::find($id); 53 | 54 | $this->validate($request, 55 | [ 56 | 'photo' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048', 57 | 'name' => 'required', 58 | 'company' => 'required', 59 | 'star' => 'required', 60 | 'comment' => 'required', 61 | ]); 62 | 63 | if($request->hasFile('photo')) 64 | { 65 | unlink('assets/images/testimonial/'.$testim->photo); 66 | $testim['photo'] = uniqid().'.'.$request->photo->getClientOriginalExtension(); 67 | $request->photo->move('assets/images/testimonial',$testim['photo']); 68 | } 69 | $testim['name'] = $request->name; 70 | $testim['company'] = $request->company; 71 | $testim['star'] = $request->star; 72 | $testim['comment'] = $request->comment; 73 | 74 | $testim->save(); 75 | 76 | return back()->with('success', 'Testimonial Updated Successfully!'); 77 | } 78 | 79 | 80 | public function destroy(Testm $testim) 81 | { 82 | $testim->delete(); 83 | unlink('assets/images/testimonial/'.$testim->photo); 84 | return back()->with('success', 'Testimonial Deleted Successfully!'); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /app/Http/Controllers/PackageController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 14 | } 15 | 16 | public function index() 17 | { 18 | $pack = Package::first(); 19 | 20 | return view('admin.deposit.package', compact('pack')); 21 | } 22 | 23 | public function update(Request $request) 24 | { 25 | $pack = Package::first(); 26 | 27 | $this->validate($request, 28 | [ 29 | 'name' => 'required', 30 | 'min' => 'required', 31 | 'max' => 'required', 32 | 'return' => 'required', 33 | 'times' => 'required', 34 | 'period' => 'required', 35 | 'fixcom' => 'required', 36 | 'pcncom' => 'required', 37 | ]); 38 | 39 | $pack['name'] = $request->name; 40 | $pack['min'] = $request->min; 41 | $pack['max'] = $request->max; 42 | $pack['ret'] = $request->return; 43 | $pack['times'] = $request->times; 44 | $pack['period'] = $request->period; 45 | $pack['fixcom'] = $request->fixcom; 46 | $pack['pcncom'] = $request->pcncom; 47 | $pack['total'] = $request->return*$request->times; 48 | 49 | $pack->save(); 50 | 51 | return back()->with('success', 'Package Updated Successfully!'); 52 | } 53 | 54 | // public function store(Request $request) 55 | // { 56 | // $this->validate($request, 57 | // [ 58 | // 'name' => 'required', 59 | // 'min' => 'required', 60 | // 'max' => 'required', 61 | // 'return' => 'required', 62 | // 'times' => 'required', 63 | // 'period' => 'required', 64 | // ]); 65 | 66 | // $pack['name'] = $request->name; 67 | // $pack['min'] = $request->min; 68 | // $pack['max'] = $request->max; 69 | // $pack['ret'] = $request->return; 70 | // $pack['times'] = $request->times; 71 | // $pack['period'] = $request->period; 72 | // $pack['total'] = $request->return*$request->times; 73 | 74 | // Package::create($pack); 75 | 76 | // return back()->with('success', 'New Package Created Successfully!'); 77 | // } 78 | 79 | 80 | 81 | // public function destroy(Package $package) 82 | // { 83 | // $package->delete(); 84 | 85 | // return back()->with('success', 'Package Deleted Successfully!'); 86 | // } 87 | } 88 | -------------------------------------------------------------------------------- /resources/views/admin/user/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('admin.layout.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
9 | 10 | Send Email 11 |
12 |
13 |
14 |
15 | {{ csrf_field() }} 16 |
17 |
18 | 19 | 20 |
21 |
22 | 23 | 24 |
25 |
26 | 27 | 28 |
29 |
30 | 31 | 34 |
35 |
36 |
37 | 38 |
39 |
40 |
41 |
42 |
43 |
44 | 45 | @endsection -------------------------------------------------------------------------------- /resources/views/front/stat.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |

MOST RECENT TRANSACTIONS

6 |
7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | @foreach($lends as $lend) 22 | 23 | 24 | 25 | 26 | 27 | 66 | 67 | 68 | @endforeach 69 | 70 |
TypeTimeWallet AddressLending AmountTime LeftPayout Amount
{{$lend->status == 2 ? 'Payout' : 'Lending'}}{{$lend->updated_at}}{{$lend->user->wallet}}{{$lend->amount}} {{$gnl->cursym}} 28 | @php 29 | $left = ($lend->package->times - $lend->returned); 30 | $edate = Carbon\Carbon::parse()->addHours($lend->package->period * $left); 31 | $now = Carbon\Carbon::now(); 32 | $coutd = $edate->diffInSeconds($now); 33 | $iid = "tsk".$lend->id; 34 | echo ""; 61 | 62 | echo $lend->status == 2 ? " Complete" : "id\">"; 63 | 64 | @endphp 65 | {{$lend->status == 2 ? $lend->package->total*$lend->amount/100 : ($lend->package->ret*$lend->amount/100)*$lend->returned }} {{$gnl->cursym}}
71 |
72 |
73 |
74 |
75 |
-------------------------------------------------------------------------------- /resources/views/admin/layout/auth.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{$gnl->title}} | Admin Login 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 |
35 | 36 | @yield('content') 37 | 38 |
39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /app/Http/Controllers/DepositController.php: -------------------------------------------------------------------------------- 1 | middleware('admin'); 16 | } 17 | 18 | public function index() 19 | { 20 | $deposits = Deposit::where('status', 1)->orderBy('id', 'desc')->get(); 21 | 22 | return view('admin.deposit.deposits', compact('deposits')); 23 | } 24 | 25 | public function requests() 26 | { 27 | $deposits = Deposit::where('status', 0)->orderBy('id', 'desc')->get(); 28 | 29 | return view('admin.deposit.requests', compact('deposits')); 30 | } 31 | 32 | public function approve(Request $request, $id) 33 | { 34 | $deposit = Deposit::findorFail($id); 35 | 36 | $deposit['status'] = 1; 37 | $deposit->save(); 38 | 39 | $user = User::find($deposit['user_id']); 40 | $user['balance'] = $user->balance + $deposit['amount']; 41 | $user->save(); 42 | 43 | if ($user->refid != 0) 44 | { 45 | $pack = Package::first(); 46 | 47 | $refer = User::find($user->refid); 48 | $coms = ($pack->fixcom*$deposit['amount'])/100; 49 | $refer['balance'] = $refer->balance + $coms; 50 | $refer->save(); 51 | 52 | $rlog['user_id'] = $refer->id; 53 | $rlog['trxid'] = str_random(16); 54 | $rlog['amount'] = $coms; 55 | $rlog['balance'] = $refer->balance; 56 | $rlog['type'] = 1; 57 | $rlog['details'] = 'Referal Deposit Commision'; 58 | Translog::create($rlog); 59 | } 60 | 61 | $tlog['user_id'] = $user->id; 62 | $tlog['trxid'] = str_random(16); 63 | $tlog['amount'] = $deposit['amount']; 64 | $tlog['balance'] = $user->balance; 65 | $tlog['type'] = 1; 66 | $tlog['details'] = 'Deposit Successfull'; 67 | Translog::create($tlog); 68 | 69 | $msg = 'Your Deposit Processed Successfully'; 70 | send_email($user->email, $user->firstname, 'Purchase Processed', $msg); 71 | $sms = 'Your Deposit Processed Successfully'; 72 | send_sms($user->mobile, $sms); 73 | 74 | return back()->with('success', 'Deposit Request Approved Successfully!'); 75 | } 76 | 77 | public function destroy(Deposit $deposit) 78 | { 79 | $user = User::find($deposit['user_id']); 80 | 81 | $msg = 'Your Deposit Request canceled by Admin'; 82 | send_email($user->email, $user->username, 'Deposit Canceled', $msg); 83 | $sms = 'Your Deposit Request canceled by Admin'; 84 | send_sms($user->mobile, $sms); 85 | 86 | $deposit['status'] = 2; 87 | $deposit->save(); 88 | 89 | return back()->with('success', 'Deposit Canceled Successfully!'); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 41 | } 42 | 43 | /** 44 | * Get a validator for an incoming registration request. 45 | * 46 | * @param array $data 47 | * @return \Illuminate\Contracts\Validation\Validator 48 | */ 49 | protected function validator(array $data) 50 | { 51 | return Validator::make($data, [ 52 | 'name' => 'required|string|max:255', 53 | 'email' => 'required|string|email|max:255|unique:users', 54 | 'username' => 'required|string|max:255|unique:users', 55 | 'password' => 'required|string|min:6|confirmed', 56 | 'mobile' => 'required|string', 57 | 'wallet' => 'required|string|unique:users', 58 | ]); 59 | } 60 | 61 | /** 62 | * Create a new user instance after a valid registration. 63 | * 64 | * @param array $data 65 | * @return \App\User 66 | */ 67 | protected function create(array $data) 68 | { 69 | $gnl = General::first(); 70 | if(isset($data['refid'])) 71 | { 72 | $refer = User::where('username', $data['refid'])->first(); 73 | $refuser = $refer->id; 74 | } 75 | else 76 | { 77 | $refuser = "0"; 78 | } 79 | return User::create([ 80 | 'name' => $data['name'], 81 | 'email' => $data['email'], 82 | 'username' => $data['username'], 83 | 'password' => bcrypt($data['password']), 84 | 'mobile' => $data['mobile'], 85 | 'wallet' => $data['wallet'], 86 | 'status' => 1, 87 | 'refid' => $refuser, 88 | 'tauth' => 0, 89 | 'tfver' => 1, 90 | 'emailv' => $gnl->emailver, 91 | 'smsv' => $gnl->smsver, 92 | ]); 93 | } 94 | } 95 | --------------------------------------------------------------------------------