├── public ├── favicon.ico ├── robots.txt ├── .htaccess ├── index.php └── svg │ ├── 404.svg │ ├── 503.svg │ └── 403.svg ├── database ├── .gitignore ├── seeds │ ├── DatabaseSeeder.php │ ├── UsersTableSeeder.php │ └── LeadsTableSeeder.php ├── factories │ ├── LeadFactory.php │ ├── SaleFactory.php │ └── UserFactory.php └── migrations │ ├── 2019_04_08_085829_create_countries_table.php │ ├── 2019_04_09_110027_create_sales_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2019_04_08_121437_create_leads_table.php │ ├── 2019_04_08_085829_create_users_social_table.php │ ├── 2019_04_27_101754_add_company_website_phone_to_users.php │ ├── 2014_10_12_000000_create_users_table.php │ └── 2019_04_08_085829_create_two_factor_table.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── docker ├── supervisor │ ├── build.sh │ ├── supervisord.conf │ └── Dockerfile ├── php-7.2-fpm │ ├── build.sh │ ├── xdebug.ini │ └── Dockerfile └── nginx.conf ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── PULL_REQUEST_TEMPLATE.md └── ISSUE_TEMPLATE.md ├── CONTRIBUTING.md ├── .gitattributes ├── config ├── indigo-layout.php ├── navigation.php ├── view.php ├── services.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── awesio-auth.php ├── queue.php ├── logging.php ├── cache.php ├── auth.php ├── database.php ├── mail.php └── session.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitignore ├── .editorconfig ├── app ├── Sections │ ├── Analytics │ │ ├── Scopes │ │ │ ├── StatisticScopes.php │ │ │ └── PeriodScope.php │ │ └── Controllers │ │ │ └── AnalyticController.php │ ├── Sales │ │ ├── Repositories │ │ │ └── SaleRepository.php │ │ ├── Models │ │ │ └── Sale.php │ │ └── Resources │ │ │ └── Sale.php │ ├── Leads │ │ ├── Models │ │ │ └── Lead.php │ │ ├── Resources │ │ │ └── Lead.php │ │ ├── Requests │ │ │ └── StoreLead.php │ │ ├── Repositories │ │ │ └── LeadRepository.php │ │ └── Controllers │ │ │ └── LeadController.php │ ├── Settings │ │ ├── Rules │ │ │ └── CurrentPassword.php │ │ ├── Requests │ │ │ ├── UpdateUser.php │ │ │ └── ChangePassword.php │ │ └── Controllers │ │ │ └── SettingController.php │ └── Dashboard │ │ └── Controllers │ │ └── DashboardController.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ ├── Authenticate.php │ │ ├── VerifyCsrfToken.php │ │ ├── RedirectIfAuthenticated.php │ │ └── NotifyAboutInstallation.php │ ├── Controllers │ │ ├── Controller.php │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── VerificationController.php │ │ │ └── RegisterController.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── User.php ├── Console │ └── Kernel.php └── Exceptions │ └── Handler.php ├── resources ├── views │ ├── integration │ │ ├── favicons.blade.php │ │ └── ga.blade.php │ ├── vendor │ │ └── awesio-auth │ │ │ ├── auth │ │ │ ├── register.blade.php │ │ │ ├── passwords │ │ │ │ ├── email.blade.php │ │ │ │ └── reset.blade.php │ │ │ ├── login.blade.php │ │ │ └── verify.blade.php │ │ │ ├── twofactor │ │ │ ├── verify.blade.php │ │ │ └── index.blade.php │ │ │ └── layouts │ │ │ └── app.blade.php │ └── sections │ │ ├── leads │ │ └── show.blade.php │ │ ├── settings │ │ └── index.blade.php │ │ ├── analytics │ │ └── index.blade.php │ │ └── dashboard │ │ └── index.blade.php └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ ├── passwords.php │ └── pages.php ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── server.php ├── package.json ├── .env.docker ├── .env.example ├── LICENSE ├── phpunit.xml ├── artisan ├── docker-compose.yml ├── CODE_OF_CONDUCT.md ├── readme.md ├── install.sh └── composer.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /docker/supervisor/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | docker build -t awescrm/supervisor:latest . 4 | -------------------------------------------------------------------------------- /docker/php-7.2-fpm/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | docker build -t awescodehub/php-7.2-fpm:latest . 4 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | patreon: awesdotio 4 | open_collective: awesdotio 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Awes.io 2 | 3 | Want to contribute to Awes.io? We provide a Contribution Guide to help you get started. 4 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /config/indigo-layout.php: -------------------------------------------------------------------------------- 1 | [env('APP_URL', 'https://example.com'), 'http://localhost:5080'] 5 | ]; 6 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | PeriodScope::class, 11 | ]; 12 | } -------------------------------------------------------------------------------- /app/Sections/Analytics/Scopes/PeriodScope.php: -------------------------------------------------------------------------------- 1 | whereDate('created_at', '>', now()->subDays($value)); 12 | } 13 | } -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Sections/Sales/Models/Sale.php: -------------------------------------------------------------------------------- 1 | belongsTo(Lead::class); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call([ 15 | LeadsTableSeeder::class, 16 | UsersTableSeeder::class, 17 | ]); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /database/factories/LeadFactory.php: -------------------------------------------------------------------------------- 1 | define(Lead::class, function (Faker $faker) { 8 | return [ 9 | 'name' => $faker->name, 10 | 'email' => $faker->email, 11 | 'phone' => $faker->phoneNumber, 12 | 'is_premium' => $faker->numberBetween(1, 4), 13 | ]; 14 | }); 15 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | define(Sale::class, function (Faker $faker) { 8 | return [ 9 | 'total' => $faker->numberBetween(1000, 9999), 10 | 'created_at' => Carbon::now() 11 | ->subDays(random_int(0, 100)) 12 | ->format('Y-m-d H:i:s') 13 | ]; 14 | }); 15 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | hasMany(Sale::class); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /resources/views/integration/favicons.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /resources/views/integration/ga.blade.php: -------------------------------------------------------------------------------- 1 | @if (App::environment('live')) 2 | 3 | 4 | 11 | @endif 12 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /database/seeds/UsersTableSeeder.php: -------------------------------------------------------------------------------- 1 | create([ 16 | 'name' => 'test', 17 | 'email' => 'test@test.com', 18 | 'email_verified_at' => now(), 19 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret 20 | ]); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login', $request->all()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const 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/js/app.js', 'public/js') 15 | // .sass('resources/sass/app.scss', 'public/css'); 16 | -------------------------------------------------------------------------------- /docker/php-7.2-fpm/xdebug.ini: -------------------------------------------------------------------------------- 1 | ; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini) 2 | 3 | xdebug.remote_connect_back=0 4 | xdebug.remote_port=9009 5 | xdebug.remote_host=172.19.1.15 6 | xdebug.idekey=PHPSTORM 7 | 8 | xdebug.remote_autostart=0 9 | xdebug.remote_enable=0 10 | xdebug.cli_color=0 11 | xdebug.profiler_enable=0 12 | xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling" 13 | 14 | xdebug.remote_handler=dbgp 15 | xdebug.remote_mode=req 16 | 17 | xdebug.var_display_max_children=-1 18 | xdebug.var_display_max_data=-1 19 | xdebug.var_display_max_depth=-1 20 | -------------------------------------------------------------------------------- /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/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/home'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/NotifyAboutInstallation.php: -------------------------------------------------------------------------------- 1 | Install now'), 'info')->to('header'); 19 | 20 | return $next($request); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Sections/Sales/Resources/Sale.php: -------------------------------------------------------------------------------- 1 | $this->id, 19 | "total" => str_replace('.', ' ', $this->total / 1000), 20 | "lead_name" => $this->lead->name, 21 | "lead_phone" => $this->lead->phone, 22 | "created" => $this->created_at->diffForHumans() 23 | ]; 24 | } 25 | } -------------------------------------------------------------------------------- /app/Sections/Settings/Rules/CurrentPassword.php: -------------------------------------------------------------------------------- 1 | user()->password); 20 | } 21 | /** 22 | * Get the validation error message. 23 | * 24 | * @return string 25 | */ 26 | public function message() 27 | { 28 | return 'Invalid current password.'; 29 | } 30 | } -------------------------------------------------------------------------------- /app/Sections/Leads/Resources/Lead.php: -------------------------------------------------------------------------------- 1 | $this->id, 19 | "name" => $this->name, 20 | "email" => $this->email, 21 | "phone" => $this->phone, 22 | "is_premium" => $this->is_premium, 23 | "sales_count" => $this->sales_count, 24 | "created" => $this->created_at->diffForHumans() 25 | ]; 26 | } 27 | } -------------------------------------------------------------------------------- /app/Sections/Settings/Requests/UpdateUser.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 28 | 'email' => 'required|email|max:255|unique:users,email,' . auth()->id(), 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Sections/Leads/Requests/StoreLead.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 28 | 'email' => 'required|string|email|max:255', 29 | 'phone' => 'required|string|max:255' 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_04_08_085829_create_countries_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->string('name'); 18 | $table->string('code', 2); 19 | $table->string('dial_code'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::drop('countries'); 31 | } 32 | } -------------------------------------------------------------------------------- /app/Sections/Settings/Requests/ChangePassword.php: -------------------------------------------------------------------------------- 1 | ['required', new CurrentPassword], 29 | 'password' => 'required|confirmed|min:6', 30 | ]; 31 | } 32 | } -------------------------------------------------------------------------------- /resources/views/vendor/awesio-auth/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | @extends('indigo-layout::auth') 2 | 3 | @section('meta_title', _p('pages.register.meta_title', 'Create an Account') . ' // ' . config('app.name')) 4 | @section('meta_description', _p('pages.register.meta_description', 'Awes.IO Platform Demo')) 5 | 6 | @push('head') 7 | @include('integration.favicons') 8 | @include('integration.ga') 9 | @endpush 10 | 11 | @section('title') 12 |

{{ _p('pages.register.headline', 'Create Your Account') }}

13 | @endsection 14 | 15 | @section('content') 16 | @include('indigo-layout::auth.register') 17 | @endsection 18 | 19 | @section('footer') 20 | {!! _p('pages.register.footer-headline', 'Already have an account? :link_name ', ['link_url' => route('login'), 'link_name' => 'Sign In']) !!} 21 | @endsection 22 | -------------------------------------------------------------------------------- /database/migrations/2019_04_09_110027_create_sales_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->unsignedInteger('lead_id'); 19 | $table->unsignedInteger('total'); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('sales'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Sections/Leads/Repositories/LeadRepository.php: -------------------------------------------------------------------------------- 1 | 'like', 13 | 'email' => 'like', 14 | 'phone' => 'like', 15 | 'is_premium', 16 | ]; 17 | 18 | public function entity() 19 | { 20 | return Lead::class; 21 | } 22 | 23 | public function scope($request) 24 | { 25 | // apply build-in scopes 26 | parent::scope($request); 27 | 28 | // apply custom scopes 29 | $this->entity = (new StatisticScopes($request))->scope($this->entity); 30 | 31 | return $this; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | parent::boot(); 31 | 32 | // 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 | -------------------------------------------------------------------------------- /database/seeds/LeadsTableSeeder.php: -------------------------------------------------------------------------------- 1 | create()->each(function ($lead) use ($count) { 20 | $lead->created_at = Carbon::now() 21 | ->subDays(random_int(0, 70)) 22 | ->format('Y-m-d H:i:s'); 23 | $lead->save(); 24 | 25 | $saleCount = random_int(1, 20); 26 | 27 | for ($i=1; $i < $saleCount; $i++) { 28 | $lead->sales()->save(factory(Sale::class)->make()); 29 | } 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(App\User::class, function (Faker $faker) { 18 | return [ 19 | 'name' => $faker->name, 20 | 'email' => $faker->unique()->safeEmail, 21 | 'email_verified_at' => now(), 22 | 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret 23 | 'remember_token' => Str::random(10), 24 | ]; 25 | }); 26 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 38 | ]; 39 | } 40 | -------------------------------------------------------------------------------- /database/migrations/2019_04_08_121437_create_leads_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->string('name'); 19 | $table->string('email'); 20 | $table->string('phone'); 21 | $table->tinyInteger('is_premium')->unsigned()->default(1); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('leads'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Your issue may already be reported! 11 | Please search on the [issue tracker](../) before creating one. 12 | 13 | ## Expected Behavior 14 | 15 | 16 | 17 | ## Current Behavior 18 | 19 | 20 | 21 | ## Possible Solution 22 | 23 | 24 | 25 | 26 | ## System GA 27 | [![Analytics](https://ga-beacon.appspot.com/UA-134431636-1/awes-io/issues)](https://github.com/awes-io/issues) 28 | -------------------------------------------------------------------------------- /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": "npm run development -- --watch", 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 | "cross-env": "^5.1", 14 | "laravel-mix": "^4.0.7", 15 | "resolve-url-loader": "^2.3.1", 16 | "vue": "^2.5.17" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/migrations/2019_04_08_085829_create_users_social_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->integer('user_id')->unsigned()->index(); 18 | $table->string('social_id'); 19 | $table->string('service'); 20 | $table->timestamps(); 21 | 22 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::drop('users_social'); 34 | } 35 | } -------------------------------------------------------------------------------- /database/migrations/2019_04_27_101754_add_company_website_phone_to_users.php: -------------------------------------------------------------------------------- 1 | string('company')->nullable()->after('remember_token'); 18 | $table->string('website')->nullable()->after('company'); 19 | $table->string('phone')->nullable()->after('website'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::table('users', function (Blueprint $table) { 31 | // 32 | }); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('users'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.env.docker: -------------------------------------------------------------------------------- 1 | APP_NAME="Awes.io Demo" 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://127.0.0.1:5080 6 | 7 | LOG_CHANNEL=stack 8 | 9 | # MAIN DB CONNECTION 10 | DB_CONNECTION=mysql 11 | DB_HOST=awes-demo-mysql 12 | DB_PORT=3306 13 | DB_DATABASE=awes 14 | DB_USERNAME=root 15 | DB_PASSWORD=awes 16 | 17 | BROADCAST_DRIVER=log 18 | CACHE_DRIVER=redis 19 | QUEUE_CONNECTION=redis 20 | SESSION_DRIVER=file 21 | SESSION_LIFETIME=120 22 | 23 | REDIS_HOST=awes-demo-redis 24 | REDIS_PASSWORD=null 25 | REDIS_PORT=6379 26 | 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME= 30 | MAIL_PASSWORD= 31 | MAIL_ENCRYPTION=null 32 | 33 | PUSHER_APP_ID= 34 | PUSHER_APP_KEY= 35 | PUSHER_APP_SECRET= 36 | PUSHER_APP_CLUSTER=mt1 37 | 38 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 39 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 40 | 41 | # THIS IS DEMO KEY, for personal use only, it will become INVALID after short period of time 42 | # If you need FREE production key, please visit https://www.pkgkit.com/awes-io/create" 43 | PKGKIT_CDN_KEY=c3882a7e75f09a59b73780aee93d3fbc 44 | -------------------------------------------------------------------------------- /resources/views/vendor/awesio-auth/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('indigo-layout::auth2') 2 | 3 | @section('meta_title', _p('pages.reset_password.meta_title', 'Reset password') . ' // ' . config('app.name')) 4 | @section('meta_description', _p('pages.reset_password.meta_description', 'Package Kit - Managing your web projects and packages')) 5 | 6 | @push('head') 7 | @include('integration.favicons') 8 | @include('integration.ga') 9 | @endpush 10 | 11 | @section('title') 12 |

{{ _p('pages.reset_password.headline_pre', 'Reset password') }}

13 | {{ _p('pages.reset_password.headline_pre_subtitle', 'Enter your email address you used to register. Number of messages is limited.') }} 14 | @endsection 15 | 16 | @section('content') 17 | @include('indigo-layout::auth.passwords.email') 18 | @endsection 19 | 20 | @section('footer') 21 | {!! _p('pages.reset_password.footer-headline', ':link_name ', ['link_url' => route('login'), 'link_name' => 'Back to login page']) !!} 22 | @endsection 23 | -------------------------------------------------------------------------------- /config/navigation.php: -------------------------------------------------------------------------------- 1 | [ 5 | 'userNavigation' => [ 6 | [ 7 | 'name' => 'Settings', 8 | 'link' => '/settings', 9 | ], 10 | [ 11 | 'name' => 'Logout', 12 | 'link' => '/logout', 13 | 'class' => 'is-expand', 14 | ], 15 | ], 16 | 'sidebar' => [ 17 | [ 18 | 'name' => 'Dashboard', 19 | 'link' => '/dashboard', 20 | 'icon' => 'speed' 21 | ], 22 | [ 23 | 'name' => 'Leads', 24 | 'link' => '/leads', 25 | 'icon' => 'report' 26 | ], 27 | [ 28 | 'name' => 'Analytics', 29 | 'link' => '/analytics', 30 | 'icon' => 'report' 31 | ], 32 | [ 33 | 'name' => 'Settings', 34 | 'link' => '/settings', 35 | 'icon' => 'settings' 36 | ], 37 | ] 38 | ] 39 | ]; 40 | -------------------------------------------------------------------------------- /database/migrations/2019_04_08_085829_create_two_factor_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 17 | $table->integer('user_id')->unsigned()->index(); 18 | $table->string('identifier')->nullable(); 19 | $table->string('phone'); 20 | $table->string('dial_code'); 21 | $table->boolean('verified')->default(false); 22 | $table->timestamps(); 23 | 24 | $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::drop('two_factor'); 36 | } 37 | } -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME="Awes.io Demo" 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=homestead 13 | DB_USERNAME=homestead 14 | DB_PASSWORD=secret 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | 33 | AWS_ACCESS_KEY_ID= 34 | AWS_SECRET_ACCESS_KEY= 35 | AWS_DEFAULT_REGION=us-east-1 36 | AWS_BUCKET= 37 | 38 | PUSHER_APP_ID= 39 | PUSHER_APP_KEY= 40 | PUSHER_APP_SECRET= 41 | PUSHER_APP_CLUSTER=mt1 42 | 43 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 44 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 45 | 46 | # THIS IS DEMO KEY, for personal use only, it will become INVALID after short period of time 47 | # If you need FREE production key, please visit https://www.pkgkit.com/awes-io/create" 48 | PKGKIT_CDN_KEY=c3882a7e75f09a59b73780aee93d3fbc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017-present, Awescode GmbH (www.awescode.de) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /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' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Unit 14 | 15 | 16 | 17 | ./tests/Feature 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 38 | $this->middleware('signed')->only('verify'); 39 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | {{ _p('pages.login.headline', 'Welcome back!') }} 13 | @endsection 14 | 15 | @section('content') 16 | 21 | @php 22 | alert('', 'Please authenticate using email: "test@test.com" and password: "secret"', 'success') 23 | ->to('top-auth2-perm'); 24 | @endphp 25 | @notify(['name' => 'top-auth2-perm', 'stack' => false, 'config' => "{theme: 'inline', timeout: 0}"]) 26 | @include('indigo-layout::auth.login') 27 | @endsection 28 | 29 | @section('footer') 30 | {!! _p('pages.login.footer-headline', 'Don\'t have an account? :link_name ', ['link_url' => route('register'), 'link_name' => 'Sign Up']) !!} 31 | @endsection 32 | -------------------------------------------------------------------------------- /docker/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes auto; 3 | pid /run/nginx.pid; 4 | 5 | events { 6 | worker_connections 768; 7 | } 8 | 9 | http { 10 | 11 | # Basic Settings 12 | access_log /var/log/nginx/access.log; 13 | error_log /var/log/nginx/error.log debug; 14 | 15 | sendfile on; 16 | tcp_nopush on; 17 | tcp_nodelay on; 18 | keepalive_timeout 0; 19 | types_hash_max_size 2048; 20 | 21 | include /etc/nginx/mime.types; 22 | default_type application/octet-stream; 23 | 24 | 25 | # Virtual Host Configs 26 | 27 | # ------ 28 | 29 | server { 30 | listen 5080 default_server; 31 | server_name _; 32 | 33 | index index.php; 34 | root /app/public; 35 | 36 | location / { 37 | try_files $uri $uri/ /index.php?$query_string; 38 | } 39 | 40 | location ~ \.php$ { 41 | if_modified_since off; 42 | fastcgi_pass_header Last-Modified; 43 | include fastcgi_params; 44 | fastcgi_pass awes-demo-php:9000; 45 | fastcgi_index index.php; 46 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 47 | } 48 | } 49 | 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'ses' => [ 24 | 'key' => env('SES_KEY'), 25 | 'secret' => env('SES_SECRET'), 26 | 'region' => env('SES_REGION', 'us-east-1'), 27 | ], 28 | 29 | 'sparkpost' => [ 30 | 'secret' => env('SPARKPOST_SECRET'), 31 | ], 32 | 33 | 'stripe' => [ 34 | 'model' => App\User::class, 35 | 'key' => env('STRIPE_KEY'), 36 | 'secret' => env('STRIPE_SECRET'), 37 | 'webhook' => [ 38 | 'secret' => env('STRIPE_WEBHOOK_SECRET'), 39 | 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300), 40 | ], 41 | ], 42 | 43 | ]; 44 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | A similar PR may already be submitted! 2 | Please search among the [Pull request](../) before creating one. 3 | 4 | Thanks for submitting a pull request! Please provide enough information so that others can review your pull request: 5 | 6 | 7 | ## Summary 8 | 9 | 10 | 11 | This PR fixes/implements the following **bugs/features** 12 | 13 | * [ ] Bug 1 14 | * [ ] Bug 2 15 | * [ ] Feature 1 16 | * [ ] Feature 2 17 | * [ ] Breaking changes 18 | 19 | 20 | 21 | Explain the **motivation** for making this change. What existing problem does the pull request solve? 22 | 23 | 24 | 25 | ## Test plan (required) 26 | 27 | Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. 28 | 29 | 30 | 31 | ## Code formatting 32 | 33 | 34 | 35 | ## Closing issues 36 | 37 | 38 | Fixes # 39 | 40 | ## System GA 41 | [![Analytics](https://ga-beacon.appspot.com/UA-134431636-1/awes-io/awes-io)](https://github.com/awes-io/issues) 42 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Your issue may already be reported! 2 | Please search on the [issue tracker](../) before creating one. 3 | 4 | ## Expected Behavior 5 | 6 | 7 | 8 | ## Current Behavior 9 | 10 | 11 | 12 | ## Possible Solution 13 | 14 | 15 | 16 | ## Steps to Reproduce (for bugs) 17 | 18 | 19 | 1. 20 | 2. 21 | 3. 22 | 4. 23 | 24 | ## Context 25 | 26 | 27 | 28 | ## Your Environment 29 | 30 | * Version used: 31 | * Browser Name and version: 32 | * Operating System and version (desktop or mobile): 33 | * Link to your project: 34 | 35 | ## System GA 36 | [![Analytics](https://ga-beacon.appspot.com/UA-134431636-1/awes-io/awes-io)](https://github.com/awes-io/issues) 37 | -------------------------------------------------------------------------------- /app/Sections/Settings/Controllers/SettingController.php: -------------------------------------------------------------------------------- 1 | user(); 31 | 32 | // $user->update($request->all()); 33 | 34 | return notify( 35 | _p('pages.settings.notify.update', 'User data successfully updated'), 36 | $user 37 | ); 38 | } 39 | 40 | public function password(ChangePassword $request) 41 | { 42 | $user = $request->user(); 43 | 44 | // $user->update([ 45 | // 'password' => Hash::make($request->password), 46 | // ]); 47 | 48 | return notify( 49 | _p('pages.settings.notify.password', 'Password successfully updated'), 50 | $user 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug Report 3 | about: Tell us what happens instead of the expected behavior 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Your issue may already be reported! 11 | Please search on the [issue tracker](../) before creating one. 12 | 13 | ## Expected Behavior 14 | 15 | 16 | 17 | ## Current Behavior 18 | 19 | 20 | 21 | ## Possible Solution 22 | 23 | 24 | 25 | ## Steps to Reproduce (for bugs) 26 | 27 | 28 | 1. 29 | 2. 30 | 3. 31 | 4. 32 | 33 | ## Context 34 | 35 | 36 | 37 | ## Your Environment 38 | 39 | * Version used: 40 | * Browser Name and version: 41 | * Operating System and version (desktop or mobile): 42 | * Link to your project: 43 | 44 | ## System GA 45 | [![Analytics](https://ga-beacon.appspot.com/UA-134431636-1/awes-io/issues)](https://github.com/awes-io/issues) 46 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Sections/Leads/Controllers/LeadController.php: -------------------------------------------------------------------------------- 1 | leads = $leads; 18 | } 19 | 20 | public function index(Request $request) 21 | { 22 | return view('sections.leads.index', [ 23 | 'h1' => _p('pages.leads.h1', 'Leads'), 24 | 'leads' => $this->scope($request)->response()->getData() 25 | ]); 26 | } 27 | 28 | public function scope(Request $request) 29 | { 30 | return Lead::collection( 31 | $this->leads->scope($request)->withCount('sales') 32 | ->latest()->smartPaginate() 33 | ); 34 | } 35 | 36 | public function show(Request $request, $id) 37 | { 38 | $lead = $this->leads->findOrFail($id); 39 | 40 | return view('sections.leads.show', [ 41 | 'h1' => $lead->name, 42 | 'lead' => $lead 43 | ]); 44 | } 45 | 46 | public function store(StoreLead $request) 47 | { 48 | $this->leads->create($request->all()); 49 | 50 | return notify(_p('pages.leads.notify.store', 'New lead was successfully created')); 51 | } 52 | 53 | public function update(StoreLead $request, $id) 54 | { 55 | $this->leads->update($request->all(), $id); 56 | 57 | return notify( 58 | _p('pages.leads.notify.update', 'Lead was successfully updated'), 59 | new Lead($this->leads->find($id)) 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /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 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'encrypted' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /app/Sections/Analytics/Controllers/AnalyticController.php: -------------------------------------------------------------------------------- 1 | leads = $leads; 20 | } 21 | 22 | public function index(Request $request) 23 | { 24 | return view('sections.analytics.index', [ 25 | 'h1' => _p('pages.analytics.h1', 'Analytics'), 26 | 'leadsChartData' => $this->chart($request), 27 | ]); 28 | } 29 | 30 | public function chart(Request $request) 31 | { 32 | $builder = $this->leads; 33 | 34 | if ($request->is_premium) { 35 | $builder = $this->leads->where('is_premium', $request->is_premium); 36 | } 37 | 38 | $leadIds = $builder->get()->pluck('id')->toArray(); 39 | 40 | return Reporter::report('period') 41 | ->from('leads') 42 | ->whereIn('id', $leadIds) 43 | ->period($request->period ?: 60) 44 | ->colors(['#6896c1']) 45 | ->backgroundColors([config('indigo-layout.chart_colors.blue')]) 46 | ->datasetProperties([ 47 | ['pointRadius' => 0, 'lineTension' => 0], 48 | ])->build()->chart(); 49 | } 50 | 51 | public function scope(Request $request) 52 | { 53 | return Lead::collection( 54 | $this->leads->scope($request)->withCount('sales') 55 | ->latest()->smartPaginate() 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 39 | 40 | $this->mapWebRoutes(); 41 | 42 | // 43 | } 44 | 45 | /** 46 | * Define the "web" routes for the application. 47 | * 48 | * These routes all receive session state, CSRF protection, etc. 49 | * 50 | * @return void 51 | */ 52 | protected function mapWebRoutes() 53 | { 54 | Route::middleware('web') 55 | ->namespace($this->namespace) 56 | ->group(base_path('routes/web.php')); 57 | } 58 | 59 | /** 60 | * Define the "api" routes for the application. 61 | * 62 | * These routes are typically stateless. 63 | * 64 | * @return void 65 | */ 66 | protected function mapApiRoutes() 67 | { 68 | Route::prefix('api') 69 | ->middleware('api') 70 | ->namespace($this->namespace) 71 | ->group(base_path('routes/api.php')); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /resources/views/vendor/awesio-auth/twofactor/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('awesio-auth::layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
AWESIO Two Factor VERIFY
9 | 10 |
11 | 12 |
13 | @csrf 14 |
15 | 16 | 17 |
18 | 19 | 20 | @if ($errors->has('token')) 21 | 22 | {{ $errors->first('token') }} 23 | 24 | @endif 25 |
26 |
27 |
28 |
29 | 32 |
33 |
34 |
35 | 36 |
37 |
38 | 39 |
40 |
41 |
42 | @endsection 43 | -------------------------------------------------------------------------------- /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/vendor/awesio-auth/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('awesio-auth::layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Verify email by code') }}
9 | 10 |
11 |
12 | @csrf 13 | 14 |
15 | 16 | 17 |
18 | 19 | 20 | @if ($errors->has('code')) 21 | 22 | {{ $errors->first('code') }} 23 | 24 | @endif 25 |
26 |
27 | 28 |
29 |
30 | 33 |
34 |
35 |
36 |
37 |
38 | 39 |
40 |
41 |
42 | @endsection 43 | -------------------------------------------------------------------------------- /docker/php-7.2-fpm/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.2-fpm 2 | 3 | RUN apt-get update && apt-get install -y \ 4 | locales git unzip wget curl openssl ssh libz-dev libmemcached-dev \ 5 | libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev libxml2-dev \ 6 | mariadb-client 7 | 8 | RUN pecl install igbinary memcached redis xdebug \ 9 | && docker-php-ext-configure gd \ 10 | --with-freetype-dir=/usr/include/ \ 11 | --with-jpeg-dir=/usr/include/ \ 12 | --with-png-dir=/usr/include/ \ 13 | && docker-php-ext-install -j$(nproc) gd mbstring tokenizer opcache pdo pdo_mysql mysqli zip bcmath soap \ 14 | && docker-php-ext-enable memcached igbinary redis xdebug 15 | 16 | RUN dpkg-reconfigure locales \ 17 | && locale-gen C.UTF-8 \ 18 | && /usr/sbin/update-locale LANG=C.UTF-8 19 | 20 | # intl 21 | RUN apt-get update \ 22 | && apt-get install -y libicu-dev \ 23 | && docker-php-ext-configure intl \ 24 | && docker-php-ext-install intl 25 | 26 | RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && apt-get install -y nodejs 27 | 28 | RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen 29 | 30 | WORKDIR /app 31 | 32 | ENV LC_ALL C.UTF-8 33 | ENV LANG en_US.UTF-8 34 | ENV LANGUAGE en_US.UTF-8 35 | 36 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer 37 | 38 | RUN composer global require "laravel/envoy=~1.0" 39 | 40 | COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini 41 | 42 | RUN sed -i "s/xdebug.remote_autostart=0/xdebug.remote_autostart=1/" /usr/local/etc/php/conf.d/xdebug.ini && \ 43 | sed -i "s/xdebug.remote_enable=0/xdebug.remote_enable=1/" /usr/local/etc/php/conf.d/xdebug.ini && \ 44 | sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /usr/local/etc/php/conf.d/xdebug.ini 45 | 46 | # Clean up 47 | RUN apt-get clean && \ 48 | rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ 49 | rm /var/log/lastlog /var/log/faillog 50 | -------------------------------------------------------------------------------- /docker/supervisor/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | #-------------------------------------------------------------------------- 3 | # Image Setup 4 | #-------------------------------------------------------------------------- 5 | # 6 | 7 | FROM php:7.1-alpine 8 | 9 | LABEL maintainer="Mahmoud Zalt " 10 | 11 | RUN apk --update add wget \ 12 | curl \ 13 | git \ 14 | build-base \ 15 | libmemcached-dev \ 16 | libmcrypt-dev \ 17 | libxml2-dev \ 18 | zlib-dev \ 19 | autoconf \ 20 | cyrus-sasl-dev \ 21 | libgsasl-dev \ 22 | supervisor 23 | 24 | RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql mcrypt tokenizer xml 25 | 26 | RUN rm /var/cache/apk/* \ 27 | && mkdir -p /var/www 28 | 29 | # 30 | #-------------------------------------------------------------------------- 31 | # Optional Supervisord Configuration 32 | #-------------------------------------------------------------------------- 33 | # 34 | # Modify the ./supervisor.conf file to match your App's requirements. 35 | # Make sure you rebuild your container with every change. 36 | # 37 | 38 | #COPY supervisord.conf /etc/supervisord.conf 39 | 40 | ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"] 41 | 42 | # 43 | #-------------------------------------------------------------------------- 44 | # Optional Software's Installation 45 | #-------------------------------------------------------------------------- 46 | # 47 | # If you need to modify this image, feel free to do it right here. 48 | # 49 | # -- Your awesome modifications go here -- # 50 | 51 | # 52 | #-------------------------------------------------------------------------- 53 | # Check PHP version 54 | #-------------------------------------------------------------------------- 55 | # 56 | 57 | RUN php -v | head -n 1 | grep -q "PHP 7.1." 58 | 59 | # 60 | #-------------------------------------------------------------------------- 61 | # Final Touch 62 | #-------------------------------------------------------------------------- 63 | # 64 | 65 | WORKDIR /etc/supervisor/conf.d/ 66 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /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 | 'password' => ['required', 'string', 'min:6', 'confirmed'], 55 | ]); 56 | } 57 | 58 | /** 59 | * Create a new user instance after a valid registration. 60 | * 61 | * @param array $data 62 | * @return \App\User 63 | */ 64 | protected function create(array $data) 65 | { 66 | return User::create([ 67 | 'name' => $data['name'], 68 | 'email' => $data['email'], 69 | 'password' => Hash::make($data['password']), 70 | ]); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /resources/views/sections/leads/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('indigo-layout::main') 2 | 3 | @section('meta_title', _p('pages.leads.meta_title', 'Leads') . ' // ' . config('app.name')) 4 | @section('meta_description', _p('pages.leads.meta_description', 'Leads captured by your app')) 5 | 6 | @push('head') 7 | @include('integration.favicons') 8 | @include('integration.ga') 9 | @endpush 10 | 11 | @section('content') 12 | 13 | 27 | 28 | @endsection 29 | 30 | @section('modals') 31 | {{--Edit lead--}} 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | @endsection 40 | -------------------------------------------------------------------------------- /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", "sftp", "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 | 'url' => env('AWS_URL'), 65 | ], 66 | 67 | ], 68 | 69 | ]; 70 | -------------------------------------------------------------------------------- /config/awesio-auth.php: -------------------------------------------------------------------------------- 1 | [ 11 | // 'social', 'two_factor', 'email_verification' 12 | ], 13 | 14 | /* 15 | |-------------------------------------------------------------------------- 16 | | Socialite related parameters 17 | |-------------------------------------------------------------------------- 18 | */ 19 | 'socialite' => [ 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Available socialite services 24 | |-------------------------------------------------------------------------- 25 | */ 26 | 'services' => [ 27 | 'github' => [ 28 | 'name' => 'GitHub' 29 | ] 30 | ], 31 | 32 | /* 33 | |-------------------------------------------------------------------------- 34 | | Services credentials 35 | |-------------------------------------------------------------------------- 36 | */ 37 | 'github' => [ 38 | 'client_id' => env('GITHUB_CLIENT_ID'), 39 | 'client_secret' => env('GITHUB_CLIENT_SECRET'), 40 | 'redirect' => env('GITHUB_REDIRECT_URL'), 41 | ], 42 | 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | Two factor authentication parameters 48 | |-------------------------------------------------------------------------- 49 | */ 50 | 'two_factor' => [ 51 | 52 | 'authy' => [ 53 | 'secret' => env('AUTHY_SECRET') 54 | ] 55 | ], 56 | 57 | /* 58 | |-------------------------------------------------------------------------- 59 | | Redirects 60 | |-------------------------------------------------------------------------- 61 | */ 62 | 'redirects' => [ 63 | 'login' => '/dashboard', 64 | 'register' => '/dashboard', 65 | 'reset_password' => '/', 66 | 'social_login' => '/dashboard', 67 | 'twofactor_login' => '/dashboard', 68 | 'email_verification' => '/dashboard', 69 | 'forgot_password' => '/password/reset', 70 | 'twofactor' => '/', 71 | ], 72 | 73 | ]; 74 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | group(function () { 18 | 19 | Route::get('/', function () { 20 | return redirect()->route('dashboard.index', request()->all()); 21 | }); 22 | 23 | # Dashboard 24 | Route::prefix('dashboard')->as('dashboard.')->namespace('\App\Sections\Dashboard\Controllers')->group(function () { 25 | Route::get('/', 'DashboardController@index')->name('index'); 26 | Route::get('leads/chart', 'DashboardController@leadsChart')->name('leads.chart'); 27 | Route::get('sales/chart', 'DashboardController@salesChart')->name('sales.chart'); 28 | Route::get('leads/chart/doughnut', 'DashboardController@leadsDoughnutChart')->name('leads.doughnut'); 29 | }); 30 | 31 | # Leads 32 | Route::prefix('leads')->as('leads.')->namespace('\App\Sections\Leads\Controllers')->group(function () { 33 | Route::get('/', 'LeadController@index')->name('index'); 34 | Route::get('scope', 'LeadController@scope')->name('scope'); 35 | Route::get('{id}', 'LeadController@show')->name('show'); 36 | Route::post('/', 'LeadController@store')->name('store'); 37 | Route::patch('{id}', 'LeadController@update')->name('update'); 38 | }); 39 | 40 | # Analytics 41 | Route::prefix('analytics')->as('analytics.')->namespace('\App\Sections\Analytics\Controllers')->group(function () { 42 | Route::get('/', 'AnalyticController@index')->name('index'); 43 | Route::get('chart/leads', 'AnalyticController@chart')->name('leads.chart'); 44 | Route::get('scope', 'AnalyticController@scope')->name('scope'); 45 | }); 46 | 47 | // Settings 48 | Route::prefix('settings')->as('settings.')->namespace('\App\Sections\Settings\Controllers')->group(function () { 49 | Route::get('/', 'SettingController@index')->name('index'); 50 | Route::post('update', 'SettingController@update')->name('update'); 51 | Route::post('password', 'SettingController@password')->name('password'); 52 | }); 53 | 54 | }); 55 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3.3" 2 | services: 3 | 4 | # Redis 5 | awes-demo-redis: 6 | restart: always 7 | hostname: awes-demo-redis 8 | container_name: awes-demo-redis 9 | image: redis:4.0-alpine 10 | expose: 11 | - "6379" 12 | volumes: 13 | - ./docker/redis:/data 14 | networks: 15 | awes_demo: 16 | ipv4_address: 172.29.1.2 17 | 18 | # MYSQL 19 | awes-demo-mysql: 20 | restart: always 21 | hostname: awes-demo-mysql 22 | container_name: awes-demo-mysql 23 | image: mysql:5.7 24 | expose: 25 | - "3306" 26 | ports: 27 | - "5307:3306" 28 | - "53060:33060" 29 | command: "--innodb_use_native_aio=0" 30 | volumes: 31 | - ./docker/mysql:/var/lib/mysql 32 | environment: 33 | MYSQL_ROOT_PASSWORD: awes 34 | MYSQL_DATABASE: awes 35 | MYSQL_USER: awes 36 | MYSQL_PASSWORD: awes 37 | networks: 38 | awes_demo: 39 | ipv4_address: 172.29.1.3 40 | 41 | # PhpMyAdmin 42 | awes-demo-pma: 43 | restart: always 44 | hostname: awes-demo-pma 45 | container_name: awes-demo-pma 46 | image: phpmyadmin/phpmyadmin:4.6 47 | links: 48 | - awes-demo-mysql:db 49 | ports: 50 | - "5081:80" 51 | networks: 52 | awes_demo: 53 | ipv4_address: 172.29.1.4 54 | 55 | # PHP 56 | awes-demo-php: 57 | restart: always 58 | hostname: awes-demo-php 59 | container_name: awes-demo-php 60 | image: awescodehub/php-7.2-fpm 61 | expose: 62 | - "9000" 63 | volumes: 64 | - ./:/app 65 | links: 66 | - awes-demo-redis 67 | - awes-demo-mysql 68 | networks: 69 | awes_demo: 70 | ipv4_address: 172.29.1.5 71 | 72 | # supervisor 73 | # awes-demo-supervisor: 74 | # restart: always 75 | # hostname: awes-demo-supervisor 76 | # container_name: awes-demo-supervisor 77 | # build: ./docker/supervisor 78 | # image: awescrm:supervisor 79 | # expose: 80 | # - "9001" 81 | # volumes: 82 | # - ./docker/supervisor/supervisord.conf:/etc/supervisord.conf 83 | # - ./:/app 84 | # networks: 85 | # awes_demo: 86 | # ipv4_address: 172.29.1.6 87 | 88 | # NGINX 89 | awes-demo-nginx: 90 | restart: always 91 | hostname: awes-demo-nginx 92 | container_name: awes-demo-nginx 93 | image: nginx:1.13 94 | ports: 95 | - "5080:5080" 96 | - "5443:5443" 97 | volumes: 98 | - ./docker/nginx.conf:/etc/nginx/nginx.conf 99 | - ./:/app 100 | links: 101 | - awes-demo-pma 102 | - awes-demo-php 103 | networks: 104 | awes_demo: 105 | ipv4_address: 172.29.1.7 106 | 107 | networks: 108 | awes_demo: 109 | ipam: 110 | driver: default 111 | config: 112 | - subnet: 172.29.1.0/24 113 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 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' => env('SQS_KEY', 'your-public-key'), 54 | 'secret' => env('SQS_SECRET', 'your-secret-key'), 55 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 57 | 'region' => env('SQS_REGION', 'us-east-1'), 58 | ], 59 | 60 | 'redis' => [ 61 | 'driver' => 'redis', 62 | 'connection' => 'default', 63 | 'queue' => env('REDIS_QUEUE', 'default'), 64 | 'retry_after' => 90, 65 | 'block_for' => null, 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Failed Queue Jobs 73 | |-------------------------------------------------------------------------- 74 | | 75 | | These options configure the behavior of failed queue job logging so you 76 | | can control which database and table are used to store the jobs that 77 | | have failed. You may change them to any database / table you wish. 78 | | 79 | */ 80 | 81 | 'failed' => [ 82 | 'database' => env('DB_CONNECTION', 'mysql'), 83 | 'table' => 'failed_jobs', 84 | ], 85 | 86 | ]; 87 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Log Channels 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may configure the log channels for your application. Out of 27 | | the box, Laravel uses the Monolog PHP logging library. This gives 28 | | you a variety of powerful log handlers / formatters to utilize. 29 | | 30 | | Available Drivers: "single", "daily", "slack", "syslog", 31 | | "errorlog", "monolog", 32 | | "custom", "stack" 33 | | 34 | */ 35 | 36 | 'channels' => [ 37 | 'stack' => [ 38 | 'driver' => 'stack', 39 | 'channels' => ['daily'], 40 | 'ignore_exceptions' => false, 41 | ], 42 | 43 | 'single' => [ 44 | 'driver' => 'single', 45 | 'path' => storage_path('logs/laravel.log'), 46 | 'level' => 'debug', 47 | ], 48 | 49 | 'daily' => [ 50 | 'driver' => 'daily', 51 | 'path' => storage_path('logs/laravel.log'), 52 | 'level' => 'debug', 53 | 'days' => 14, 54 | ], 55 | 56 | 'slack' => [ 57 | 'driver' => 'slack', 58 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 59 | 'username' => 'Laravel Log', 60 | 'emoji' => ':boom:', 61 | 'level' => 'critical', 62 | ], 63 | 64 | 'papertrail' => [ 65 | 'driver' => 'monolog', 66 | 'level' => 'debug', 67 | 'handler' => SyslogUdpHandler::class, 68 | 'handler_with' => [ 69 | 'host' => env('PAPERTRAIL_URL'), 70 | 'port' => env('PAPERTRAIL_PORT'), 71 | ], 72 | ], 73 | 74 | 'stderr' => [ 75 | 'driver' => 'monolog', 76 | 'handler' => StreamHandler::class, 77 | 'formatter' => env('LOG_STDERR_FORMATTER'), 78 | 'with' => [ 79 | 'stream' => 'php://stderr', 80 | ], 81 | ], 82 | 83 | 'syslog' => [ 84 | 'driver' => 'syslog', 85 | 'level' => 'debug', 86 | ], 87 | 88 | 'errorlog' => [ 89 | 'driver' => 'errorlog', 90 | 'level' => 'debug', 91 | ], 92 | ], 93 | 94 | ]; 95 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Cache Stores 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may define all of the cache "stores" for your application as 28 | | well as their drivers. You may even define multiple stores for the 29 | | same cache driver to group types of items stored in your caches. 30 | | 31 | */ 32 | 33 | 'stores' => [ 34 | 35 | 'apc' => [ 36 | 'driver' => 'apc', 37 | ], 38 | 39 | 'array' => [ 40 | 'driver' => 'array', 41 | ], 42 | 43 | 'database' => [ 44 | 'driver' => 'database', 45 | 'table' => 'cache', 46 | 'connection' => null, 47 | ], 48 | 49 | 'file' => [ 50 | 'driver' => 'file', 51 | 'path' => storage_path('framework/cache/data'), 52 | ], 53 | 54 | 'memcached' => [ 55 | 'driver' => 'memcached', 56 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 57 | 'sasl' => [ 58 | env('MEMCACHED_USERNAME'), 59 | env('MEMCACHED_PASSWORD'), 60 | ], 61 | 'options' => [ 62 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 63 | ], 64 | 'servers' => [ 65 | [ 66 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 67 | 'port' => env('MEMCACHED_PORT', 11211), 68 | 'weight' => 100, 69 | ], 70 | ], 71 | ], 72 | 73 | 'redis' => [ 74 | 'driver' => 'redis', 75 | 'connection' => 'cache', 76 | ], 77 | 78 | ], 79 | 80 | /* 81 | |-------------------------------------------------------------------------- 82 | | Cache Key Prefix 83 | |-------------------------------------------------------------------------- 84 | | 85 | | When utilizing a RAM based store such as APC or Memcached, there might 86 | | be other applications utilizing the same cache. So, we'll specify a 87 | | value to get prefixed to all our keys so we can avoid collisions. 88 | | 89 | */ 90 | 91 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /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 | \App\Http\Middleware\NotifyAboutInstallation::class, 39 | ], 40 | 41 | 'api' => [ 42 | 'throttle:60,1', 43 | 'bindings', 44 | ], 45 | ]; 46 | 47 | /** 48 | * The application's route middleware. 49 | * 50 | * These middleware may be assigned to groups or used individually. 51 | * 52 | * @var array 53 | */ 54 | protected $routeMiddleware = [ 55 | 'auth' => \App\Http\Middleware\Authenticate::class, 56 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 57 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 58 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 59 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 60 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 61 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 62 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 63 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 64 | ]; 65 | 66 | /** 67 | * The priority-sorted list of middleware. 68 | * 69 | * This forces non-global middleware to always be in the given order. 70 | * 71 | * @var array 72 | */ 73 | protected $middlewarePriority = [ 74 | \Illuminate\Session\Middleware\StartSession::class, 75 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 76 | \App\Http\Middleware\Authenticate::class, 77 | \Illuminate\Session\Middleware\AuthenticateSession::class, 78 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 79 | \Illuminate\Auth\Middleware\Authorize::class, 80 | ]; 81 | } 82 | -------------------------------------------------------------------------------- /resources/views/sections/settings/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('indigo-layout::main') 2 | 3 | @section('meta_title', _p('pages.settings.meta_title', 'Settings') . ' // ' . config('app.name')) 4 | @section('meta_description', _p('pages.settings.meta_description', 'You can set up your profile, update settings and change private account data.')) 5 | 6 | @push('head') 7 | @include('integration.favicons') 8 | @include('integration.ga') 9 | @endpush 10 | 11 | @section('content') 12 |
13 |
14 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 |
24 |
25 |
26 | Awes.io 27 |
28 |
29 |
30 | 31 |
32 |
33 |
34 |
35 | 36 |
37 |
38 |
39 | @endsection 40 | 41 | @section('modals') 42 | {{--Modal windows--}} 43 | 44 | 47 | 48 | 49 | 50 | 51 | 52 | @endsection 53 | -------------------------------------------------------------------------------- /resources/views/vendor/awesio-auth/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('awesio-auth::layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
AWESIO {{ __('Reset Password') }}
9 | 10 |
11 |
12 | @csrf 13 | 14 | 15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 | @if ($errors->has('email')) 23 | 24 | {{ $errors->first('email') }} 25 | 26 | @endif 27 |
28 |
29 | 30 |
31 | 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 | 57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | @endsection 66 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at contact@awes.io. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | Awes.io logo 4 | 5 |

6 | 7 |

Awes.io Demo

8 | 9 |

This is a build with demo functionality for an overview of features. For convenience, we've deployed this demo to our server.

10 | 11 |

12 | 13 | License 14 | 15 | 16 | vue 17 | 18 | 19 | laravel 20 | 21 | 22 | Last commit 23 | 24 | 25 | Analytics 26 | 27 | 28 | Hosted by Package Kit 29 | 30 | 31 | Patreon 32 | 33 |

34 | 35 | ## Features 36 | 37 | * Free and Open-Source 38 | * 34 ready-to-use dedicated open-source packages 39 | * Awesome interface with a dark mode as an out-of-the-box feature 40 | * Easy to customize, based on Laravel & Vue.js 41 | * Well-designed for CRM, ERP, SaaS, Admin Dashboards, and Startups 42 | * Simple support of the applications 43 | 44 |

45 | 46 | Online Demo 47 | 48 |

49 | 50 | ## 51 | 52 |

53 | Awes.io 54 |

55 | 56 | ## Live version 57 | Follow to the [Demo](https://demo.awes.io/?utm_source=github&utm_medium=demo_link) link. 58 | 59 | ## 💡 Quick Start `via Docker` 60 | We recommend using [Docker](https://www.docker.com/). Inside, we've collected everything you need to work with this demo on your local machine. 61 | 62 | **Here is a short guide:** 63 | 1. Clone the repository: `git clone git@github.com:awes-io/demo.git` 64 | 2. Go to the directory: `cd ./demo` 65 | 3. Please run: `sh ./install.sh` 66 | 4. 👏 You are ready! [http://localhost:5080](http://localhost:5080) 67 | 68 | [Package Kit](https://www.pkgkit.com/?utm_source=github&utm_medium=demo_link) - private composer and npm repository. 69 | 70 | 71 | ## Alternate Manual installation 72 | For the fast start, we recommend using [Docker](#quick-start-via-docker). 73 | If for some reason it's not an option, please follow the guide: 74 | 75 | 1. Clone the repository: `git clone git@github.com:awes-io/demo.git` 76 | 2. Go to the directory: `cd ./demo` 77 | 3. Run `composer install` 78 | 79 | 80 | ## License 81 | The Laravel framework and Awes.io are open-source software licensed under the [MIT license](http://opensource.org/licenses/MIT). 82 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session", "token" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | 44 | 'api' => [ 45 | 'driver' => 'token', 46 | 'provider' => 'users', 47 | ], 48 | ], 49 | 50 | /* 51 | |-------------------------------------------------------------------------- 52 | | User Providers 53 | |-------------------------------------------------------------------------- 54 | | 55 | | All authentication drivers have a user provider. This defines how the 56 | | users are actually retrieved out of your database or other storage 57 | | mechanisms used by this application to persist your user's data. 58 | | 59 | | If you have multiple user tables or models you may configure multiple 60 | | sources which represent each model / table. These sources may then 61 | | be assigned to any extra authentication guards you have defined. 62 | | 63 | | Supported: "database", "eloquent" 64 | | 65 | */ 66 | 67 | 'providers' => [ 68 | 'users' => [ 69 | 'driver' => 'eloquent', 70 | 'model' => App\User::class, 71 | ], 72 | 73 | // 'users' => [ 74 | // 'driver' => 'database', 75 | // 'table' => 'users', 76 | // ], 77 | ], 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Resetting Passwords 82 | |-------------------------------------------------------------------------- 83 | | 84 | | You may specify multiple password reset configurations if you have more 85 | | than one user table or model in the application and you want to have 86 | | separate password reset settings based on the specific user types. 87 | | 88 | | The expire time is the number of minutes that the reset token should be 89 | | considered valid. This security feature keeps tokens short-lived so 90 | | they have less time to be guessed. You may change this as needed. 91 | | 92 | */ 93 | 94 | 'passwords' => [ 95 | 'users' => [ 96 | 'provider' => 'users', 97 | 'table' => 'password_resets', 98 | 'expire' => 60, 99 | ], 100 | ], 101 | 102 | ]; 103 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | reset="\033[0m" 6 | red="\033[31m" 7 | green="\033[32m" 8 | yellow="\033[33m" 9 | cyan="\033[36m" 10 | blue="\033[34m" 11 | white="\033[37m" 12 | 13 | printf "$reset\n\n\n" 14 | printf "$green /\ $reset\n" 15 | printf "$green / \__ _____ ___ (_) ___ $reset\n" 16 | printf "$green / /\ \ \ /\ / / _ \/ __| | |/ _ \ $reset\n" 17 | printf "$green / ____ \ V V / __/\__ \ | | (_) |$reset\n" 18 | printf "$green /_/ \_\_/\_/ \___||___/(_)|_|\___/ $reset\n" 19 | printf "$reset\n\n" 20 | 21 | printf "$reset\n\n\n" 22 | # if [ ! -e "${PWD}/.env" ]; then 23 | # if [ -z "$1" ]; then 24 | # printf "$white Please create a project on 📦 Package Kit [It's FREE]. Follow the link:$reset$blue https://www.pkgkit.com/awes-io/create $reset\n\n" 25 | # printf "$green> Enter your PKGKIT_CDN_KEY:$reset\n" 26 | # read KEY 27 | # else 28 | # KEY=$1 29 | # fi 30 | 31 | # if [ -z "$2" ]; then 32 | # printf "$green> Enter your API-TOKEN:$reset\n" 33 | # read TOKEN 34 | 35 | # else 36 | # TOKEN=$2 37 | # fi 38 | # fi 39 | 40 | printf "$green> Check chmod for storage directory$reset\n" 41 | chmod -R 777 ./storage 42 | 43 | printf "$green> Check bootstrap for storage directory$reset\n" 44 | chmod -R 777 ./bootstrap 45 | 46 | printf "$green> Shutdown all current docker demo containers$reset\n" 47 | docker-compose down -v 48 | 49 | printf "$green> Docker compose up$reset\n" 50 | docker-compose up -d --build 51 | 52 | printf "$green> Remove composer.lock file for getting a new updates$reset\n" 53 | rm -f ./composer.lock 54 | 55 | if [ ! -e "${PWD}/.env" ]; then 56 | printf "$green> Create .ENV file from local example$reset\n" 57 | cp .env.docker .env 58 | 59 | # printf "$green> Writing PackageKit api token and cdn key$reset\n" 60 | # docker exec -i awes-demo-php bash -c "composer global require awes-io/installer" 61 | # docker exec -i awes-demo-php bash -c "php ~/.composer/vendor/bin/awes-io token -t $TOKEN" 62 | # docker exec -i awes-demo-php bash -c "php ~/.composer/vendor/bin/awes-io key -k $KEY" 63 | fi 64 | 65 | printf "$green> Install all dependencies$reset\n" 66 | docker exec -i awes-demo-php bash -c "composer install" 67 | 68 | printf "$green> Service commands for Laravel: migration, key generate, cache clear etc $reset\n" 69 | docker exec -i awes-demo-php sh -c "php artisan key:generate && php artisan migrate:fresh --seed && php artisan cache:clear" 70 | 71 | # Nice output :) 72 | printf "$reset\n\n\n" 73 | printf "$green /\ $reset\n" 74 | printf "$green / \__ _____ ___ (_) ___ $reset\n" 75 | printf "$green / /\ \ \ /\ / / _ \/ __| | |/ _ \ $reset\n" 76 | printf "$green / ____ \ V V / __/\__ \ | | (_) |$reset\n" 77 | printf "$green /_/ \_\_/\_/ \___||___/(_)|_|\___/ $reset\n" 78 | printf "$reset\n\n" 79 | 80 | 81 | printf "$white 🙏 Please support us on Patreon:$reset$blue https://www.patreon.com/awesdotio$reset\n" 82 | printf "$white ⭐️ Give thanks star on Github:$reset$blue https://github.com/awes-io$reset\n" 83 | printf "$reset\n" 84 | 85 | printf "$cyan | ------------------------------------------------------------------------------ |$reset\n" 86 | printf "$cyan | Server started: http://localhost:5080 (Email: test@test.com Passwd: secret) |$reset\n" 87 | printf "$cyan | PhpMyAdmin: http://localhost:5081 (User: root Passwd: awes) |$reset\n" 88 | printf "$cyan | ------------------------------------------------------------------------------ |$reset\n" 89 | 90 | printf "$reset\n" 91 | 92 | read -p "Do you want to support us by giving Github star? [y/n]" -n 1 -r 93 | echo 94 | if [[ $REPLY =~ ^[Yy]$ ]]; then 95 | composer thanks 96 | else 97 | printf "$green Please consider to run 'composer thanks' later to thank us$reset\n" 98 | fi 99 | -------------------------------------------------------------------------------- /resources/views/sections/analytics/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('indigo-layout::main') 2 | 3 | @section('meta_title', _p('pages.leads.meta_title', 'Leads') . ' // ' . config('app.name')) 4 | @section('meta_description', _p('pages.leads.meta_description', 'Leads captured by your app')) 5 | 6 | @push('head') 7 | @include('integration.favicons') 8 | @include('integration.ga') 9 | @endpush 10 | 11 | @section('content') 12 | 22 |
23 |
24 |
25 |
26 |
27 | @filtergroup(['filter' => ['' => 'All', '4' => 'VIP', '3' => 'Priveleged', '2' => 'Premium', '1' => 'Standard'], 'variable' => 'is_premium', 'default' => '']) 28 |
29 |
30 | @filtergroup(['filter' => ['7' => 'Week', '30' => 'Month', '90' => '3 Months'], 'variable' => 'period', 'default' => '30']) 31 |
32 |
33 |
34 |
35 |
36 | 37 |
38 | @chart([ 39 | 'default_data' => $leadsChartData, 40 | 'parameters' => ['is_premium', 'period'], 41 | 'api_url' => route('analytics.leads.chart') 42 | ]) 43 | 44 |
45 |
46 |
47 | @table([ 48 | 'name' => 'leads_table', 49 | 'scope_api_url' => route('analytics.scope'), 50 | 'scope_api_params' => ['is_premium', 'period'] 51 | ]) 52 | 53 | 54 | 55 | 56 | 62 | 63 | 64 | @slot('mobile') 65 |

{{ _p('pages.leads.table.mobile.phone', 'Phone') }}: @{{ m.data.phone }}

66 | @endslot 67 | @endtable 68 |
69 |
70 |
71 |
72 | 73 | @endsection 74 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "awes-io/demo", 3 | "type": "project", 4 | "description": "Awes.io Demo system with some of the functionality for overview of features.", 5 | "keywords": [ 6 | "awes-io", 7 | "framework", 8 | "laravel", 9 | "vuejs", 10 | "vuejs2", 11 | "demo" 12 | ], 13 | "license": "MIT", 14 | "require": { 15 | "php": "^7.2", 16 | "awes-io/auth": "^1.1", 17 | "awes-io/base-js": "^1.8", 18 | "awes-io/chart-builder": "^1.0", 19 | "awes-io/context-menu": "^1.0", 20 | "awes-io/filter-wrapper": "^1.0", 21 | "awes-io/form-builder": "^1.3", 22 | "awes-io/indigo-layout": "^1.7", 23 | "awes-io/localization-helper": "^1.0", 24 | "awes-io/modal-window": "^1.0", 25 | "awes-io/navigation": "^0.0.2", 26 | "awes-io/reporter": "^0.0", 27 | "awes-io/repository": "^1.0", 28 | "awes-io/system-notify": "^1.1", 29 | "awes-io/table-builder": "^1.0", 30 | "awes-io/virtual-tour": "^1.1", 31 | "fideloper/proxy": "^4.0", 32 | "laravel/framework": "5.8.*", 33 | "laravel/tinker": "^1.0", 34 | "predis/predis": "^1.1" 35 | }, 36 | "require-dev": { 37 | "begimov/thanks": "^1.1", 38 | "beyondcode/laravel-dump-server": "^1.0", 39 | "filp/whoops": "^2.0", 40 | "fzaninotto/faker": "^1.4", 41 | "mockery/mockery": "^1.0", 42 | "nunomaduro/collision": "^2.0", 43 | "phpunit/phpunit": "^7.0" 44 | }, 45 | "repositories": [ 46 | { 47 | "type": "composer", 48 | "url": "https://repo.pkgkit.com", 49 | "options": { 50 | "http": { 51 | "header": [ 52 | "API-TOKEN: 43e31d6e2d0223970c0cc9f1064f767fc65da1b1c9cd608813c897836e7b8312", 53 | "THIS IS DEMO KEY, for personal use only, it will become INVALID after short period of time", 54 | "If you need FREE production key, please visit https://www.pkgkit.com/awes-io/create" 55 | ] 56 | } 57 | } 58 | } 59 | ], 60 | "config": { 61 | "optimize-autoloader": true, 62 | "preferred-install": "dist", 63 | "sort-packages": true 64 | }, 65 | "extra": { 66 | "laravel": { 67 | "dont-discover": [] 68 | }, 69 | "awes-io-thanks": { 70 | "awes-io/awes-io": "https://github.com/awes-io/awes-io.git", 71 | "awes-io/form-builder": "https://github.com/awes-io/form-builder.git", 72 | "awes-io/indigo-layout": "https://github.com/awes-io/indigo-layout.git", 73 | "awes-io/table-builder": "https://github.com/awes-io/table-builder.git", 74 | "awes-io/repository": "https://github.com/awes-io/repository.git", 75 | "awes-io/auth": "https://github.com/awes-io/auth.git" 76 | } 77 | }, 78 | "autoload": { 79 | "psr-4": { 80 | "App\\": "app/" 81 | }, 82 | "classmap": [ 83 | "database/seeds", 84 | "database/factories" 85 | ] 86 | }, 87 | "autoload-dev": { 88 | "psr-4": { 89 | "Tests\\": "tests/" 90 | } 91 | }, 92 | "minimum-stability": "dev", 93 | "prefer-stable": true, 94 | "scripts": { 95 | "post-autoload-dump": [ 96 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 97 | "@php artisan package:discover --ansi" 98 | ], 99 | "post-root-package-install": [ 100 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 101 | ], 102 | "post-create-project-cmd": [ 103 | "@php artisan key:generate --ansi" 104 | ] 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /public/svg/404.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/vendor/awesio-auth/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {{ config('app.name', 'Laravel') }} 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 74 | 75 | @auth 76 | @if (!auth()->user()->hasVerifiedEmail()) 77 |
78 | Before proceeding, please check your email for a verification code and link. 79 | If you did not receive the email click here to request another. 80 |
81 | @endif 82 | @endauth 83 | 84 |
85 | @yield('content') 86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /app/Sections/Dashboard/Controllers/DashboardController.php: -------------------------------------------------------------------------------- 1 | leads = $leads; 22 | 23 | $this->sales = $sales; 24 | } 25 | 26 | /** 27 | * Display a listing of the resource. 28 | * 29 | * @return \Illuminate\Http\Response 30 | */ 31 | public function index(Request $request) 32 | { 33 | $leads = $this->leads->withCount(['sales'])->latest()->take(10)->get(); 34 | 35 | $sales = $this->sales->with('lead')->latest()->take(10)->get(); 36 | 37 | return view('sections.dashboard.index', 38 | [ 39 | 'h1' => _p('pages.dashboard.h1', 'Dashboard'), 40 | 'leadsChartData' => $this->leadsChart($request), 41 | 'salesChartData' => $this->salesChart($request), 42 | 'leadsComparisonChartData' => $this->leadsComparisonChart($request), 43 | 'leads' => Lead::collection($leads), 44 | 'sales' => Sale::collection($sales) 45 | ] 46 | ); 47 | } 48 | 49 | public function leadsChart(Request $request) 50 | { 51 | $leadIds = $this->leads->get()->pluck('id')->toArray(); 52 | 53 | return $this->buildReport('leads', $leadIds, $request->leads_period ?: 30); 54 | } 55 | 56 | public function leadsDoughnutChart(Request $request) 57 | { 58 | $report = Reporter::report('period') 59 | ->from('leads') 60 | ->period(90) 61 | ->types(['doughnut']) 62 | ->groupBy('is_premium') 63 | ->limit(5) 64 | ->datasetProperties([ 65 | [ 66 | 'borderColor' => array_values(config('indigo-layout.chart_colors')), 67 | 'backgroundColor' => array_values(config('indigo-layout.chart_colors')) 68 | ] 69 | ])->build()->chart(); 70 | 71 | $report['labels'][0] = 'Standard'; 72 | $report['labels'][1] = 'Premium'; 73 | $report['labels'][2] = 'Priveleged'; 74 | $report['labels'][3] = 'VIP'; 75 | 76 | return $report; 77 | } 78 | 79 | protected function salesChart(Request $request) 80 | { 81 | $saleIds = $this->sales->get()->pluck('id')->toArray(); 82 | 83 | return $this->buildReport( 84 | 'sales', $saleIds, $request->sales_period ?: 60, 85 | ['#6896c1'], [config('indigo-layout.chart_colors.blue')] 86 | ); 87 | } 88 | 89 | protected function leadsComparisonChart(Request $request) 90 | { 91 | $report = Reporter::report('periodComparison') 92 | ->from('leads') 93 | ->period(35) 94 | ->colors(['#c6d8f6', '#90b2ec', '#4e7ccc', '#3b3da0', '#3f87c716']) 95 | ->backgroundColors(['#c6d8f6', '#90b2ec', '#4e7ccc', '#3b3da0', '#3f87c716']) 96 | ->stackBy(['is_premium' => [1,2,3,4]]) 97 | ->datasetProperties([ 98 | ['yAxisID' => 'y-axis-1', 'type' => 'bar'], 99 | ['yAxisID' => 'y-axis-1', 'type' => 'bar'], 100 | ['yAxisID' => 'y-axis-1', 'type' => 'bar'], 101 | ['yAxisID' => 'y-axis-1', 'type' => 'bar'], 102 | ['pointRadius' => 0, 'lineTension' => 0, 'yAxisID' => 'y-axis-2', 'type' => 'line'], 103 | ]) 104 | ->build()->chart(); 105 | 106 | $report['datasets'][0]['label'] = 'Standard'; 107 | $report['datasets'][1]['label'] = 'Premium'; 108 | $report['datasets'][2]['label'] = 'Priveleged'; 109 | $report['datasets'][3]['label'] = 'VIP'; 110 | 111 | return $report; 112 | } 113 | 114 | protected function buildReport($table, $ids, $period, $colors = [], $backgroundColors = []) 115 | { 116 | return Reporter::report('period') 117 | ->from($table) 118 | ->whereIn('id', $ids) 119 | ->period($period) 120 | ->colors($colors) 121 | ->backgroundColors($backgroundColors) 122 | ->datasetProperties([ 123 | ['pointRadius' => 0, 'lineTension' => 0], 124 | ]) 125 | ->build() 126 | ->chart(); 127 | } 128 | } 129 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Database Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here are each of the database connections setup for your application. 24 | | Of course, examples of configuring each database platform that is 25 | | supported by Laravel is shown below to make development simple. 26 | | 27 | | 28 | | All database work in Laravel is done through the PHP PDO facilities 29 | | so make sure you have the driver for your particular database of 30 | | choice installed on your machine before you begin development. 31 | | 32 | */ 33 | 34 | 'connections' => [ 35 | 36 | 'sqlite' => [ 37 | 'driver' => 'sqlite', 38 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 39 | 'prefix' => '', 40 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 41 | ], 42 | 43 | 'mysql' => [ 44 | 'driver' => 'mysql', 45 | 'host' => env('DB_HOST', '127.0.0.1'), 46 | 'port' => env('DB_PORT', '3306'), 47 | 'database' => env('DB_DATABASE', 'forge'), 48 | 'username' => env('DB_USERNAME', 'forge'), 49 | 'password' => env('DB_PASSWORD', ''), 50 | 'unix_socket' => env('DB_SOCKET', ''), 51 | 'charset' => 'utf8mb4', 52 | 'collation' => 'utf8mb4_unicode_ci', 53 | 'prefix' => '', 54 | 'prefix_indexes' => true, 55 | 'strict' => true, 56 | 'engine' => null, 57 | ], 58 | 59 | 'pgsql' => [ 60 | 'driver' => 'pgsql', 61 | 'host' => env('DB_HOST', '127.0.0.1'), 62 | 'port' => env('DB_PORT', '5432'), 63 | 'database' => env('DB_DATABASE', 'forge'), 64 | 'username' => env('DB_USERNAME', 'forge'), 65 | 'password' => env('DB_PASSWORD', ''), 66 | 'charset' => 'utf8', 67 | 'prefix' => '', 68 | 'prefix_indexes' => true, 69 | 'schema' => 'public', 70 | 'sslmode' => 'prefer', 71 | ], 72 | 73 | 'sqlsrv' => [ 74 | 'driver' => 'sqlsrv', 75 | 'host' => env('DB_HOST', 'localhost'), 76 | 'port' => env('DB_PORT', '1433'), 77 | 'database' => env('DB_DATABASE', 'forge'), 78 | 'username' => env('DB_USERNAME', 'forge'), 79 | 'password' => env('DB_PASSWORD', ''), 80 | 'charset' => 'utf8', 81 | 'prefix' => '', 82 | 'prefix_indexes' => true, 83 | ], 84 | 85 | ], 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Migration Repository Table 90 | |-------------------------------------------------------------------------- 91 | | 92 | | This table keeps track of all the migrations that have already run for 93 | | your application. Using this information, we can determine which of 94 | | the migrations on disk haven't actually been run in the database. 95 | | 96 | */ 97 | 98 | 'migrations' => 'migrations', 99 | 100 | /* 101 | |-------------------------------------------------------------------------- 102 | | Redis Databases 103 | |-------------------------------------------------------------------------- 104 | | 105 | | Redis is an open source, fast, and advanced key-value store that also 106 | | provides a richer body of commands than a typical key-value system 107 | | such as APC or Memcached. Laravel makes it easy to dig right in. 108 | | 109 | */ 110 | 111 | 'redis' => [ 112 | 113 | 'client' => 'predis', 114 | 115 | 'default' => [ 116 | 'host' => env('REDIS_HOST', '127.0.0.1'), 117 | 'password' => env('REDIS_PASSWORD', null), 118 | 'port' => env('REDIS_PORT', 6379), 119 | 'database' => env('REDIS_DB', 0), 120 | ], 121 | 122 | 'cache' => [ 123 | 'host' => env('REDIS_HOST', '127.0.0.1'), 124 | 'password' => env('REDIS_PASSWORD', null), 125 | 'port' => env('REDIS_PORT', 6379), 126 | 'database' => env('REDIS_CACHE_DB', 1), 127 | ], 128 | 129 | ], 130 | 131 | ]; 132 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_DRIVER', 'smtp'), 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | SMTP Host Address 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may provide the host address of the SMTP server used by your 27 | | applications. A default option is provided that is compatible with 28 | | the Mailgun mail service which will provide reliable deliveries. 29 | | 30 | */ 31 | 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 33 | 34 | /* 35 | |-------------------------------------------------------------------------- 36 | | SMTP Host Port 37 | |-------------------------------------------------------------------------- 38 | | 39 | | This is the SMTP port used by your application to deliver e-mails to 40 | | users of the application. Like the host we have set this value to 41 | | stay compatible with the Mailgun e-mail application by default. 42 | | 43 | */ 44 | 45 | 'port' => env('MAIL_PORT', 587), 46 | 47 | /* 48 | |-------------------------------------------------------------------------- 49 | | Global "From" Address 50 | |-------------------------------------------------------------------------- 51 | | 52 | | You may wish for all e-mails sent by your application to be sent from 53 | | the same address. Here, you may specify a name and address that is 54 | | used globally for all e-mails that are sent by your application. 55 | | 56 | */ 57 | 58 | 'from' => [ 59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 60 | 'name' => env('MAIL_FROM_NAME', 'Example'), 61 | ], 62 | 63 | /* 64 | |-------------------------------------------------------------------------- 65 | | E-Mail Encryption Protocol 66 | |-------------------------------------------------------------------------- 67 | | 68 | | Here you may specify the encryption protocol that should be used when 69 | | the application send e-mail messages. A sensible default using the 70 | | transport layer security protocol should provide great security. 71 | | 72 | */ 73 | 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | SMTP Server Username 79 | |-------------------------------------------------------------------------- 80 | | 81 | | If your SMTP server requires a username for authentication, you should 82 | | set it here. This will get used to authenticate with your server on 83 | | connection. You may also set the "password" value below this one. 84 | | 85 | */ 86 | 87 | 'username' => env('MAIL_USERNAME'), 88 | 89 | 'password' => env('MAIL_PASSWORD'), 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Sendmail System Path 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When using the "sendmail" driver to send e-mails, we will need to know 97 | | the path to where Sendmail lives on this server. A default path has 98 | | been provided here, which will work well on most of your systems. 99 | | 100 | */ 101 | 102 | 'sendmail' => '/usr/sbin/sendmail -bs', 103 | 104 | /* 105 | |-------------------------------------------------------------------------- 106 | | Markdown Mail Settings 107 | |-------------------------------------------------------------------------- 108 | | 109 | | If you are using Markdown based email rendering, you may configure your 110 | | theme and component paths here, allowing you to customize the design 111 | | of the emails. Or, you may simply stick with the Laravel defaults! 112 | | 113 | */ 114 | 115 | 'markdown' => [ 116 | 'theme' => 'default', 117 | 118 | 'paths' => [ 119 | resource_path('views/vendor/mail'), 120 | ], 121 | ], 122 | 123 | /* 124 | |-------------------------------------------------------------------------- 125 | | Log Channel 126 | |-------------------------------------------------------------------------- 127 | | 128 | | If you are using the "log" driver, you may specify the logging channel 129 | | if you prefer to keep mail messages separate from other log entries 130 | | for simpler reading. Otherwise, the default channel will be used. 131 | | 132 | */ 133 | 134 | 'log_channel' => env('MAIL_LOG_CHANNEL'), 135 | 136 | ]; 137 | -------------------------------------------------------------------------------- /public/svg/503.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/svg/403.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/views/vendor/awesio-auth/twofactor/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('awesio-auth::layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
AWESIO Two Factor
9 | 10 |
11 | @if (auth()->user()->isTwoFactorEnabled()) 12 | 13 |
Two factor auth is enabled
14 |
15 | @csrf 16 | @method('DELETE') 17 |
18 |
19 | 22 |
23 |
24 |
25 | 26 | @else 27 | @if (auth()->user()->isTwoFactorPending()) 28 | 29 |
30 | @csrf 31 |
32 | 33 | 34 |
35 | 36 | 37 | @if ($errors->has('token')) 38 | 39 | {{ $errors->first('token') }} 40 | 41 | @endif 42 |
43 |
44 |
45 |
46 | 49 |
50 |
51 |
52 | 53 |
54 | 55 |
56 | @csrf 57 | @method('DELETE') 58 |
59 |
60 | 63 |
64 |
65 |
66 | 67 | @else 68 | 69 |
70 | @csrf 71 | 72 | {{--
73 | 74 | 75 |
76 | 81 | 82 | @if ($errors->has('dial_code')) 83 | 84 | {{ $errors->first('dial_code') }} 85 | 86 | @endif 87 |
88 |
--}} 89 | 90 |
91 | 92 | 93 |
94 | 95 | 96 | @if ($errors->has('phone')) 97 | 98 | {{ $errors->first('phone') }} 99 | 100 | @endif 101 |
102 |
103 | 104 |
105 |
106 | 109 |
110 |
111 |
112 | 113 | @endif 114 | 115 | @endif 116 |
117 |
118 | 119 |
120 |
121 |
122 | @endsection 123 | -------------------------------------------------------------------------------- /resources/lang/en/pages.php: -------------------------------------------------------------------------------- 1 | [ 5 | "meta_title" => "Login", 6 | "headline" => "Welcome back!", 7 | "footer-headline" => "Don't have an account? :link_name ", 8 | "meta_description" => "Awes.IO Platform Demo" 9 | ], 10 | "register" => [ 11 | "meta_title" => "Create an Account", 12 | "meta_description" => "Awes.IO Platform Demo", 13 | "headline" => "Create Your Account", 14 | "footer-headline" => "Already have an account? :link_name " 15 | ], 16 | "dashboard" => [ 17 | "h1" => "Dashboard", 18 | "meta_title" => "Overview", 19 | "meta_description" => "Check your dashboard with all important metrics and values.", 20 | "banner" => [ 21 | "headline" => "🙌 One Platform for all Challenges", 22 | "description" => "This demo was built on Awes.io Platform in a day 😎.", 23 | "button_1" => [ 24 | "text" => "Try to Install" 25 | ], 26 | "button_2" => [ 27 | "text" => "Project Request", 28 | "title" => "We can help you build enterprise project based on Awes.io" 29 | ] 30 | ] 31 | ], 32 | "leads" => [ 33 | "h1" => "Leads", 34 | "meta_title" => "Leads", 35 | "meta_description" => "Leads captured by your app", 36 | "modal" => [ 37 | "new_lead" => [ 38 | "title" => "Add new lead", 39 | "send_btn" => "Add new lead", 40 | "name" => "Name", 41 | "email" => "Email", 42 | "phone" => "Phone number" 43 | ], 44 | "edit_lead" => [ 45 | "title" => "Edit lead", 46 | "name" => "Name", 47 | "email" => "Email", 48 | "phone" => "Phone number" 49 | ] 50 | ], 51 | "table" => [ 52 | "col" => [ 53 | "name" => "Name", 54 | "email" => "Email", 55 | "phone" => "Phone", 56 | "created" => "Created", 57 | "premium" => "Premium", 58 | "status" => "Status", 59 | "sales" => "Sales" 60 | ], 61 | "options" => [ 62 | "edit" => "Edit" 63 | ], 64 | "mobile" => [ 65 | "email" => "Email", 66 | "phone" => "Phone", 67 | "created" => "Created", 68 | "premium" => "Premium", 69 | "status" => "Status", 70 | "sales" => "Sales", 71 | "created_at" => "Created", 72 | "lead_phone" => "Phone" 73 | ], 74 | "loader" => "Loading....." 75 | ], 76 | "filter" => [ 77 | "sort_by" => "Sort by", 78 | "name" => "Lead name", 79 | "filter" => "Filter", 80 | "email" => "Email", 81 | "phone" => "Phone", 82 | "status" => "Status", 83 | "created_at" => "Created at", 84 | "sales" => "Sales" 85 | ], 86 | "notify" => [ 87 | "store" => "New lead was successfully created", 88 | "update" => "Lead was successfully updated" 89 | ] 90 | ], 91 | "settings" => [ 92 | "h1" => "Settings", 93 | "meta_title" => "Settings", 94 | "meta_description" => "You can set up your profile, update settings and change private account data.", 95 | "form" => [ 96 | "user" => [ 97 | "send_btn" => "Update", 98 | "email" => "Email", 99 | "name" => "Name", 100 | "company" => "Company", 101 | "website" => "Website", 102 | "phone" => "Phone" 103 | ] 104 | ], 105 | "change_photo" => "change photo", 106 | "modal" => [ 107 | "password" => [ 108 | "title" => "Change password", 109 | "send_btn" => "Save", 110 | "password_current" => "Current password", 111 | "password" => "Password", 112 | "password_confirmation" => "Confirm Password" 113 | ] 114 | ], 115 | "notify" => [ 116 | "update" => "User data successfully updated", 117 | "password" => "Password successfully updated" 118 | ] 119 | ], 120 | "lead" => [ 121 | "tab" => [ 122 | "info" => "Information" 123 | ], 124 | "info" => [ 125 | "name" => "Name", 126 | "edit" => "Edit", 127 | "email" => "Email", 128 | "phone" => "Phone" 129 | ] 130 | ], 131 | "sales" => [ 132 | "table" => [ 133 | "col" => [ 134 | "total" => "Total", 135 | "created" => "Created", 136 | "lead_phone" => "Phone", 137 | "lead_name" => "Name" 138 | ] 139 | ] 140 | ], 141 | "reset_password" => [ 142 | "meta_title" => "Reset password", 143 | "meta_description" => "Package Kit - Managing your web projects and packages", 144 | "headline_pre" => "Reset password", 145 | "headline_pre_subtitle" => "Enter your email address you used to register. Number of messages is limited.", 146 | "footer-headline" => ":link_name " 147 | ], 148 | "analytics" => [ 149 | "h1" => "Analytics" 150 | ], 151 | "tour" => [ 152 | "login" => [ 153 | "step_1" => "Build interactive business apps easy and fast. This demo was created in less than a day." 154 | ], 155 | "dashboard" => [ 156 | "step_1" => "Full-featured user interface is available out of box.", 157 | "step_2" => "As well as awesome dark mode. You can click on user avatar and switch UI theme later.", 158 | "step_3" => "Create any types of charts easily.", 159 | "step_4" => "With dynamic filtering, additional metrics and links.", 160 | "step_5" => "As well as powerful interactive tables." 161 | ], 162 | "leads" => [ 163 | "step_1" => "Full-featured and easy customizable filters and sorting capabilities.", 164 | "step_2" => "Which are fully integrated with our table-builder component and pagination." 165 | ], 166 | "analytics" => [ 167 | "step_1" => "You can filter information for both charts and tables.", 168 | "step_2" => "And customize their appearance and data representation." 169 | ] 170 | ], 171 | "alerts" => [ 172 | "install_demo" => "You can always install this demo locally, via Docker or quick installer. Install now" 173 | ] 174 | ]; 175 | -------------------------------------------------------------------------------- /resources/views/sections/dashboard/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('indigo-layout::main') 2 | 3 | @section('meta_title', _p('pages.dashboard.meta_title', 'Overview') . ' // ' . config('app.name')) 4 | @section('meta_description', _p('pages.dashboard.meta_description', 'Check your dashboard with all important metrics and values.')) 5 | 6 | @push('head') 7 | @include('integration.favicons') 8 | @include('integration.ga') 9 | @endpush 10 | 11 | @section('content') 12 | 34 | 35 |
36 |

{{ _p('pages.dashboard.banner.headline', '🙌 One Platform for all Challenges') }}

37 |

{{ _p('pages.dashboard.banner.description', 'This demo was built on Awes.io Platform in a day 😎.') }}

38 | {{ _p('pages.dashboard.banner.button_1.text', 'Try to Install') }} 39 | {{ _p('pages.dashboard.banner.button_2.text', 'Project Request') }} 40 |
41 | 42 |
43 |
44 | @chartBarLine([ 45 | 'default_data' => $leadsComparisonChartData 46 | ]) 47 |
48 |
49 | @cardchartline([ 50 | 'parameters' => ['leads_period'], 51 | 'api_url' => route('dashboard.leads.chart'), 52 | 'default_data' => $leadsChartData, 53 | 'read_more' => [ 54 | 'name' => 'Add new lead', 55 | 'url' => route('leads.index') . '#modal_form', 56 | ], 57 | 'filter' => [ 58 | 7 => 'Week', 59 | 30 => 'Month', 60 | 60 => '2 Months', 61 | ], 62 | 'filter_variable' => 'leads_period', 63 | 'filter_default' => 30, 64 | 'title' => 'Leads', 65 | 'label' => '+40%', 66 | 'value' => '500k', 67 | 'color' => 'violet' 68 | ]) 69 |
70 |
71 | @cardchartline([ 72 | 'parameters' => ['sales_period'], 73 | 'api_url' => route('dashboard.sales.chart'), 74 | 'default_data' => $salesChartData, 75 | 'filter' => [ 76 | 7 => 'Week', 77 | 30 => 'Month', 78 | 60 => '2 Months', 79 | ], 80 | 'filter_variable' => 'sales_period', 81 | 'filter_default' => 30, 82 | 'title' => 'Sales', 83 | 'label' => '+30%', 84 | 'value' => '100k', 85 | 'color' => 'blue' 86 | ]) 87 |
88 |
89 | 90 |
91 |
92 |
93 |

Latest leads

94 | @table([ 95 | 'row_url'=> route('leads.index') . '/{id}', 96 | 'pagination' => false, 97 | 'default_data' => $leads 98 | ]) 99 | 100 | 101 | 102 | 103 | 109 | 110 | @slot('mobile') 111 |

{{ _p('pages.leads.table.mobile.phone', 'Phone') }}: @{{ m.data.phone }}

112 |

{{ _p('pages.leads.table.mobile.sales', 'Sales') }}: @{{ m.data.sales_count }}

113 |

{{ _p('pages.leads.table.mobile.created_at', 'Created') }}: @{{ m.data.created }}

114 | @endslot 115 | @endtable 116 |
117 |
118 | 119 |
120 |
121 |

Latest sales

122 | @table([ 123 | 'pagination' => false, 124 | 'default_data' => $sales 125 | ]) 126 | 127 | 128 | 131 | 132 | @endtable 133 |
134 |
135 |
136 | 137 |
138 |
139 | @chart([ 140 | 'default_data' => $salesChartData, 141 | 'parameters' => ['period' => 30], 142 | 'api_url' => route('dashboard.leads.chart') 143 | ]) 144 |
145 |
146 | @cardchartdoughnut([ 147 | 'parameters' => ['period' => 30], 148 | 'api_url' => route('dashboard.leads.doughnut') 149 | ]) 150 |
151 |
152 | 153 | @endsection 154 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to immediately expire on the browser closing, set that option. 31 | | 32 | */ 33 | 34 | 'lifetime' => env('SESSION_LIFETIME', 120), 35 | 36 | 'expire_on_close' => false, 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Session Encryption 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This option allows you to easily specify that all of your session data 44 | | should be encrypted before it is stored. All encryption will be run 45 | | automatically by Laravel and you can use the Session like normal. 46 | | 47 | */ 48 | 49 | 'encrypt' => false, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Session File Location 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When using the native session driver, we need a location where session 57 | | files may be stored. A default has been set for you but a different 58 | | location may be specified. This is only needed for file sessions. 59 | | 60 | */ 61 | 62 | 'files' => storage_path('framework/sessions'), 63 | 64 | /* 65 | |-------------------------------------------------------------------------- 66 | | Session Database Connection 67 | |-------------------------------------------------------------------------- 68 | | 69 | | When using the "database" or "redis" session drivers, you may specify a 70 | | connection that should be used to manage these sessions. This should 71 | | correspond to a connection in your database configuration options. 72 | | 73 | */ 74 | 75 | 'connection' => env('SESSION_CONNECTION', null), 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Session Database Table 80 | |-------------------------------------------------------------------------- 81 | | 82 | | When using the "database" session driver, you may specify the table we 83 | | should use to manage the sessions. Of course, a sensible default is 84 | | provided for you; however, you are free to change this as needed. 85 | | 86 | */ 87 | 88 | 'table' => 'sessions', 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Session Cache Store 93 | |-------------------------------------------------------------------------- 94 | | 95 | | When using the "apc" or "memcached" session drivers, you may specify a 96 | | cache store that should be used for these sessions. This value must 97 | | correspond with one of the application's configured cache stores. 98 | | 99 | */ 100 | 101 | 'store' => env('SESSION_STORE', null), 102 | 103 | /* 104 | |-------------------------------------------------------------------------- 105 | | Session Sweeping Lottery 106 | |-------------------------------------------------------------------------- 107 | | 108 | | Some session drivers must manually sweep their storage location to get 109 | | rid of old sessions from storage. Here are the chances that it will 110 | | happen on a given request. By default, the odds are 2 out of 100. 111 | | 112 | */ 113 | 114 | 'lottery' => [2, 100], 115 | 116 | /* 117 | |-------------------------------------------------------------------------- 118 | | Session Cookie Name 119 | |-------------------------------------------------------------------------- 120 | | 121 | | Here you may change the name of the cookie used to identify a session 122 | | instance by ID. The name specified here will get used every time a 123 | | new session cookie is created by the framework for every driver. 124 | | 125 | */ 126 | 127 | 'cookie' => env( 128 | 'SESSION_COOKIE', 129 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 130 | ), 131 | 132 | /* 133 | |-------------------------------------------------------------------------- 134 | | Session Cookie Path 135 | |-------------------------------------------------------------------------- 136 | | 137 | | The session cookie path determines the path for which the cookie will 138 | | be regarded as available. Typically, this will be the root path of 139 | | your application but you are free to change this when necessary. 140 | | 141 | */ 142 | 143 | 'path' => '/', 144 | 145 | /* 146 | |-------------------------------------------------------------------------- 147 | | Session Cookie Domain 148 | |-------------------------------------------------------------------------- 149 | | 150 | | Here you may change the domain of the cookie used to identify a session 151 | | in your application. This will determine which domains the cookie is 152 | | available to in your application. A sensible default has been set. 153 | | 154 | */ 155 | 156 | 'domain' => env('SESSION_DOMAIN', null), 157 | 158 | /* 159 | |-------------------------------------------------------------------------- 160 | | HTTPS Only Cookies 161 | |-------------------------------------------------------------------------- 162 | | 163 | | By setting this option to true, session cookies will only be sent back 164 | | to the server if the browser has a HTTPS connection. This will keep 165 | | the cookie from being sent to you if it can not be done securely. 166 | | 167 | */ 168 | 169 | 'secure' => env('SESSION_SECURE_COOKIE', false), 170 | 171 | /* 172 | |-------------------------------------------------------------------------- 173 | | HTTP Access Only 174 | |-------------------------------------------------------------------------- 175 | | 176 | | Setting this value to true will prevent JavaScript from accessing the 177 | | value of the cookie and the cookie will only be accessible through 178 | | the HTTP protocol. You are free to modify this option if needed. 179 | | 180 | */ 181 | 182 | 'http_only' => true, 183 | 184 | /* 185 | |-------------------------------------------------------------------------- 186 | | Same-Site Cookies 187 | |-------------------------------------------------------------------------- 188 | | 189 | | This option determines how your cookies behave when cross-site requests 190 | | take place, and can be used to mitigate CSRF attacks. By default, we 191 | | do not enable this as other CSRF protection services are in place. 192 | | 193 | | Supported: "lax", "strict" 194 | | 195 | */ 196 | 197 | 'same_site' => null, 198 | 199 | ]; 200 | --------------------------------------------------------------------------------