├── storage ├── testing.sqlite ├── debugbar │ └── .gitignore ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── cache │ └── .gitignore │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── database ├── factories │ ├── .gitkeep │ ├── UserFactory.php │ └── CustomerFactory.php ├── .gitignore ├── seeds │ ├── DatabaseSeeder.php │ ├── CurrencyTableSeeder.php │ ├── UserSeeder.php │ └── SystemsTableSeeder.php └── migrations │ ├── 2019_08_01_122204_add_system_settings_rows.php │ ├── 2019_07_18_102109_create_sources_table.php │ ├── 2019_04_09_062659_create_favorites_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2019_04_02_070258_create_currencies_table.php │ ├── 2019_07_18_102040_create_statuses_table.php │ ├── 2019_03_08_075501_create_categorables_table.php │ ├── 2019_03_22_125825_add_role_type_to_roles_table.php │ ├── 2019_03_08_051449_create_categories_table.php │ ├── 2019_03_26_132246_create_notifications_table.php │ ├── 2019_03_06_071858_create_notes_table.php │ ├── 2019_02_06_113918_create_project_members_table.php │ ├── 2019_02_07_111900_create_project_task_members_table.php │ ├── 2019_04_24_044047_create_knowledge_bases_table.php │ ├── 2019_02_20_054054_create_project_milestones_table.php │ ├── 2019_07_22_120415_create_reminders_table.php │ ├── 2019_03_04_102320_create_activity_log_table.php │ ├── 2019_05_03_131933_create_invoice_schemes_table.php │ ├── 2019_05_13_072725_create_leaves_table.php │ ├── 2019_08_02_184839_create_ticket_comments_table.php │ ├── 2019_07_15_072105_create_media_table.php │ ├── 2019_02_23_053306_create_invoice_lines_table.php │ ├── 2019_02_27_100259_create_transaction_payment_lines_table.php │ ├── 2019_02_07_110329_create_project_tasks_table.php │ ├── 2019_03_20_112651_create_systems_table.php │ ├── 2019_02_06_055008_create_projects_table.php │ ├── 2019_08_02_184806_create_tickets_table.php │ ├── 2019_02_23_053221_create_transactions_table.php │ ├── 2014_10_12_000000_create_users_table.php │ └── 2019_02_01_054430_create_customers_table.php ├── public ├── img │ └── .gitignore ├── js │ └── .gitignore ├── robots.txt ├── storage ├── front │ └── fonts │ │ └── poppins │ │ ├── Poppins-Medium.ttf │ │ └── Poppins-Regular.ttf ├── vendor │ └── telescope │ │ └── mix-manifest.json ├── .htaccess ├── web.config └── index.php ├── resources ├── sass │ ├── admin.scss │ ├── front.scss │ ├── _variables.scss │ └── base.scss ├── views │ ├── email │ │ ├── email_body.blade.php │ │ └── exception.blade.php │ ├── install │ │ ├── partials │ │ │ └── nav.blade.php │ │ ├── success.blade.php │ │ └── index.blade.php │ ├── errors │ │ ├── 403.blade.php │ │ └── 404.blade.php │ ├── vendor │ │ └── notifications │ │ │ └── email.blade.php │ └── auth │ │ └── passwords │ │ └── email.blade.php ├── img │ └── welcome.jpg ├── js │ ├── common │ │ ├── Event.js │ │ ├── profile │ │ │ └── Profile.vue │ │ ├── tasks │ │ │ ├── Tasks.vue │ │ │ └── List.vue │ │ ├── tickets │ │ │ └── Ticket.vue │ │ ├── projects │ │ │ ├── Projects.vue │ │ │ └── components │ │ │ │ └── Avatar.vue │ │ └── Formatters.js │ ├── admin │ │ ├── leads │ │ │ └── Leads.vue │ │ ├── users │ │ │ └── Users.vue │ │ ├── backup │ │ │ └── Backup.vue │ │ ├── dashboard │ │ │ ├── Home.vue │ │ │ └── Tab.vue │ │ ├── leaves │ │ │ └── Leaves.vue │ │ ├── customers │ │ │ └── Customers.vue │ │ ├── expenses │ │ │ └── Expenses.vue │ │ ├── invoices │ │ │ └── Invoices.vue │ │ ├── popover │ │ │ └── Popover.vue │ │ ├── settings │ │ │ └── Settings.vue │ │ ├── knowledgebase │ │ │ └── KnowledgeBase.vue │ │ └── status │ │ │ └── StatusLabel.vue │ └── bootstrap.js └── lang │ ├── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php │ └── vendor │ └── backup │ ├── da │ └── notifications.php │ ├── hi │ └── notifications.php │ ├── ar │ └── notifications.php │ ├── tr │ └── notifications.php │ ├── fa │ └── notifications.php │ ├── en │ └── notifications.php │ ├── id │ └── notifications.php │ ├── uk │ └── notifications.php │ ├── de │ └── notifications.php │ └── it │ └── notifications.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── .htaccess ├── .env.travis ├── .prettierrc ├── .gitattributes ├── app ├── Http │ ├── Controllers │ │ ├── Admin │ │ │ ├── AdminController.php │ │ │ ├── CategoryController.php │ │ │ └── SourceController.php │ │ ├── Front │ │ │ └── HomeController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── RegisterController.php │ │ ├── ActivityController.php │ │ └── Client │ │ │ └── SinglePageController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── TrimStrings.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrustProxies.php │ │ ├── CheckClient.php │ │ ├── CheckEmployee.php │ │ └── RedirectIfAuthenticated.php │ ├── Util │ │ └── FilePathGenerator.php │ └── Kernel.php ├── Favorite.php ├── Reminder.php ├── ProjectMember.php ├── ProjectTaskMember.php ├── Currency.php ├── ProjectMilestone.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── AuthServiceProvider.php │ ├── TelescopeServiceProvider.php │ ├── AppServiceProvider.php │ └── RouteServiceProvider.php ├── InvoiceLine.php ├── TransactionPaymentLine.php ├── Components │ ├── Core │ │ └── Utilities │ │ │ └── MenuHelper.php │ └── User │ │ └── Repositories │ │ └── UserRepository.php ├── Source.php ├── Status.php ├── Mail │ └── ExceptionOccured.php ├── TicketComment.php ├── KnowledgeBase.php ├── Note.php ├── Console │ ├── Commands │ │ ├── DummyData.php │ │ └── SendReminder.php │ └── Kernel.php ├── InvoiceScheme.php ├── Media.php ├── Category.php ├── ProjectTask.php ├── Ticket.php ├── Notifications │ ├── LeaveApplied.php │ ├── ProjectCreatedNotification.php │ ├── TicketCreated.php │ ├── TaskCreatedNotification.php │ ├── LeaveResponded.php │ ├── InvoiceReminder.php │ ├── LeadAdded.php │ └── CustomerAdded.php ├── Leave.php └── System.php ├── .travis.yml ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ ├── ExampleTest.php │ └── CategoryTest.php └── CreatesApplication.php ├── .gitignore ├── config ├── author.php ├── hashing.php ├── view.php ├── services.php ├── activitylog.php ├── constants.php ├── broadcasting.php ├── logging.php └── filesystems.php ├── routes ├── channels.php ├── api.php └── console.php ├── .php_cs ├── server.php ├── .env.example ├── webpack.mix.js ├── phpunit.xml ├── package.json ├── artisan ├── composer.json └── readme.md /storage/testing.sqlite: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/factories/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /public/img/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /public/js/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /resources/sass/admin.scss: -------------------------------------------------------------------------------- 1 | @import "base"; -------------------------------------------------------------------------------- /resources/sass/front.scss: -------------------------------------------------------------------------------- 1 | @import "base"; -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/views/email/email_body.blade.php: -------------------------------------------------------------------------------- 1 | {!! $body !!} -------------------------------------------------------------------------------- /resources/views/email/exception.blade.php: -------------------------------------------------------------------------------- 1 | {!! $content !!} -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/storage: -------------------------------------------------------------------------------- 1 | /var/www/html/projects/pms-vue/storage/app/public -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /resources/img/welcome.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebFosters/project-camp/HEAD/resources/img/welcome.jpg -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | 2 | RewriteEngine On 3 | 4 | RewriteRule ^(.*)$ public/$1 [L] 5 | -------------------------------------------------------------------------------- /.env.travis: -------------------------------------------------------------------------------- 1 | APP_ENV=testing 2 | APP_KEY=SomeRandomString 3 | 4 | CACHE_DRIVER=array 5 | SESSION_DRIVER=array 6 | QUEUE_DRIVER=sync -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 100, 3 | "singleQuote": true, 4 | "tabWidth": 4, 5 | "trailingComma": "es5" 6 | } 7 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /public/front/fonts/poppins/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebFosters/project-camp/HEAD/public/front/fonts/poppins/Poppins-Medium.ttf -------------------------------------------------------------------------------- /public/front/fonts/poppins/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebFosters/project-camp/HEAD/public/front/fonts/poppins/Poppins-Regular.ttf -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/AdminController.php: -------------------------------------------------------------------------------- 1 | 'Ultimate Fosters', 5 | 'vendor_url' => 'http://ultimatefosters.com', 6 | 'email' => 'thewebfosters@gmail.com', 7 | 'app_version' => "0.10", 8 | 'lic1' => 'aHR0cHM6Ly9sLnVsdGltYXRlZm9zdGVycy5jb20vYXBpL3R5cGVfMQ==', 9 | 'pid' => 2, 10 | ]; 11 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | define(User::class, function (Faker $faker) { 7 | return [ 8 | 'name' => $faker->name, 9 | 'email' => $faker->email, 10 | 'password' => bcrypt('password'), 11 | ]; 12 | }); 13 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Brands 2 | $brand-primary: #3097D1; 3 | $brand-info: #8eb4cb; 4 | $brand-success: #2ab27b; 5 | $brand-warning: #cbb956; 6 | $brand-danger: #bf5329; 7 | 8 | // loader vars 9 | $loader-bg-transparency: 0.7; 10 | $loader-bg-color: black; 11 | 12 | // menu 13 | $menu-text-color: #fff; 14 | $menu-bg-active: #565555; 15 | -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /database/factories/CustomerFactory.php: -------------------------------------------------------------------------------- 1 | define(Customer::class, function (Faker $faker) { 7 | return [ 8 | 'company' => 'Test', 9 | 'currency_id' => 1, 10 | 'mobile' => '123-456-5555', 11 | 'email' => 'test@example.com', 12 | 'status_id' => 1, 13 | ]; 14 | }); 15 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | get('/'); 17 | 18 | $response->assertStatus(200); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /resources/js/admin/leads/Leads.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/users/Users.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/backup/Backup.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/dashboard/Home.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/leaves/Leaves.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/common/profile/Profile.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/customers/Customers.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/expenses/Expenses.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/invoices/Invoices.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/popover/Popover.vue: -------------------------------------------------------------------------------- 1 | 11 | 16 | -------------------------------------------------------------------------------- /resources/js/admin/settings/Settings.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /resources/js/admin/knowledgebase/KnowledgeBase.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 |
7 | 8 | 9 | 21 | -------------------------------------------------------------------------------- /resources/js/common/tickets/Ticket.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 21 | -------------------------------------------------------------------------------- /resources/js/common/projects/Projects.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 21 | -------------------------------------------------------------------------------- /app/Currency.php: -------------------------------------------------------------------------------- 1 | hasMany('App\Customer'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(PermissionsTableSeeder::class); 15 | $this->call(UserSeeder::class); 16 | $this->call(SystemsTableSeeder::class); 17 | $this->call(CurrencyTableSeeder::class); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/ProjectMilestone.php: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 11 | 12 |
-------------------------------------------------------------------------------- /app/InvoiceLine.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Transaction'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/TransactionPaymentLine.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Transaction'); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 21 | 22 | return $app; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /database/seeds/CurrencyTableSeeder.php: -------------------------------------------------------------------------------- 1 | '1','iso_name' => 'USD','symbol' => '$','created_at' => '2019-04-18 12:19:26','updated_at' => '2019-04-18 12:19:26'] 17 | ]; 18 | 19 | DB::table('currencies')->insert($currencies); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- 1 | notPath('vendor') 5 | ->notPath('bootstrap') 6 | ->notPath('storage') 7 | ->notPath('_ide_helper.php') 8 | ->notPath('app/Components') 9 | ->in(__DIR__) 10 | ->name('*.php') 11 | ->notName('*.blade.php'); 12 | 13 | return PhpCsFixer\Config::create() 14 | ->setRules([ 15 | '@PSR2' => true, 16 | 'array_syntax' => ['syntax' => 'short'], 17 | 'ordered_imports' => ['sortAlgorithm' => 'alpha'], 18 | 'no_unused_imports' => true, 19 | ]) 20 | ->setFinder($finder); 21 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 16 | ]; 17 | -------------------------------------------------------------------------------- /resources/js/common/tasks/List.vue: -------------------------------------------------------------------------------- 1 | 4 | 24 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckClient.php: -------------------------------------------------------------------------------- 1 | is_client) { 21 | abort(404); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckEmployee.php: -------------------------------------------------------------------------------- 1 | is_employee) { 21 | abort(404); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Redirect Trailing Slashes If Not A Folder... 9 | RewriteCond %{REQUEST_FILENAME} !-d 10 | RewriteCond %{REQUEST_URI} (.+)/$ 11 | RewriteRule ^ %1 [L,R=301] 12 | 13 | # Handle Front Controller... 14 | RewriteCond %{REQUEST_FILENAME} !-d 15 | RewriteCond %{REQUEST_FILENAME} !-f 16 | RewriteRule ^ index.php [L] 17 | 18 | # Handle Authorization Header 19 | RewriteCond %{HTTP:Authorization} . 20 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 21 | 22 | -------------------------------------------------------------------------------- /app/Http/Util/FilePathGenerator.php: -------------------------------------------------------------------------------- 1 | collection_name.'/'.$media->id).'/'; 13 | } 14 | 15 | public function getPathForConversions(Media $media) : string 16 | { 17 | return $this->getPath($media).'c/'; 18 | } 19 | 20 | public function getPathForResponsiveImages(Media $media): string 21 | { 22 | return $this->getPath($media).'/cri/'; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/Components/Core/Utilities/MenuHelper.php: -------------------------------------------------------------------------------- 1 | setUser($currentUser); 19 | $menuManager->addMenus($menus); 20 | 21 | $menus = $menuManager->getFiltered(); 22 | 23 | view()->share('nav', $menus); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/Source.php: -------------------------------------------------------------------------------- 1 | get() 20 | ->toArray(); 21 | 22 | if ($append_all) { 23 | $sources = array_merge([['id' => 0, 'name' => __('messages.all')]], $sources); 24 | } 25 | 26 | return $sources; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Status.php: -------------------------------------------------------------------------------- 1 | get() 20 | ->toArray(); 21 | 22 | if ($append_all) { 23 | $statuses = array_merge([['id' => 0, 'name' => __('messages.all')]], $statuses); 24 | } 25 | 26 | return $statuses; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/migrations/2019_08_01_122204_add_system_settings_rows.php: -------------------------------------------------------------------------------- 1 | 'first_day_of_week', 'value' => 0], 17 | ['key' => 'address_line_1', 'value' => ''], 18 | ['key' => 'address_line_2', 'value' => ''] 19 | ]); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | // 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'App\Listeners\EventListener', 18 | ], 19 | ]; 20 | 21 | /** 22 | * Register any events for your application. 23 | * 24 | * @return void 25 | */ 26 | public function boot() 27 | { 28 | parent::boot(); 29 | 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Mail/ExceptionOccured.php: -------------------------------------------------------------------------------- 1 | content = $content; 22 | } 23 | 24 | /** 25 | * Build the message. 26 | * 27 | * @return $this 28 | */ 29 | public function build() 30 | { 31 | return $this->view('email.exception') 32 | ->with('content', $this->content); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2019_07_18_102109_create_sources_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->timestamps(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('sources'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/seeds/UserSeeder.php: -------------------------------------------------------------------------------- 1 | 'Superadmin', 18 | 'email' => 'admin@example.com', 19 | 'password' => '123456', 20 | 'remember_token' => str_random(10), 21 | 'last_login' => \Carbon\Carbon::now(), 22 | 'active' => \Carbon\Carbon::now(), 23 | 'activation_key' => \Ramsey\Uuid\Uuid::uuid4()->toString(), 24 | ]); 25 | $AdminUser->assignRole('superadmin'); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=ProjectCamp 2 | APP_TITLE="ProjectCamp" 3 | APP_ENV=live 4 | APP_KEY=base64:TzMVyzW6ROOD4Zk22mZZGq4oqISupJ51b/m/c9Ntw6E= 5 | APP_DEBUG=true 6 | APP_LOG_LEVEL=debug 7 | APP_URL=http://localhost 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 | SESSION_DRIVER=file 19 | QUEUE_DRIVER=sync 20 | 21 | REDIS_HOST=127.0.0.1 22 | REDIS_PASSWORD=null 23 | REDIS_PORT=6379 24 | 25 | MAIL_DRIVER=smtp 26 | MAIL_HOST=smtp.mailtrap.io 27 | MAIL_PORT=2525 28 | MAIL_USERNAME=null 29 | MAIL_PASSWORD=null 30 | MAIL_ENCRYPTION=null 31 | 32 | PUSHER_APP_ID= 33 | PUSHER_APP_KEY= 34 | PUSHER_APP_SECRET= 35 | 36 | FILE_DOWNLOAD_SECRET=yourRandomStringHere 37 | 38 | ENABLE_CLIENT_SIGNUP= -------------------------------------------------------------------------------- /app/TicketComment.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\Ticket'); 30 | } 31 | 32 | /** 33 | * User who commented 34 | */ 35 | public function user() 36 | { 37 | return $this->belongsTo('App\Components\User\Models\User', 'user_id'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /resources/js/common/Formatters.js: -------------------------------------------------------------------------------- 1 | export default { 2 | install(Vue, options) { 3 | Vue.prototype.$appFormatters = { 4 | formatDate: function(dateString, format) { 5 | return moment(dateString).format(format ? format : 'MMMM DD, YYYY'); 6 | }, 7 | formatByteToMB(sizeInBytes) { 8 | return (sizeInBytes / (1024 * 1024)).toFixed(2); 9 | }, 10 | formatMbToBytes(mb) { 11 | return (mb * 1048576).toFixed(2); 12 | }, 13 | timeFromNow: function(dateTimeString) { 14 | return moment(dateTimeString).fromNow(); 15 | }, 16 | timeFromNowForUnixTimeStamp: function(dateTimeString) { 17 | return moment.unix(dateTimeString).fromNow(); 18 | }, 19 | }; 20 | }, 21 | }; 22 | -------------------------------------------------------------------------------- /database/migrations/2019_04_09_062659_create_favorites_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('user_id'); 19 | $table->morphs('favoritable'); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('favorites'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_04_02_070258_create_currencies_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('iso_name', 100); 19 | $table->string('symbol', 25); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('currencies'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/KnowledgeBase.php: -------------------------------------------------------------------------------- 1 | morphToMany('App\Category', 'categorable'); 26 | } 27 | 28 | /** 29 | * User who created the knowledge base 30 | */ 31 | public function user() 32 | { 33 | return $this->belongsTo('App\Components\User\Models\User', 'created_by'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /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/migrations/2019_07_18_102040_create_statuses_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 19 | $table->string('name'); 20 | $table->timestamps(); 21 | }); 22 | 23 | Status::create(['name' => 'Customer']); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('statuses'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 24 | if (Auth::user()->is_employee) { 25 | return redirect('/admin'); 26 | } else { 27 | return redirect('/client'); 28 | } 29 | } 30 | 31 | return $next($request); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2019_03_08_075501_create_categorables_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('category_id'); 19 | $table->integer('categorable_id'); 20 | $table->string('categorable_type'); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('categorables'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2019_03_22_125825_add_role_type_to_roles_table.php: -------------------------------------------------------------------------------- 1 | enum('type', ['employee', 'contact', 'project']) 18 | ->after('guard_name') 19 | ->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::table('roles', function (Blueprint $table) { 31 | // 32 | }); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2019_03_08_051449_create_categories_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('type'); 20 | $table->integer('project_id')->nullable(); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('categories'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /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 | //implicitly grant "Admin" role all permissions. 29 | Gate::before(function ($user, $ability) { 30 | if ($user->hasRole('superadmin')) { 31 | return true; 32 | } 33 | }); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Note.php: -------------------------------------------------------------------------------- 1 | morphTo(); 29 | } 30 | 31 | /** 32 | * User who created the note 33 | */ 34 | public function user() 35 | { 36 | return $this->belongsTo('App\Components\User\Models\User', 'created_by'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2019_03_26_132246_create_notifications_table.php: -------------------------------------------------------------------------------- 1 | uuid('id')->primary(); 18 | $table->string('type'); 19 | $table->morphs('notifiable'); 20 | $table->text('data'); 21 | $table->timestamp('read_at')->nullable(); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('notifications'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /resources/views/install/success.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.front', ['no_header' => 1]) 2 | @section('title', 'PMS Installation') 3 | 4 | @section('content') 5 |
6 |
7 |
8 |

{{ config('app.name', 'PMS') }} Installation

9 |
10 | 11 |
12 | 13 |
14 |

{{ config('app.name', 'PMS') }}

15 | 16 |

Great!, Your application is succesfully installed.

17 |


Username: admin@admin.com
Password: 123456

18 |


Login link here

19 |
20 | 21 |
22 |
23 |
24 |
25 | @endsection -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2019_03_06_071858_create_notes_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('notable_id'); 19 | $table->string('notable_type'); 20 | $table->text('heading')->nullable(); 21 | $table->text('description')->nullable(); 22 | $table->integer('created_by')->index(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('notes'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2019_02_06_113918_create_project_members_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | 19 | $table->unsignedInteger('project_id'); 20 | $table->foreign('project_id') 21 | ->references('id')->on('projects') 22 | ->onDelete('cascade'); 23 | 24 | $table->integer('user_id')->index(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('project_members'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Console/Commands/DummyData.php: -------------------------------------------------------------------------------- 1 | 'DummyDataSeeder']); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/InvoiceScheme.php: -------------------------------------------------------------------------------- 1 | orderBy('name') 25 | ->get() 26 | ->toArray(); 27 | 28 | return $invoice_schemes; 29 | } 30 | 31 | /** 32 | * retrieve the default invoice scheme 33 | * 34 | * @return $invoice_scheme 35 | */ 36 | public static function getDefault() 37 | { 38 | $invoice_scheme = InvoiceScheme::where('is_default', 1) 39 | ->first(); 40 | 41 | return $invoice_scheme; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /database/migrations/2019_02_07_111900_create_project_task_members_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | 19 | $table->unsignedInteger('project_task_id'); 20 | $table->foreign('project_task_id') 21 | ->references('id')->on('project_tasks') 22 | ->onDelete('cascade'); 23 | 24 | $table->integer('user_id')->index(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('project_task_members'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /database/migrations/2019_04_24_044047_create_knowledge_bases_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('title'); 19 | $table->text('description')->nullable(); 20 | $table->boolean('show_to_employee')->default(0); 21 | $table->boolean('is_active')->default(0); 22 | $table->integer('created_by')->index(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('knowledge_bases'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/Feature/CategoryTest.php: -------------------------------------------------------------------------------- 1 | seed('PermissionsTableSeeder'); 18 | $this->seed('SystemsTableSeeder'); 19 | $this->seed('CurrencyTableSeeder'); 20 | } 21 | 22 | /** @test */ 23 | public function adminsCanCreateCategories() 24 | { 25 | $admin = factory(User::class)->create()->assignRole('superadmin'); 26 | 27 | $this->actingAs($admin) 28 | ->json('POST', route('admincategories.store'), [ 29 | 'name' => 'Finance', 30 | 'type' => 'projects', 31 | ]); 32 | 33 | $this->assertDatabaseHas('categories', [ 34 | 'name' => 'Finance', 35 | 'type' => 'projects', 36 | ]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/Media.php: -------------------------------------------------------------------------------- 1 | getFullUrl(); 26 | } 27 | 28 | /** 29 | * Get download link. 30 | */ 31 | public function getDownloadUrlAttribute() 32 | { 33 | return action('MediaController@show', $this->id); 34 | } 35 | 36 | /** 37 | * Get display name for the media. 38 | */ 39 | public function getDisplayNameAttribute() 40 | { 41 | $data = explode('_', $this->file_name); 42 | 43 | return $data[1]; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => realpath(storage_path('framework/views')), 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | ], 21 | 22 | 'ses' => [ 23 | 'key' => env('SES_KEY'), 24 | 'secret' => env('SES_SECRET'), 25 | 'region' => 'us-east-1', 26 | ], 27 | 28 | 'sparkpost' => [ 29 | 'secret' => env('SPARKPOST_SECRET'), 30 | ], 31 | 32 | 'stripe' => [ 33 | 'model' => App\User::class, 34 | 'key' => env('STRIPE_KEY'), 35 | 'secret' => env('STRIPE_SECRET'), 36 | ], 37 | 38 | ]; 39 | -------------------------------------------------------------------------------- /database/migrations/2019_02_20_054054_create_project_milestones_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | 17 | $table->unsignedInteger('project_id'); 18 | $table->foreign('project_id') 19 | ->references('id')->on('projects') 20 | ->onDelete('cascade'); 21 | 22 | $table->string('name'); 23 | $table->dateTime('due_date'); 24 | $table->text('description')->nullable(); 25 | $table->integer('created_by')->index(); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('project_milestones'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | let mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.webpackConfig({ 15 | module: { 16 | rules: [ 17 | { 18 | test: /\.styl$/, 19 | loader: ['style-loader', 'css-loader', 'stylus-loader'] 20 | } 21 | ] 22 | } 23 | }); 24 | 25 | mix.copyDirectory('resources/img', 'public/img') 26 | .js('resources/js/admin/admin.js', 'public/js') 27 | .js('resources/js/client/client.js', 'public/js') 28 | .sass('resources/sass/admin.scss', 'public/css') 29 | .sass('resources/sass/front.scss', 'public/css') 30 | .extract(['vue','vue-router','moment','axios','lodash','dropzone']); 31 | 32 | if (mix.inProduction()) { 33 | mix.version(); 34 | } 35 | -------------------------------------------------------------------------------- /database/migrations/2019_07_22_120415_create_reminders_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->integer('remindable_id'); 19 | $table->string('remindable_type'); 20 | $table->string('remind_for'); 21 | $table->dateTime('remind_on'); 22 | $table->integer('remind_to'); 23 | $table->boolean('send_email'); 24 | $table->text('notes')->nullable(); 25 | $table->integer('created_by')->index()->nullable(); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('reminders'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /database/migrations/2019_03_04_102320_create_activity_log_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | $table->string('log_name')->nullable(); 17 | $table->text('description'); 18 | $table->integer('subject_id')->nullable(); 19 | $table->string('subject_type')->nullable(); 20 | $table->integer('causer_id')->nullable(); 21 | $table->string('causer_type')->nullable(); 22 | $table->text('properties')->nullable(); 23 | $table->timestamps(); 24 | $table->index('log_name'); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists(config('activitylog.table_name')); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2019_05_03_131933_create_invoice_schemes_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->enum('scheme_type', ['custom', 'year']); 20 | $table->string('prefix')->nullable(); 21 | $table->integer('start_number')->default(0); 22 | $table->integer('invoice_count')->default(0); 23 | $table->integer('total_digits')->nullable(); 24 | $table->boolean('is_default')->deafault(0); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('invoice_schemes'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2019_05_13_072725_create_leaves_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | 19 | $table->unsignedInteger('user_id'); 20 | $table->foreign('user_id') 21 | ->references('id')->on('users') 22 | ->onDelete('cascade'); 23 | 24 | $table->dateTime('start_date'); 25 | $table->dateTime('end_date'); 26 | $table->enum('status', ['pending', 'cancelled', 'approved'])->default('pending'); 27 | $table->text('reason'); 28 | $table->timestamps(); 29 | }); 30 | } 31 | 32 | /** 33 | * Reverse the migrations. 34 | * 35 | * @return void 36 | */ 37 | public function down() 38 | { 39 | Schema::dropIfExists('leaves'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /database/migrations/2019_08_02_184839_create_ticket_comments_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | 19 | $table->unsignedInteger('ticket_id'); 20 | $table->foreign('ticket_id') 21 | ->references('id')->on('tickets') 22 | ->onDelete('cascade'); 23 | 24 | $table->longText('comment'); 25 | 26 | $table->unsignedInteger('user_id'); 27 | $table->foreign('user_id') 28 | ->references('id')->on('users'); 29 | 30 | $table->timestamps(); 31 | }); 32 | } 33 | 34 | /** 35 | * Reverse the migrations. 36 | * 37 | * @return void 38 | */ 39 | public function down() 40 | { 41 | Schema::dropIfExists('ticket_comments'); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | ./tests/Feature 14 | 15 | 16 | 17 | ./tests/Unit 18 | 19 | 20 | 21 | 22 | ./app 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /database/migrations/2019_07_15_072105_create_media_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | $table->morphs('model'); 17 | $table->string('collection_name'); 18 | $table->string('name'); 19 | $table->string('file_name'); 20 | $table->string('mime_type')->nullable(); 21 | $table->string('disk'); 22 | $table->unsignedInteger('size'); 23 | $table->json('manipulations'); 24 | $table->json('custom_properties'); 25 | $table->json('responsive_images'); 26 | $table->unsignedInteger('order_column')->nullable(); 27 | $table->nullableTimestamps(); 28 | }); 29 | } 30 | 31 | /** 32 | * Reverse the migrations. 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('media'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /resources/js/admin/status/StatusLabel.vue: -------------------------------------------------------------------------------- 1 | 6 | 35 | -------------------------------------------------------------------------------- /database/migrations/2019_02_23_053306_create_invoice_lines_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | 17 | $table->unsignedInteger('transaction_id'); 18 | $table->foreign('transaction_id') 19 | ->references('id')->on('transactions') 20 | ->onDelete('cascade'); 21 | 22 | $table->string('short_description'); 23 | $table->text('long_description')->nullable(); 24 | $table->decimal('rate', 20, 4); 25 | $table->decimal('quantity', 20, 4); 26 | $table->string('unit'); 27 | $table->integer('tax'); 28 | $table->decimal('total', 20, 4); 29 | $table->timestamps(); 30 | }); 31 | } 32 | 33 | /** 34 | * Reverse the migrations. 35 | */ 36 | public function down() 37 | { 38 | Schema::dropIfExists('invoice_lines'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Category.php: -------------------------------------------------------------------------------- 1 | morphedByMany('App\Project', 'categorable'); 22 | } 23 | 24 | /** 25 | * retrieve category for dropdown 26 | * 27 | * @return $categories 28 | */ 29 | public static function forDropdown($type, $project_id = null, $append_all = false) 30 | { 31 | $query = Category::where('type', $type) 32 | ->select('id', 'name', 'project_id') 33 | ->orderBy('name'); 34 | 35 | if (!empty($project_id)) { 36 | $query->where('project_id', $project_id); 37 | } 38 | 39 | $categories = $query->get() 40 | ->toArray(); 41 | 42 | if ($append_all) { 43 | $categories = array_merge([['id' => 0, 'name' => __('messages.all')]], $categories); 44 | } 45 | 46 | return $categories; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire') 28 | // ->hourly(); 29 | 30 | if (config('app.env') == 'demo') { 31 | $schedule->command('pms:DummyData') 32 | ->twiceDaily(1, 13); 33 | } 34 | 35 | $schedule->command('pms:SendReminder') 36 | ->everyFiveMinutes(); 37 | } 38 | 39 | /** 40 | * Register the commands for the application. 41 | * 42 | * @return void 43 | */ 44 | protected function commands() 45 | { 46 | $this->load(__DIR__.'/Commands'); 47 | 48 | require base_path('routes/console.php'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /database/migrations/2019_02_27_100259_create_transaction_payment_lines_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | 19 | $table->unsignedInteger('transaction_id'); 20 | $table->foreign('transaction_id') 21 | ->references('id')->on('transactions') 22 | ->onDelete('cascade'); 23 | 24 | $table->decimal('amount', 20, 4); 25 | $table->decimal('conversion_rate'); 26 | $table->date('paid_on'); 27 | $table->text('payment_details')->nullable(); 28 | $table->integer('created_by')->index(); 29 | $table->timestamps(); 30 | }); 31 | } 32 | 33 | /** 34 | * Reverse the migrations. 35 | * 36 | * @return void 37 | */ 38 | public function down() 39 | { 40 | Schema::dropIfExists('transaction_payment_lines'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /resources/views/errors/403.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Resource Not Found | {{config('app.name')}} 9 | 10 | 11 | 12 | 13 | 14 |

403

15 |

Resource Forbidden.

16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Resource Not Found | {{config('app.name')}} 9 | 10 | 11 | 12 | 13 | 14 |

404

15 |

Page not found.

16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /app/Providers/TelescopeServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->environment('local')) { 23 | return true; 24 | } 25 | 26 | return $entry->isReportableException() || 27 | $entry->isFailedJob() || 28 | $entry->isScheduledTask() || 29 | $entry->hasMonitoredTag(); 30 | }); 31 | } 32 | 33 | /** 34 | * Register the Telescope gate. 35 | * 36 | * This gate determines who can access Telescope in non-local environments. 37 | * 38 | * @return void 39 | */ 40 | protected function gate() 41 | { 42 | Gate::define('viewTelescope', function ($user) { 43 | return in_array($user->email, [ 44 | 'admin@gmail.com' 45 | ]); 46 | }); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/Components/User/Repositories/UserRepository.php: -------------------------------------------------------------------------------- 1 | get($params); 24 | } 25 | 26 | /** 27 | * delete a user by id 28 | * 29 | * @param int $id 30 | * @return bool 31 | * @throws \Exception 32 | */ 33 | public function delete(int $id) 34 | { 35 | $ids = explode(',', $id); 36 | 37 | foreach ($ids as $id) { 38 | /** @var User $User */ 39 | $User = $this->model->find($id); 40 | 41 | if (!$User) { 42 | return false; 43 | }; 44 | 45 | $User->syncRoles([]); 46 | $User->syncPermissions([]); 47 | $User->delete(); 48 | } 49 | 50 | return true; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /resources/js/admin/dashboard/Tab.vue: -------------------------------------------------------------------------------- 1 | 28 | 48 | -------------------------------------------------------------------------------- /resources/views/vendor/notifications/email.blade.php: -------------------------------------------------------------------------------- 1 | @component('mail::message') 2 | {{-- Greeting --}} 3 | @if (! empty($greeting)) 4 | # {{ $greeting }} 5 | @else 6 | @if ($level === 'error') 7 | # @lang('Whoops!') 8 | @else 9 | # @lang('Hello!') 10 | @endif 11 | @endif 12 | 13 | {{-- Intro Lines --}} 14 | @foreach ($introLines as $line) 15 | {!! $line !!} 16 | 17 | @endforeach 18 | 19 | {{-- Action Button --}} 20 | @isset($actionText) 21 | 31 | @component('mail::button', ['url' => $actionUrl, 'color' => $color]) 32 | {{ $actionText }} 33 | @endcomponent 34 | @endisset 35 | 36 | {{-- Outro Lines --}} 37 | @foreach ($outroLines as $line) 38 | {{ $line }} 39 | 40 | @endforeach 41 | 42 | {{-- Salutation --}} 43 | @if (! empty($salutation)) 44 | {{ $salutation }} 45 | @else 46 | @lang('Regards'),
{{ config('app.name') }} 47 | @endif 48 | 49 | {{-- Subcopy --}} 50 | @isset($actionText) 51 | @component('mail::subcopy') 52 | @lang( 53 | "If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n". 54 | 'into your web browser: [:actionURL](:actionURL)', 55 | [ 56 | 'actionText' => $actionText, 57 | 'actionURL' => $actionUrl, 58 | ] 59 | ) 60 | @endcomponent 61 | @endisset 62 | @endcomponent 63 | -------------------------------------------------------------------------------- /config/activitylog.php: -------------------------------------------------------------------------------- 1 | env('ACTIVITY_LOGGER_ENABLED', true), 9 | 10 | /* 11 | * When the clean-command is executed, all recording activities older than 12 | * the number of days specified here will be deleted. 13 | */ 14 | 'delete_records_older_than_days' => 365, 15 | 16 | /* 17 | * If no log name is passed to the activity() helper 18 | * we use this default log name. 19 | */ 20 | 'default_log_name' => 'default', 21 | 22 | /* 23 | * You can specify an auth driver here that gets user models. 24 | * If this is null we'll use the default Laravel auth driver. 25 | */ 26 | 'default_auth_driver' => null, 27 | 28 | /* 29 | * If set to true, the subject returns soft deleted models. 30 | */ 31 | 'subject_returns_soft_deleted_models' => false, 32 | 33 | /* 34 | * This model will be used to log activity. 35 | * It should be implements the Spatie\Activitylog\Contracts\Activity interface 36 | * and extend Illuminate\Database\Eloquent\Model. 37 | */ 38 | 'activity_model' => \Spatie\Activitylog\Models\Activity::class, 39 | 40 | /* 41 | * This is the name of the table that will be created by the migration and 42 | * used by the Activity model shipped with this package. 43 | */ 44 | 'table_name' => 'activity_log', 45 | ]; 46 | -------------------------------------------------------------------------------- /config/constants.php: -------------------------------------------------------------------------------- 1 | '#', 12 | 'notification_refresh_timeout' => 30000, 13 | 'upload_file_max_size' => 10, // 10MB 14 | 'langs' => [ 15 | 'en' => ['full_name' => 'English', 'short_name' => 'English'], 16 | 'es' => ['full_name' => 'Spanish - Español', 'short_name' => 'Spanish'], 17 | // 'sq' => ['full_name' => 'Albanian - Shqip', 'short_name' => 'Albanian'], 18 | // 'hi' => ['full_name' => 'Hindi - हिंदी', 'short_name' => 'Hindi'], 19 | // 'nl' => ['full_name' => 'Dutch', 'short_name' => 'Dutch'], 20 | 'fr' => ['full_name' => 'French - Français', 'short_name' => 'French'], 21 | // 'de' => ['full_name' => 'German - Deutsch', 'short_name' => 'German'], 22 | 'ar' => ['full_name' => 'Arabic - العَرَبِيَّة', 'short_name' => 'Arabic'], 23 | // 'tr' => ['full_name' => 'Turkish - Türkçe', 'short_name' => 'Turkish'], 24 | ], 25 | 'langs_rtl' => ['ar'], 26 | 'non_utf8_languages' => ['ar', 'hi'], 27 | 'expense_prefix' => 'expense#', 28 | 'temp_upload_folder' => 'temp', 29 | 'enable_client_signup' => !empty(env('ENABLE_CLIENT_SIGNUP')) ? true : false, 30 | 'ticket_prefix' => 'ticket#', 31 | ]; 32 | -------------------------------------------------------------------------------- /app/ProjectTask.php: -------------------------------------------------------------------------------- 1 | belongsToMany('App\Components\User\Models\User', 'project_task_members', 'project_task_id', 'user_id'); 28 | } 29 | 30 | /** 31 | * Return the creator of task. 32 | */ 33 | public function taskCreator() 34 | { 35 | return $this->belongsTo('App\Components\User\Models\User', 'created_by'); 36 | } 37 | 38 | /** 39 | * Return the prokect that belongs to task. 40 | */ 41 | public function project() 42 | { 43 | return $this->belongsTo('App\Project', 'project_id'); 44 | } 45 | 46 | /** 47 | * Get all of the task's notes. 48 | */ 49 | public function notes() 50 | { 51 | return $this->morphMany('App\Note', 'notable'); 52 | } 53 | 54 | /** 55 | * Get all of the category for the task. 56 | */ 57 | public function category() 58 | { 59 | return $this->belongsTo('App\Category'); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /app/Ticket.php: -------------------------------------------------------------------------------- 1 | 'new', 24 | 'value' => __('messages.new') 25 | ], 26 | [ 27 | 'key' => 'open', 28 | 'value' => __('messages.open') 29 | ], 30 | [ 31 | 'key' => 'closed', 32 | 'value' => __('messages.closed') 33 | ] 34 | ]; 35 | 36 | if ($append_all) { 37 | $statuses = array_merge([['key' => '', 'value' => __('messages.all')]], $statuses); 38 | } 39 | 40 | return $statuses; 41 | } 42 | 43 | public function ticketType() 44 | { 45 | return $this->hasOne('App\Category', 'id', 'category_id'); 46 | } 47 | 48 | /** 49 | * User who last updated 50 | */ 51 | public function lastUpdateBy() 52 | { 53 | return $this->belongsTo('App\Components\User\Models\User', 'updated_by'); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /database/migrations/2019_02_07_110329_create_project_tasks_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | 17 | $table->unsignedInteger('project_id'); 18 | $table->foreign('project_id') 19 | ->references('id')->on('projects') 20 | ->onDelete('cascade'); 21 | 22 | $table->string('task_id')->unique()->nullable(); 23 | $table->integer('category_id')->nullable(); 24 | $table->string('subject'); 25 | $table->decimal('hourly_rate', 8, 2)->default(0); 26 | $table->dateTime('start_date')->nullable(); 27 | $table->dateTime('due_date')->nullable(); 28 | $table->enum('priority', ['low', 'medium', 'high', 'urgent'])->default('low'); 29 | $table->text('description')->nullable(); 30 | $table->integer('created_by')->index(); 31 | $table->boolean('show_to_customer'); 32 | $table->boolean('is_completed')->default(0); 33 | $table->timestamps(); 34 | }); 35 | } 36 | 37 | /** 38 | * Reverse the migrations. 39 | */ 40 | public function down() 41 | { 42 | Schema::dropIfExists('project_tasks'); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/Notifications/LeaveApplied.php: -------------------------------------------------------------------------------- 1 | leave = $leave; 23 | } 24 | 25 | /** 26 | * Get the notification's delivery channels. 27 | * 28 | * @param mixed $notifiable 29 | * @return array 30 | */ 31 | public function via($notifiable) 32 | { 33 | return ['database']; 34 | } 35 | 36 | /** 37 | * Get the mail representation of the notification. 38 | * 39 | * @param mixed $notifiable 40 | * @return \Illuminate\Notifications\Messages\MailMessage 41 | */ 42 | public function toMail($notifiable) 43 | { 44 | return (new MailMessage) 45 | ->line('The introduction to the notification.') 46 | ->action('Notification Action', url('/')) 47 | ->line('Thank you for using our application!'); 48 | } 49 | 50 | /** 51 | * Get the array representation of the notification. 52 | * 53 | * @param mixed $notifiable 54 | * @return array 55 | */ 56 | public function toArray($notifiable) 57 | { 58 | return [ 59 | 'user_id' => $this->leave['user_id'], 60 | 'leave_id' => $this->leave['id'] 61 | ]; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Notifications/ProjectCreatedNotification.php: -------------------------------------------------------------------------------- 1 | project_id = $project_id; 23 | } 24 | 25 | /** 26 | * Get the notification's delivery channels. 27 | * 28 | * @param mixed $notifiable 29 | * @return array 30 | */ 31 | public function via($notifiable) 32 | { 33 | return ['database']; 34 | } 35 | 36 | /** 37 | * Get the mail representation of the notification. 38 | * 39 | * @param mixed $notifiable 40 | * @return \Illuminate\Notifications\Messages\MailMessage 41 | */ 42 | public function toMail($notifiable) 43 | { 44 | return (new MailMessage) 45 | ->line('The introduction to the notification.') 46 | ->action('Notification Action', url('/')) 47 | ->line('Thank you for using our application!'); 48 | } 49 | 50 | /** 51 | * Get the array representation of the notification. 52 | * 53 | * @param mixed $notifiable 54 | * @return array 55 | */ 56 | public function toDatabase($notifiable) 57 | { 58 | return [ 59 | 'project_id' => $this->project_id, 60 | ]; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /app/Notifications/TicketCreated.php: -------------------------------------------------------------------------------- 1 | ticket = $data; 23 | } 24 | 25 | /** 26 | * Get the notification's delivery channels. 27 | * 28 | * @param mixed $notifiable 29 | * @return array 30 | */ 31 | public function via($notifiable) 32 | { 33 | return ['database']; 34 | } 35 | 36 | /** 37 | * Get the mail representation of the notification. 38 | * 39 | * @param mixed $notifiable 40 | * @return \Illuminate\Notifications\Messages\MailMessage 41 | */ 42 | public function toMail($notifiable) 43 | { 44 | return (new MailMessage) 45 | ->line('The introduction to the notification.') 46 | ->action('Notification Action', url('/')) 47 | ->line('Thank you for using our application!'); 48 | } 49 | 50 | /** 51 | * Get the array representation of the notification. 52 | * 53 | * @param mixed $notifiable 54 | * @return array 55 | */ 56 | public function toArray($notifiable) 57 | { 58 | return [ 59 | 'created_by' => $this->ticket['created_by'], 60 | 'ticket_id' => $this->ticket['id'] 61 | ]; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Notifications/TaskCreatedNotification.php: -------------------------------------------------------------------------------- 1 | task = $task; 23 | } 24 | 25 | /** 26 | * Get the notification's delivery channels. 27 | * 28 | * @param mixed $notifiable 29 | * @return array 30 | */ 31 | public function via($notifiable) 32 | { 33 | return ['database']; 34 | } 35 | 36 | /** 37 | * Get the mail representation of the notification. 38 | * 39 | * @param mixed $notifiable 40 | * @return \Illuminate\Notifications\Messages\MailMessage 41 | */ 42 | public function toMail($notifiable) 43 | { 44 | return (new MailMessage) 45 | ->line('The introduction to the notification.') 46 | ->action('Notification Action', url('/')) 47 | ->line('Thank you for using our application!'); 48 | } 49 | 50 | /** 51 | * Get the array representation of the notification. 52 | * 53 | * @param mixed $notifiable 54 | * @return array 55 | */ 56 | public function toDatabase($notifiable) 57 | { 58 | return [ 59 | 'project_id' => $this->task['project_id'], 60 | 'task_id' => $this->task['task_id'], 61 | ]; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Notifications/LeaveResponded.php: -------------------------------------------------------------------------------- 1 | leave = $leave; 24 | $this->admin = $admin; 25 | } 26 | 27 | /** 28 | * Get the notification's delivery channels. 29 | * 30 | * @param mixed $notifiable 31 | * @return array 32 | */ 33 | public function via($notifiable) 34 | { 35 | return ['database']; 36 | } 37 | 38 | /** 39 | * Get the mail representation of the notification. 40 | * 41 | * @param mixed $notifiable 42 | * @return \Illuminate\Notifications\Messages\MailMessage 43 | */ 44 | public function toMail($notifiable) 45 | { 46 | return (new MailMessage) 47 | ->line('The introduction to the notification.') 48 | ->action('Notification Action', url('/')) 49 | ->line('Thank you for using our application!'); 50 | } 51 | 52 | /** 53 | * Get the array representation of the notification. 54 | * 55 | * @param mixed $notifiable 56 | * @return array 57 | */ 58 | public function toArray($notifiable) 59 | { 60 | return [ 61 | 'leave_id' => $this->leave['id'], 62 | 'admin' => $this->admin['id'], 63 | ]; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /database/migrations/2019_03_20_112651_create_systems_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 19 | $table->string('key'); 20 | $table->text('value')->nullable(); 21 | }); 22 | 23 | $data = [ 24 | 'invoice_reminder_email_subject' => 'Invoice Reminder from {business_name}', 25 | 'invoice_reminder_email_body' => '

Dear {customer_name},

26 | 27 |

Your invoice number for {project_name} is {invoice_number} and due date for this is {due_date}
28 | 29 |

Thank you for the business.

30 |


31 |

Regards,


32 |

{business_name}

', 33 | 'invoice_reminder_attachment' => 1 34 | ]; 35 | 36 | $invoice_reminder_template = json_encode($data); 37 | 38 | System::updateOrCreate(['key' => 'invoice_reminder_template'], ['value' => $invoice_reminder_template]); 39 | } 40 | 41 | /** 42 | * Reverse the migrations. 43 | * 44 | * @return void 45 | */ 46 | public function down() 47 | { 48 | Schema::dropIfExists('systems'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | // 40 | ], 41 | ], 42 | 43 | 'redis' => [ 44 | 'driver' => 'redis', 45 | 'connection' => 'default', 46 | ], 47 | 48 | 'log' => [ 49 | 'driver' => 'log', 50 | ], 51 | 52 | 'null' => [ 53 | 'driver' => 'null', 54 | ], 55 | 56 | ], 57 | 58 | ]; 59 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | with('logo', $logo); 29 | } 30 | ); 31 | 32 | //Share logo to login form 33 | View::composer( 34 | '*', 35 | function ($view) { 36 | $system_settings = System::getSystemSettings(['favicon', 'first_day_of_week']); 37 | 38 | $favicon = !empty($system_settings['favicon']) ? $system_settings['favicon'] : null; 39 | $view->with('favicon', $favicon); 40 | 41 | $first_day_of_week = isset($system_settings['first_day_of_week']) ? $system_settings['first_day_of_week'] : 0; 42 | $view->with('first_day_of_week', $first_day_of_week); 43 | } 44 | ); 45 | } 46 | 47 | /** 48 | * Register any application services. 49 | * 50 | * @return void 51 | */ 52 | public function register() 53 | { 54 | if ($this->app->environment() !== 'production') { 55 | $this->app->register(IdeHelperServiceProvider::class); 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /resources/js/common/projects/components/Avatar.vue: -------------------------------------------------------------------------------- 1 | 37 | 42 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 11 | "format": "prettier --write 'resources/**/*.{css,js,vue}'" 12 | }, 13 | "devDependencies": { 14 | "axios": "^0.17.1", 15 | "bootstrap-sass": "^3.3.7", 16 | "cross-env": "^5.0.1", 17 | "jquery": "^3.1.1", 18 | "laravel-mix": "^2.1", 19 | "lodash": "^4.17.4", 20 | "prettier": "1.16.4", 21 | "stylus": "^0.54.5", 22 | "stylus-loader": "^3.0.2", 23 | "vue": "^2.6" 24 | }, 25 | "dependencies": { 26 | "accounting": "^0.4.1", 27 | "chart.js": "^2.7.3", 28 | "date-fns": "^1.30.1", 29 | "dropzone": "^5.2.0", 30 | "moment": "^2.21.0", 31 | "moment-timezone": "^0.5.23", 32 | "vee-validate": "^2.1.7", 33 | "vue-flatpickr-component": "^8.1.2", 34 | "vue-quill-editor": "^3.0.6", 35 | "vue-router": "^3.0.1", 36 | "vue-spinner": "^1.0.2", 37 | "vuetify": "^1.5.*", 38 | "vuetify-daterange-picker": "^3.1.6", 39 | "vuex": "^3.0.1" 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.front') 2 | 3 | @section('content') 4 |
5 |
6 | 37 |
38 |
39 | @endsection 40 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/migrations/2019_02_06_055008_create_projects_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | 20 | $table->unsignedInteger('customer_id')->nullable(); 21 | $table->foreign('customer_id') 22 | ->references('id')->on('customers') 23 | ->onDelete('cascade'); 24 | 25 | $table->enum('billing_type', ['fixed_rate', 'project_hours', 'task_hours'])->default('fixed_rate'); 26 | $table->decimal('total_rate', 8, 2)->default(0); 27 | $table->decimal('price_per_hours', 8, 2)->default(0); 28 | $table->decimal('estimated_hours', 8, 2)->default(0); 29 | $table->decimal('estimated_cost', 8, 2)->default(0); 30 | $table->enum('status', ['not_started', 'in_progress', 'on_hold', 'cancelled', 'completed']); 31 | $table->integer('lead_id'); 32 | $table->dateTime('start_date'); 33 | $table->dateTime('end_date')->nullable(); 34 | $table->text('description')->nullable(); 35 | $table->integer('created_by')->index(); 36 | $table->boolean('favorite')->default(0); 37 | $table->timestamps(); 38 | }); 39 | } 40 | 41 | /** 42 | * Reverse the migrations. 43 | * 44 | * @return void 45 | */ 46 | public function down() 47 | { 48 | Schema::dropIfExists('projects'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /app/Http/Controllers/ActivityController.php: -------------------------------------------------------------------------------- 1 | get('project_id'); 23 | 24 | if (!request()->user()->can('project.'.$project_id.'.activities')) { 25 | abort(403, 'Unauthorized action.'); 26 | } 27 | 28 | $project = Project::findOrFail($project_id); 29 | $activities = Activity::forSubject($project) 30 | ->orWhere(function ($query) use ($project) { 31 | $query->where('subject_type', (new ProjectTask())->getMorphClass()) 32 | ->whereIn('subject_id', $project->tasks()->pluck('id')); 33 | }) 34 | ->orWhere(function ($query) use ($project) { 35 | $query->where('subject_type', (new ProjectMilestone())->getMorphClass()) 36 | ->whereIn('subject_id', $project->milestones()->pluck('id')); 37 | }) 38 | ->orWhere(function ($query) use ($project) { 39 | $query->where('subject_type', (new Transaction())->getMorphClass()) 40 | ->whereIn('subject_id', $project->transactions()->pluck('id')); 41 | }) 42 | ->with(['causer', 'subject']) 43 | ->latest() 44 | ->simplePaginate(10); 45 | 46 | return $this->respond($activities); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/seeds/SystemsTableSeeder.php: -------------------------------------------------------------------------------- 1 | null, 17 | 'mobile' => null, 18 | 'alternate_contact_no' => null, 19 | 'email' => null, 20 | 'city' => null, 21 | 'state' => null, 22 | 'country' => null, 23 | 'zip_code' => null, 24 | 'logo' => null, 25 | 'date_format' => 'm-d-Y', 26 | 'time_format' => 12, 27 | 'currency_id' => 1 28 | ]; 29 | 30 | $invoice_reminder_template = [ 31 | 'invoice_reminder_email_subject' => 'Invoice Reminder from {business_name}', 32 | 'invoice_reminder_email_body' => '

Dear {customer_name},

33 | 34 |

Your invoice number for {project_name} is {invoice_number} and due date for this is {due_date}
35 | 36 |

Thank you for the business.

37 |


38 |

Regards,


39 |

{business_name}

', 40 | 'invoice_reminder_attachment' => 1 41 | ]; 42 | 43 | $datas['invoice_reminder_template'] = json_encode($invoice_reminder_template); 44 | 45 | foreach ($datas as $key => $value) { 46 | System::updateOrCreate(['key' => $key], ['value' => $value]); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/Console/Commands/SendReminder.php: -------------------------------------------------------------------------------- 1 | format('Y-m-d H:i:00'); 46 | 47 | $end = Carbon::now()->addMinutes(5)->format('Y-m-d H:i:00'); 48 | 49 | $reminders = Reminder::whereBetween('remind_on', [$start, $end]) 50 | ->get(); 51 | 52 | foreach ($reminders as $reminder) { 53 | $employee = User::findOrFail($reminder->remind_to); 54 | $lead = Customer::findOrFail($reminder->remindable_id); 55 | $reminder['name'] = $employee->name; 56 | $reminder['lead_id'] = $lead->id; 57 | 58 | $delivery_channel = ['database']; 59 | if ($reminder->send_email && config('app.env') != 'demo') { 60 | $delivery_channel[] = 'mail'; 61 | } 62 | 63 | $employee->notify(new SendReminderNotification($reminder, $delivery_channel)); 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /app/Notifications/InvoiceReminder.php: -------------------------------------------------------------------------------- 1 | subject = $data['subject']; 27 | $this->body = $data['body']; 28 | $this->invoice_name = !empty($data['name']) ? $data['name'] : ''; 29 | $this->pdf = !empty($data['pdf']) ? $data['pdf'] : ''; 30 | } 31 | 32 | /** 33 | * Get the notification's delivery channels. 34 | * 35 | * @param mixed $notifiable 36 | * @return array 37 | */ 38 | public function via($notifiable) 39 | { 40 | return ['mail']; 41 | } 42 | 43 | /** 44 | * Get the mail representation of the notification. 45 | * 46 | * @param mixed $notifiable 47 | * @return \Illuminate\Notifications\Messages\MailMessage 48 | */ 49 | public function toMail($notifiable) 50 | { 51 | $mailMessage = new MailMessage(); 52 | 53 | $mailMessage 54 | ->subject($this->subject) 55 | ->line($this->body); 56 | 57 | if (!empty($this->pdf)) { 58 | $mailMessage->attachData($this->pdf->output(), $this->invoice_name); 59 | } 60 | 61 | return $mailMessage; 62 | } 63 | 64 | /** 65 | * Get the array representation of the notification. 66 | * 67 | * @param mixed $notifiable 68 | * @return array 69 | */ 70 | public function toArray($notifiable) 71 | { 72 | return [ 73 | // 74 | ]; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 40 | } 41 | 42 | /** 43 | * Reset the given user's password. 44 | * This method overrides the laravel's default resetPassword function 45 | * to avoid double hashing because our User Model automatically hashes the 46 | * password on the fly before saving to database 47 | * 48 | * @param \Illuminate\Contracts\Auth\CanResetPassword $user 49 | * @param string $password 50 | * @return void 51 | */ 52 | protected function resetPassword($user, $password) 53 | { 54 | $user->password = $password; 55 | 56 | $user->setRememberToken(Str::random(60)); 57 | 58 | $user->save(); 59 | 60 | event(new PasswordReset($user)); 61 | 62 | $this->guard()->login($user); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /app/Leave.php: -------------------------------------------------------------------------------- 1 | 'approved', 29 | 'value' => __('messages.approved'), 30 | ], 31 | ['key' => 'cancelled', 32 | 'value' => __('messages.cancelled'), 33 | ], 34 | ['key' => 'pending', 35 | 'value' => __('messages.pending'), 36 | ], 37 | ]; 38 | 39 | if ($append_all) { 40 | $status = array_merge([['key' => '', 'value' => __('messages.all')]], $status); 41 | } 42 | 43 | return $status; 44 | } 45 | 46 | /** 47 | * Return the date filter for the leave. 48 | */ 49 | public static function getDateFilter() 50 | { 51 | $date = [ 52 | ['key' => '', 53 | 'value' => __('messages.all'), 54 | ], 55 | ['key' => 'now', 56 | 'value' => __('messages.now'), 57 | ], 58 | ['key' => 'upcoming', 59 | 'value' => __('messages.upcoming'), 60 | ], 61 | ['key' => 'past', 62 | 'value' => __('messages.past'), 63 | ], 64 | ]; 65 | 66 | return $date; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /database/migrations/2019_08_02_184806_create_tickets_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('reference_no'); 19 | $table->text('title'); 20 | 21 | $table->unsignedInteger('category_id'); 22 | $table->foreign('category_id') 23 | ->references('id')->on('categories'); 24 | 25 | $table->enum('priority', ['low', 'medium', 'high', 'urgent'])->nullable(); 26 | $table->longText('description'); 27 | $table->enum('status', ['new', 'open', 'closed'])->default('new'); 28 | 29 | $table->unsignedInteger('assigned_to')->nullable(); 30 | $table->foreign('assigned_to') 31 | ->references('id')->on('users'); 32 | 33 | $table->unsignedInteger('customer_id'); 34 | $table->foreign('customer_id') 35 | ->references('id')->on('customers') 36 | ->onDelete('cascade'); 37 | 38 | $table->unsignedInteger('created_by'); 39 | $table->foreign('created_by') 40 | ->references('id')->on('users'); 41 | 42 | $table->unsignedInteger('updated_by'); 43 | $table->foreign('updated_by') 44 | ->references('id')->on('users'); 45 | 46 | $table->dateTime('closed_at')->nullable(); 47 | $table->timestamps(); 48 | }); 49 | } 50 | 51 | /** 52 | * Reverse the migrations. 53 | * 54 | * @return void 55 | */ 56 | public function down() 57 | { 58 | Schema::dropIfExists('tickets'); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | window._ = require('lodash'); 2 | window.moment = require('moment-timezone'); 3 | window.Dropzone = require('dropzone'); 4 | 5 | /** 6 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 7 | * for JavaScript based Bootstrap features such as modals and tabs. This 8 | * code may be modified to fit the specific needs of your application. 9 | */ 10 | 11 | try { 12 | window.$ = window.jQuery = require('jquery'); 13 | 14 | require('bootstrap-sass'); 15 | } catch (e) {} 16 | 17 | /** 18 | * We'll load the axios HTTP library which allows us to easily issue requests 19 | * to our Laravel back-end. This library automatically handles sending the 20 | * CSRF token as a header based on the value of the "XSRF" token cookie. 21 | */ 22 | 23 | window.axios = require('axios'); 24 | 25 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 26 | 27 | /** 28 | * Next we will register the CSRF Token as a common header with Axios so that 29 | * all outgoing HTTP requests automatically have it attached. This is just 30 | * a simple convenience so we don't have to attach every token manually. 31 | */ 32 | 33 | let token = document.head.querySelector('meta[name="csrf-token"]'); 34 | 35 | if (token) { 36 | window._token = token.content; 37 | window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 38 | } else { 39 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 40 | } 41 | 42 | /** 43 | * Next we will set the base url for axios requests. 44 | */ 45 | window.axios.defaults.baseURL = APP.APP_URL; 46 | 47 | /** 48 | * Echo exposes an expressive API for subscribing to channels and listening 49 | * for events that are broadcast by Laravel. Echo and event broadcasting 50 | * allows your team to easily build robust real-time web applications. 51 | */ 52 | 53 | // import Echo from 'laravel-echo' 54 | 55 | // window.Pusher = require('pusher-js'); 56 | 57 | // window.Echo = new Echo({ 58 | // broadcaster: 'pusher', 59 | // key: 'your-pusher-key' 60 | // }); 61 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "description": "The Laravel Framework.", 4 | "keywords": ["framework", "laravel"], 5 | "license": "MIT", 6 | "type": "project", 7 | "require": { 8 | "php": ">=7.0.0", 9 | "barryvdh/laravel-dompdf": "^0.8.4", 10 | "composer/semver": "^1.5", 11 | "fideloper/proxy": "~4.0", 12 | "firebase/php-jwt": "^5.0", 13 | "intervention/image": "^2.4", 14 | "laravel/framework": "5.7.*", 15 | "laravel/tinker": "~1.0", 16 | "ramsey/uuid": "^3.7", 17 | "spatie/laravel-activitylog": "^3.2", 18 | "spatie/laravel-backup": "^5.12", 19 | "spatie/laravel-medialibrary": "^7.0.0", 20 | "spatie/laravel-permission": "^2.36" 21 | }, 22 | "require-dev": { 23 | "barryvdh/laravel-ide-helper": "^2.4", 24 | "filp/whoops": "~2.0", 25 | "fzaninotto/faker": "~1.4", 26 | "mockery/mockery": "0.9.*", 27 | "phpunit/phpunit": "~7.0" 28 | }, 29 | "autoload": { 30 | "classmap": [ 31 | "database/seeds", 32 | "database/factories" 33 | ], 34 | "psr-4": { 35 | "App\\": "app/" 36 | } 37 | }, 38 | "autoload-dev": { 39 | "psr-4": { 40 | "Tests\\": "tests/" 41 | } 42 | }, 43 | "extra": { 44 | "laravel": { 45 | "dont-discover": [ 46 | ] 47 | } 48 | }, 49 | "scripts": { 50 | "post-root-package-install": [ 51 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 52 | ], 53 | "post-create-project-cmd": [ 54 | "@php artisan key:generate" 55 | ], 56 | "post-autoload-dump": [ 57 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 58 | "@php artisan package:discover" 59 | ] 60 | }, 61 | "config": { 62 | "preferred-install": "dist", 63 | "sort-packages": true, 64 | "optimize-autoloader": true, 65 | "platform": { 66 | "php": "7.1.3" 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 14 | /* 15 | |-------------------------------------------------------------------------- 16 | | Log Channels 17 | |-------------------------------------------------------------------------- 18 | | 19 | | Here you may configure the log channels for your application. Out of 20 | | the box, Laravel uses the Monolog PHP logging library. This gives 21 | | you a variety of powerful log handlers / formatters to utilize. 22 | | 23 | | Available Drivers: "single", "daily", "slack", "syslog", 24 | | "errorlog", "custom", "stack" 25 | | 26 | */ 27 | 'channels' => [ 28 | 'stack' => [ 29 | 'driver' => 'stack', 30 | 'channels' => ['single'], 31 | ], 32 | 'single' => [ 33 | 'driver' => 'single', 34 | 'path' => storage_path('logs/laravel.log'), 35 | 'level' => 'debug', 36 | ], 37 | 'daily' => [ 38 | 'driver' => 'daily', 39 | 'path' => storage_path('logs/laravel.log'), 40 | 'level' => 'debug', 41 | 'days' => 7, 42 | ], 43 | 'slack' => [ 44 | 'driver' => 'slack', 45 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 46 | 'username' => 'Laravel Log', 47 | 'emoji' => ':boom:', 48 | 'level' => 'critical', 49 | ], 50 | 'syslog' => [ 51 | 'driver' => 'syslog', 52 | 'level' => 'debug', 53 | ], 54 | 'errorlog' => [ 55 | 'driver' => 'errorlog', 56 | 'level' => 'debug', 57 | ], 58 | ], 59 | ]; 60 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 40 | } 41 | 42 | /** 43 | * Get a validator for an incoming registration request. 44 | * 45 | * @param array $data 46 | * @return \Illuminate\Contracts\Validation\Validator 47 | */ 48 | protected function validator(array $data) 49 | { 50 | return Validator::make($data, [ 51 | 'name' => 'required|string|max:255', 52 | 'email' => 'required|string|email|max:255|unique:users', 53 | 'password' => 'required|string|min:6|confirmed', 54 | ]); 55 | } 56 | 57 | /** 58 | * Create a new user instance after a valid registration. 59 | * 60 | * @param array $data 61 | * @return \App\Components\User\Models\User 62 | */ 63 | protected function create(array $data) 64 | { 65 | return User::create([ 66 | 'name' => $data['name'], 67 | 'email' => $data['email'], 68 | 'password' => $data['password'], 69 | ]); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/Notifications/LeadAdded.php: -------------------------------------------------------------------------------- 1 | lead = $data; 24 | $this->app_name = config('app.name'); 25 | } 26 | 27 | /** 28 | * Get the notification's delivery channels. 29 | * 30 | * @param mixed $notifiable 31 | * @return array 32 | */ 33 | public function via($notifiable) 34 | { 35 | return ['mail']; 36 | } 37 | 38 | /** 39 | * Get the mail representation of the notification. 40 | * 41 | * @param mixed $notifiable 42 | * @return \Illuminate\Notifications\Messages\MailMessage 43 | */ 44 | public function toMail($notifiable) 45 | { 46 | $email_template = System::getValue('lead_added_template', true); 47 | $email_template = !empty($email_template) ? $email_template : []; 48 | $body = !empty($email_template['body']) ? $email_template['body'] : ''; 49 | $subject = !empty($email_template['subject']) ? $email_template['subject'] : ''; 50 | $subject = preg_replace(["/{lead_name}/", "/{company_name}/"], [$this->lead->company, $this->app_name], $subject); 51 | $body = preg_replace(["/{lead_name}/", "/{company_name}/"], [$this->lead->company, $this->app_name], $body); 52 | 53 | return (new MailMessage) 54 | ->subject($subject) 55 | ->view( 56 | 'email.email_body', 57 | ['body' => $body] 58 | ); 59 | } 60 | 61 | /** 62 | * Get the array representation of the notification. 63 | * 64 | * @param mixed $notifiable 65 | * @return array 66 | */ 67 | public function toArray($notifiable) 68 | { 69 | return [ 70 | // 71 | ]; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /app/System.php: -------------------------------------------------------------------------------- 1 | value('value'); 31 | 32 | if (!empty($json_decode)) { 33 | $value = json_decode($value, true); 34 | } 35 | 36 | return $value; 37 | } 38 | 39 | /** 40 | * Retrieves a business value from the given key. 41 | * 42 | * @param string $key 43 | */ 44 | public static function getSystemSettings($keys) 45 | { 46 | $system = System::whereIn('key', $keys) 47 | ->pluck('value', 'key'); 48 | 49 | return $system; 50 | } 51 | /** 52 | * Returns the date formats 53 | */ 54 | public static function date_formats() 55 | { 56 | return [ 57 | ['text' => 'dd-mm-yyyy', 'value' => 'd-m-Y'], 58 | ['text' => 'mm-dd-yyyy', 'value' => 'm-d-Y'], 59 | ['text' => 'dd/mm/yyyy', 'value' => 'd/m/Y'], 60 | ['text' => 'mm/dd/yyyy', 'value' => 'm/d/Y'], 61 | ]; 62 | } 63 | 64 | /** 65 | * Returns the time formats 66 | */ 67 | public static function time_formats() 68 | { 69 | return [ 70 | ['text' => __('messages.12_hour'), 'value' => '12'], 71 | ['text' => __('messages.24_hour'), 'value' => '24'], 72 | ]; 73 | } 74 | 75 | /** 76 | * Returns business currency 77 | */ 78 | public static function getBusinessCurrency($key) 79 | { 80 | $value = System::where('key', $key)->value('value'); 81 | 82 | $currency = Currency::find($value); 83 | 84 | return $currency; 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /app/Notifications/CustomerAdded.php: -------------------------------------------------------------------------------- 1 | customer = $data; 26 | $this->app_name = config('app.name'); 27 | } 28 | 29 | /** 30 | * Get the notification's delivery channels. 31 | * 32 | * @param mixed $notifiable 33 | * @return array 34 | */ 35 | public function via($notifiable) 36 | { 37 | return ['mail']; 38 | } 39 | 40 | /** 41 | * Get the mail representation of the notification. 42 | * 43 | * @param mixed $notifiable 44 | * @return \Illuminate\Notifications\Messages\MailMessage 45 | */ 46 | public function toMail($notifiable) 47 | { 48 | $email_template = System::getValue('customer_added_template', true); 49 | 50 | $email_template = !empty($email_template) ? $email_template : []; 51 | $body = !empty($email_template['body']) ? $email_template['body'] : ''; 52 | $subject = !empty($email_template['subject']) ? $email_template['subject'] : ''; 53 | 54 | $subject = preg_replace(["/{customer_name}/", "/{company_name}/"], [$this->customer->company, $this->app_name], $subject); 55 | $body = preg_replace(["/{customer_name}/", "/{company_name}/"], [$this->customer->company, $this->app_name], $body); 56 | 57 | return (new MailMessage) 58 | ->subject($subject) 59 | ->view( 60 | 'email.email_body', 61 | ['body' => $body] 62 | ); 63 | } 64 | 65 | /** 66 | * Get the array representation of the notification. 67 | * 68 | * @param mixed $notifiable 69 | * @return array 70 | */ 71 | public function toArray($notifiable) 72 | { 73 | return [ 74 | // 75 | ]; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /resources/sass/base.scss: -------------------------------------------------------------------------------- 1 | @import "variables"; 2 | @import "dropzone"; 3 | 4 | /* general */ 5 | a { 6 | text-decoration: none; 7 | } 8 | .bg_half_transparent { 9 | background: rgba($loader-bg-color, $loader-bg-transparency); 10 | } 11 | .wask_loader { 12 | padding: 150px 0; 13 | position: fixed; 14 | z-index: 501; 15 | border: 0; 16 | width: 100%; 17 | left: 0; 18 | top: 0; 19 | bottom: 0; 20 | } 21 | .wask_loader > div.v-spinner > div { 22 | margin: 0 auto; 23 | } 24 | .permissions_container { 25 | padding: 10px; 26 | } 27 | .fade-enter-active, .fade-leave-active { 28 | transition-property: opacity; 29 | transition-duration: .25s; 30 | } 31 | .fade-enter-active { 32 | transition-delay: .25s; 33 | } 34 | .fade-enter, .fade-leave-active { 35 | opacity: 0 36 | } 37 | .breadcrumbs li a { 38 | text-decoration: none; 39 | color: $menu-text-color; 40 | } 41 | 42 | /* pre-defined */ 43 | .wask_td_action { 44 | min-width: 150px; 45 | } 46 | 47 | /* override */ 48 | #admin .snack { 49 | z-index: 500 !important; 50 | } 51 | 52 | /* Dropzone */ 53 | .dropzone { 54 | background: #dcdcdc; 55 | border: 1px dashed #eaeaea; 56 | } 57 | .dropzone .dz-preview.dz-image-preview { 58 | background: none; 59 | } 60 | 61 | /* task show*/ 62 | #task_description { 63 | width:100%; 64 | max-height: 250px; 65 | overflow: auto; 66 | } 67 | 68 | /*project-overview */ 69 | #project_info { 70 | white-space:pre-line; 71 | } 72 | 73 | .v-calendar-weekly__day, .v-calendar-daily_head-day{ 74 | overflow-y: auto !important; 75 | } 76 | 77 | #v_date_range{ 78 | width: 274px; 79 | } 80 | 81 | .flat_picker_label { 82 | left: 0px; 83 | right: auto; 84 | position: absolute; 85 | } 86 | 87 | ::-webkit-scrollbar-track 88 | { 89 | -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 90 | border-radius: 10px; 91 | background-color: #F5F5F5; 92 | } 93 | 94 | ::-webkit-scrollbar 95 | { 96 | width: 12px; 97 | background-color: #F5F5F5; 98 | border-radius: 15px; 99 | height: 8px; 100 | } 101 | 102 | ::-webkit-scrollbar-thumb 103 | { 104 | border-radius: 10px; 105 | -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3); 106 | background-color: #C1C1C1; 107 | } 108 | -------------------------------------------------------------------------------- /database/migrations/2019_02_23_053221_create_transactions_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 16 | 17 | $table->unsignedInteger('project_id')->nullable(); 18 | $table->foreign('project_id') 19 | ->references('id')->on('projects') 20 | ->onDelete('cascade'); 21 | 22 | $table->string('ref_no'); 23 | $table->integer('category_id')->nullable(); 24 | 25 | $table->unsignedInteger('expense_for')->nullable(); 26 | $table->foreign('expense_for') 27 | ->references('id')->on('users') 28 | ->onDelete('cascade'); 29 | 30 | $table->enum('type', ['invoice', 'expense']); 31 | $table->enum('status', ['draft', 'estimate', 'final']); 32 | $table->string('title')->nullable(); 33 | 34 | $table->unsignedInteger('customer_id')->nullable(); 35 | $table->foreign('customer_id') 36 | ->references('id')->on('customers') 37 | ->onDelete('cascade'); 38 | 39 | $table->integer('contact_id')->nullable(); 40 | $table->integer('invoice_scheme_id')->nullable(); 41 | $table->date('transaction_date'); 42 | $table->date('due_date')->nullable(); 43 | $table->enum('discount_type', ['fixed', 'percentage'])->default('fixed'); 44 | $table->decimal('discount_amount', 20, 4)->default(0.0000); 45 | $table->decimal('total', 20, 4); 46 | $table->text('terms')->nullable(); 47 | $table->text('notes')->nullable(); 48 | $table->enum('payment_status', ['paid', 'due', 'partial']); 49 | $table->integer('created_by')->index(); 50 | $table->timestamps(); 51 | }); 52 | } 53 | 54 | /** 55 | * Reverse the migrations. 56 | */ 57 | public function down() 58 | { 59 | Schema::dropIfExists('transactions'); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/da/notifications.php: -------------------------------------------------------------------------------- 1 | 'Fejlbesked: :message', 5 | 'exception_trace' => 'Fejl trace: :trace', 6 | 'exception_message_title' => 'Fejlbesked', 7 | 'exception_trace_title' => 'Fejl trace', 8 | 9 | 'backup_failed_subject' => 'Backup af :application_name fejlede', 10 | 'backup_failed_body' => 'Vigtigt: Der skete en fejl under backup af :application_name', 11 | 12 | 'backup_successful_subject' => 'Ny backup af :application_name oprettet', 13 | 'backup_successful_subject_title' => 'Ny backup!', 14 | 'backup_successful_body' => 'Gode nyheder - der blev oprettet en ny backup af :application_name på disken :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Oprydning af backups for :application_name fejlede.', 17 | 'cleanup_failed_body' => 'Der skete en fejl under oprydning af backups for :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Oprydning af backups for :application_name gennemført', 20 | 'cleanup_successful_subject_title' => 'Backup oprydning gennemført!', 21 | 'cleanup_successful_body' => 'Oprydningen af backups for :application_name på disken :disk_name er gennemført.', 22 | 23 | 'healthy_backup_found_subject' => 'Alle backups for :application_name på disken :disk_name er OK', 24 | 'healthy_backup_found_subject_title' => 'Alle backups for :application_name er OK', 25 | 'healthy_backup_found_body' => 'Alle backups for :application_name er ok. Godt gået!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Vigtigt: Backups for :application_name fejlbehæftede', 28 | 'unhealthy_backup_found_subject_title' => 'Vigtigt: Backups for :application_name er fejlbehæftede. :problem', 29 | 'unhealthy_backup_found_body' => 'Backups for :application_name på disken :disk_name er fejlbehæftede.', 30 | 'unhealthy_backup_found_not_reachable' => 'Backup destinationen kunne ikke findes. :error', 31 | 'unhealthy_backup_found_empty' => 'Denne applikation har ingen backups overhovedet.', 32 | 'unhealthy_backup_found_old' => 'Den seneste backup fra :date er for gammel.', 33 | 'unhealthy_backup_found_unknown' => 'Beklager, en præcis årsag kunne ikke findes.', 34 | 'unhealthy_backup_found_full' => 'Backups bruger for meget plads. Nuværende disk forbrug er :disk_usage, hvilket er mere end den tilladte grænse på :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/hi/notifications.php: -------------------------------------------------------------------------------- 1 | 'गलती संदेश: :message', 5 | 'exception_trace' => 'गलती निशान: :trace', 6 | 'exception_message_title' => 'गलती संदेश', 7 | 'exception_trace_title' => 'गलती निशान', 8 | 9 | 'backup_failed_subject' => ':application_name का बैकअप असफल रहा', 10 | 'backup_failed_body' => 'जरूरी सुचना: :application_name का बैकअप लेते समय असफल रहे', 11 | 12 | 'backup_successful_subject' => ':application_name का बैकअप सफल रहा', 13 | 'backup_successful_subject_title' => 'बैकअप सफल रहा!', 14 | 'backup_successful_body' => 'खुशखबरी, :application_name का बैकअप :disk_name पर संग्रहित करने मे सफल रहे.', 15 | 16 | 'cleanup_failed_subject' => ':application_name के बैकअप की सफाई असफल रही.', 17 | 'cleanup_failed_body' => ':application_name के बैकअप की सफाई करते समय कुछ बाधा आयी है.', 18 | 19 | 'cleanup_successful_subject' => ':application_name के बैकअप की सफाई सफल रही', 20 | 'cleanup_successful_subject_title' => 'बैकअप की सफाई सफल रही!', 21 | 'cleanup_successful_body' => ':application_name का बैकअप जो :disk_name नाम की डिस्क पर संग्रहित है, उसकी सफाई सफल रही.', 22 | 23 | 'healthy_backup_found_subject' => ':disk_name नाम की डिस्क पर संग्रहित :application_name के बैकअप स्वस्थ है', 24 | 'healthy_backup_found_subject_title' => ':application_name के सभी बैकअप स्वस्थ है', 25 | 'healthy_backup_found_body' => 'बहुत बढ़िया! :application_name के सभी बैकअप स्वस्थ है.', 26 | 27 | 'unhealthy_backup_found_subject' => 'जरूरी सुचना : :application_name के बैकअप अस्वस्थ है', 28 | 'unhealthy_backup_found_subject_title' => 'जरूरी सुचना : :application_name के बैकअप :problem के बजेसे अस्वस्थ है', 29 | 'unhealthy_backup_found_body' => ':disk_name नाम की डिस्क पर संग्रहित :application_name के बैकअप अस्वस्थ है', 30 | 'unhealthy_backup_found_not_reachable' => ':error के बजेसे बैकअप की मंजिल तक पोहोच नहीं सकते.', 31 | 'unhealthy_backup_found_empty' => 'इस एप्लीकेशन का कोई भी बैकअप नहीं है.', 32 | 'unhealthy_backup_found_old' => 'हालहीमें :date को लिया हुआ बैकअप बहुत पुराना है.', 33 | 'unhealthy_backup_found_unknown' => 'माफ़ कीजिये, सही कारण निर्धारित नहीं कर सकते.', 34 | 'unhealthy_backup_found_full' => 'सभी बैकअप बहुत ज्यादा जगह का उपयोग कर रहे है. फ़िलहाल सभी बैकअप :disk_usage जगह का उपयोग कर रहे है, जो की :disk_limit अनुमति सीमा से अधिक का है.', 35 | ]; 36 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "s3", "rackspace" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => public_path('uploads'), 49 | 'url' => env('APP_URL').'/uploads' 50 | ], 51 | 52 | 'public' => [ 53 | 'driver' => 'local', 54 | 'root' => storage_path('app/public'), 55 | 'url' => env('APP_URL').'/storage', 56 | 'visibility' => 'public', 57 | ], 58 | 59 | 's3' => [ 60 | 'driver' => 's3', 61 | 'key' => env('AWS_KEY'), 62 | 'secret' => env('AWS_SECRET'), 63 | 'region' => env('AWS_REGION'), 64 | 'bucket' => env('AWS_BUCKET'), 65 | ], 66 | 67 | ], 68 | 69 | ]; 70 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/ar/notifications.php: -------------------------------------------------------------------------------- 1 | 'رسالة استثناء: :message', 5 | 'exception_trace' => 'تتبع الإستثناء: :trace', 6 | 'exception_message_title' => 'رسالة استثناء', 7 | 'exception_trace_title' => 'تتبع الإستثناء', 8 | 9 | 'backup_failed_subject' => 'أخفق النسخ الاحتياطي لل :application_name', 10 | 'backup_failed_body' => 'مهم: حدث خطأ أثناء النسخ الاحتياطي :application_name', 11 | 12 | 'backup_successful_subject' => 'نسخ احتياطي جديد ناجح ل :application_name', 13 | 'backup_successful_subject_title' => 'نجاح النسخ الاحتياطي الجديد!', 14 | 'backup_successful_body' => 'أخبار عظيمة، نسخة احتياطية جديدة ل :application_name تم إنشاؤها بنجاح على القرص المسمى :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'فشل تنظيف النسخ الاحتياطي للتطبيق :application_name .', 17 | 'cleanup_failed_body' => 'حدث خطأ أثناء تنظيف النسخ الاحتياطية ل :application_name', 18 | 19 | 'cleanup_successful_subject' => 'تنظيف النسخ الاحتياطية ل :application_name تمت بنجاح', 20 | 'cleanup_successful_subject_title' => 'تنظيف النسخ الاحتياطية تم بنجاح!', 21 | 'cleanup_successful_body' => 'تنظيف النسخ الاحتياطية ل :application_name على القرص المسمى :disk_name تم بنجاح.', 22 | 23 | 'healthy_backup_found_subject' => 'النسخ الاحتياطية ل :application_name على القرص :disk_name صحية', 24 | 'healthy_backup_found_subject_title' => 'النسخ الاحتياطية ل :application_name صحية', 25 | 'healthy_backup_found_body' => 'تعتبر النسخ الاحتياطية ل :application_name صحية. عمل جيد!', 26 | 27 | 'unhealthy_backup_found_subject' => 'مهم: النسخ الاحتياطية ل :application_name غير صحية', 28 | 'unhealthy_backup_found_subject_title' => 'مهم: النسخ الاحتياطية ل :application_name غير صحية. :problem', 29 | 'unhealthy_backup_found_body' => 'النسخ الاحتياطية ل :application_name على القرص :disk_name غير صحية.', 30 | 'unhealthy_backup_found_not_reachable' => 'لا يمكن الوصول إلى وجهة النسخ الاحتياطي. :error', 31 | 'unhealthy_backup_found_empty' => 'لا توجد نسخ احتياطية لهذا التطبيق على الإطلاق.', 32 | 'unhealthy_backup_found_old' => 'تم إنشاء أحدث النسخ الاحتياطية في :date وتعتبر قديمة جدا.', 33 | 'unhealthy_backup_found_unknown' => 'عذرا، لا يمكن تحديد سبب دقيق.', 34 | 'unhealthy_backup_found_full' => 'النسخ الاحتياطية تستخدم الكثير من التخزين. الاستخدام الحالي هو :disk_usage وهو أعلى من الحد المسموح به من :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/tr/notifications.php: -------------------------------------------------------------------------------- 1 | 'Hata mesajı: :message', 5 | 'exception_trace' => 'Hata izleri: :trace', 6 | 'exception_message_title' => 'Hata mesajı', 7 | 'exception_trace_title' => 'Hata izleri', 8 | 9 | 'backup_failed_subject' => 'Yedeklenemedi :application_name', 10 | 'backup_failed_body' => 'Önemli: Yedeklenirken bir hata oluştu :application_name', 11 | 12 | 'backup_successful_subject' => 'Başarılı :application_name yeni yedeklemesi', 13 | 'backup_successful_subject_title' => 'Başarılı bir yeni yedekleme!', 14 | 'backup_successful_body' => 'Harika bir haber, :application_name âit yeni bir yedekleme :disk_name adlı diskte başarıyla oluşturuldu.', 15 | 16 | 'cleanup_failed_subject' => ':application_name yedeklemeleri temizlenmesi başarısız.', 17 | 'cleanup_failed_body' => ':application_name yedeklerini temizlerken bir hata oluştu ', 18 | 19 | 'cleanup_successful_subject' => ':application_name yedeklemeleri temizlenmesi başarılı.', 20 | 'cleanup_successful_subject_title' => 'Yedeklerin temizlenmesi başarılı!', 21 | 'cleanup_successful_body' => ':application_name yedeklemeleri temizlenmesi ,:disk_name diskinden silindi', 22 | 23 | 'healthy_backup_found_subject' => ':application_name yedeklenmesi ,:disk_name adlı diskte sağlıklı', 24 | 'healthy_backup_found_subject_title' => ':application_name yedeklenmesi sağlıklı', 25 | 'healthy_backup_found_body' => ':application_name için yapılan yedeklemeler sağlıklı sayılır. Aferin!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Önemli: :application_name için yedeklemeler sağlıksız', 28 | 'unhealthy_backup_found_subject_title' => 'Önemli: :application_name için yedeklemeler sağlıksız. :problem', 29 | 'unhealthy_backup_found_body' => 'Yedeklemeler: :application_name disk: :disk_name sağlıksız.', 30 | 'unhealthy_backup_found_not_reachable' => 'Yedekleme hedefine ulaşılamıyor. :error', 31 | 'unhealthy_backup_found_empty' => 'Bu uygulamanın yedekleri yok.', 32 | 'unhealthy_backup_found_old' => ':date tarihinde yapılan en son yedekleme çok eski kabul ediliyor.', 33 | 'unhealthy_backup_found_unknown' => 'Üzgünüm, kesin bir sebep belirlenemiyor.', 34 | 'unhealthy_backup_found_full' => 'Yedeklemeler çok fazla depolama alanı kullanıyor. Şu anki kullanım: :disk_usage, izin verilen sınırdan yüksek: :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | 'bindings', 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 58 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 59 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 60 | 'employee' => \App\Http\Middleware\CheckEmployee::class, 61 | 'client' => \App\Http\Middleware\CheckClient::class 62 | ]; 63 | } 64 | -------------------------------------------------------------------------------- /resources/views/install/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.front', ['no_header' => 1]) 2 | @section('title', 'Welcome - Installation') 3 | 4 | @section('content') 5 |
6 |
7 |
8 |

{{ config('app.name', 'PMS') }} Installation Step 1 of 3

9 |
10 | @include('install.partials.nav', ['active' => 'install']) 11 | 12 |
13 | 14 |
15 |

16 | Welcome to Installation! 17 |

18 | 19 |
[IMPORTANT] Before you start installing make sure you have following information ready with you:
20 | 21 |

22 | 23 |
    24 |
  1. 25 | Application Name - Something short & Meaningful. 26 |
  2. 27 |
    28 |
  3. 29 | Database informations: 30 |
      31 |
    • Username
    • 32 |
    • Password
    • 33 |
    • Database Name (Name of empty database)
    • 34 |
    • Database Host
    • 35 |
    36 |
  4. 37 |
    38 |
  5. 39 | Envato or Codecanyon Details: 40 | 46 |
  6. 47 |
    48 |
49 | 50 | @include('install.partials.e_license') 51 | 52 | I Agree, Let's Go! 53 |
54 | 55 |
56 | 57 |
58 | 59 |
60 |
61 | @endsection 62 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->string('mobile')->nullable(); 21 | $table->string('alternate_num')->nullable(); 22 | 23 | $table->text('home_address')->nullable(); 24 | $table->text('current_address')->nullable(); 25 | $table->text('address')->nullable(); 26 | 27 | $table->string('skype')->nullable(); 28 | $table->string('linkedin')->nullable(); 29 | $table->string('facebook')->nullable(); 30 | $table->string('twitter')->nullable(); 31 | 32 | $table->date('birth_date')->nullable(); 33 | $table->string('guardian_name')->nullable(); 34 | $table->enum('gender', ['male', 'female', 'other'])->nullable(); 35 | $table->string('account_holder_name')->nullable(); 36 | $table->string('account_no')->nullable(); 37 | $table->string('bank_name')->nullable(); 38 | $table->string('bank_identifier_code')->nullable(); 39 | $table->string('branch_location')->nullable(); 40 | $table->string('tax_payer_id')->nullable(); 41 | $table->text('note')->nullable(); 42 | $table->string('password')->nullable(); 43 | 44 | $table->longText('sticky_notes')->nullable(); 45 | 46 | $table->integer('created_by')->nullable(); 47 | 48 | $table->timestamp('last_login')->nullable(); 49 | $table->timestamp('active')->nullable(); 50 | $table->string('activation_key', 255)->nullable(); 51 | $table->rememberToken(); 52 | $table->timestamps(); 53 | }); 54 | } 55 | 56 | /** 57 | * Reverse the migrations. 58 | * 59 | * @return void 60 | */ 61 | public function down() 62 | { 63 | Schema::dropIfExists('users'); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/fa/notifications.php: -------------------------------------------------------------------------------- 1 | 'پیغام خطا: :message', 5 | 'exception_trace' => 'جزییات خطا: :trace', 6 | 'exception_message_title' => 'پیغام خطا', 7 | 'exception_trace_title' => 'جزییات خطا', 8 | 9 | 'backup_failed_subject' => 'پشتیبان‌گیری :application_name با خطا مواجه شد.', 10 | 'backup_failed_body' => 'پیغام مهم: هنگام پشتیبان‌گیری از :application_name خطایی رخ داده است. ', 11 | 12 | 'backup_successful_subject' => 'نسخه پشتیبان جدید :application_name با موفقیت ساخته شد.', 13 | 'backup_successful_subject_title' => 'پشتیبان‌گیری موفق!', 14 | 'backup_successful_body' => 'خبر خوب, به تازگی نسخه پشتیبان :application_name بر روی دیسک :disk_name با موفقیت ساخته شد. ', 15 | 16 | 'cleanup_failed_subject' => 'پاک‌‌سازی نسخه پشتیبان :application_name انجام نشد.', 17 | 'cleanup_failed_body' => 'هنگام پاک‌سازی نسخه پشتیبان :application_name خطایی رخ داده است.', 18 | 19 | 'cleanup_successful_subject' => 'پاک‌سازی نسخه پشتیبان :application_name با موفقیت انجام شد.', 20 | 'cleanup_successful_subject_title' => 'پاک‌سازی نسخه پشتیبان!', 21 | 'cleanup_successful_body' => 'پاک‌سازی نسخه پشتیبان :application_name بر روی دیسک :disk_name با موفقیت انجام شد.', 22 | 23 | 'healthy_backup_found_subject' => 'نسخه پشتیبان :application_name بر روی دیسک :disk_name سالم بود.', 24 | 'healthy_backup_found_subject_title' => 'نسخه پشتیبان :application_name سالم بود.', 25 | 'healthy_backup_found_body' => 'نسخه پشتیبان :application_name به نظر سالم میاد. دمت گرم!', 26 | 27 | 'unhealthy_backup_found_subject' => 'خبر مهم: نسخه پشتیبان :application_name سالم نبود.', 28 | 'unhealthy_backup_found_subject_title' => 'خبر مهم: نسخه پشتیبان :application_name سالم نبود. :problem', 29 | 'unhealthy_backup_found_body' => 'نسخه پشتیبان :application_name بر روی دیسک :disk_name سالم نبود.', 30 | 'unhealthy_backup_found_not_reachable' => 'مقصد پشتیبان‌گیری در دسترس نبود. :error', 31 | 'unhealthy_backup_found_empty' => 'برای این برنامه هیچ نسخه پشتیبانی وجود ندارد.', 32 | 'unhealthy_backup_found_old' => 'آخرین نسخه پشتیبان برای تاریخ :date است. که به نظر خیلی قدیمی میاد. ', 33 | 'unhealthy_backup_found_unknown' => 'متاسفانه دلیل دقیق مشخص نشده است.', 34 | 'unhealthy_backup_found_full' => 'نسخه‌های پشتیبانی که تهیه کرده اید حجم زیادی اشغال کرده اند. میزان دیسک استفاده شده :disk_usage است که از میزان مجاز :disk_limit فراتر رفته است. ', 35 | ]; 36 | -------------------------------------------------------------------------------- /database/migrations/2019_02_01_054430_create_customers_table.php: -------------------------------------------------------------------------------- 1 | increments('id'); 19 | $table->integer('primary_contact_id')->nullable(); 20 | $table->string('company'); 21 | $table->integer('currency_id'); 22 | $table->string('tax_number')->nullable(); 23 | $table->string('mobile'); 24 | $table->string('alternate_contact_no')->nullable(); 25 | $table->string('email'); 26 | $table->string('website')->nullable(); 27 | $table->string('city')->nullable(); 28 | $table->string('state')->nullable(); 29 | $table->string('zip_code')->nullable(); 30 | $table->string('country')->nullable(); 31 | $table->text('billing_address')->nullable(); 32 | $table->text('shipping_address')->nullable(); 33 | 34 | $table->integer('status_id'); 35 | $table->integer('source_id')->nullable(); 36 | $table->integer('assigned_to')->nullable(); 37 | $table->dateTime('contacted_date')->nullable(); 38 | $table->text('description')->nullable(); 39 | 40 | $table->integer('created_by')->index(); 41 | $table->softDeletes(); 42 | $table->timestamps(); 43 | }); 44 | 45 | Schema::table('users', function (Blueprint $table) { 46 | $table->unsignedInteger('customer_id')->after('created_by')->nullable(); 47 | $table->foreign('customer_id') 48 | ->references('id')->on('customers') 49 | ->onDelete('cascade'); 50 | }); 51 | 52 | //assign status 1 to existing customer. 53 | $customers = Customer::where('status_id', '!=', null) 54 | ->update(['status_id' => 1]); 55 | } 56 | 57 | /** 58 | * Reverse the migrations. 59 | * 60 | * @return void 61 | */ 62 | public function down() 63 | { 64 | Schema::dropIfExists('customers'); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /app/Http/Controllers/Client/SinglePageController.php: -------------------------------------------------------------------------------- 1 | setUser($currentUser); 20 | 21 | $menuManager->addMenus([ 22 | new MenuItem([ 23 | 'label' => trans('messages.dashboard'), 24 | 'nav_type' => MenuItem::$NAV_TYPE_NAV, 25 | 'icon' => 'dashboard', 26 | 'route_type' => 'vue', 27 | 'route_name' => 'dashboard', 28 | ]), 29 | ]); 30 | 31 | $menuManager->addMenus([ 32 | new MenuItem([ 33 | 'label' => trans('messages.projects'), 34 | 'nav_type' => MenuItem::$NAV_TYPE_NAV, 35 | 'icon' => 'assessment', 36 | 'route_type' => 'vue', 37 | 'route_name' => 'projects.list', 38 | ]), 39 | ]); 40 | 41 | $menuManager->addMenus([ 42 | new MenuItem([ 43 | 'label' => trans('messages.tickets'), 44 | 'nav_type' => MenuItem::$NAV_TYPE_NAV, 45 | 'icon' => 'live_help', 46 | 'route_type' => 'vue', 47 | 'route_name' => 'tickets.list', 48 | ]), 49 | ]); 50 | 51 | if ($currentUser->can('setting')) { 52 | $menuManager->addMenus([ 53 | new MenuItem([ 54 | 'label' => trans('messages.settings'), 55 | 'nav_type' => MenuItem::$NAV_TYPE_NAV, 56 | 'icon' => 'settings', 57 | 'route_type' => 'vue', 58 | 'route_name' => 'settings', 59 | ]), 60 | ]); 61 | } 62 | 63 | $menuManager->addMenus([ 64 | new MenuItem([ 65 | 'nav_type' => MenuItem::$NAV_TYPE_DIVIDER, 66 | ]), 67 | ]); 68 | $menus = $menuManager->getFiltered(); 69 | 70 | view()->share('nav', $menus); 71 | 72 | return view('layouts.admin'); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/en/notifications.php: -------------------------------------------------------------------------------- 1 | 'Exception message: :message', 5 | 'exception_trace' => 'Exception trace: :trace', 6 | 'exception_message_title' => 'Exception message', 7 | 'exception_trace_title' => 'Exception trace', 8 | 9 | 'backup_failed_subject' => 'Failed back up of :application_name', 10 | 'backup_failed_body' => 'Important: An error occurred while backing up :application_name', 11 | 12 | 'backup_successful_subject' => 'Successful new backup of :application_name', 13 | 'backup_successful_subject_title' => 'Successful new backup!', 14 | 'backup_successful_body' => 'Great news, a new backup of :application_name was successfully created on the disk named :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Cleaning up the backups of :application_name failed.', 17 | 'cleanup_failed_body' => 'An error occurred while cleaning up the backups of :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Clean up of :application_name backups successful', 20 | 'cleanup_successful_subject_title' => 'Clean up of backups successful!', 21 | 'cleanup_successful_body' => 'The clean up of the :application_name backups on the disk named :disk_name was successful.', 22 | 23 | 'healthy_backup_found_subject' => 'The backups for :application_name on disk :disk_name are healthy', 24 | 'healthy_backup_found_subject_title' => 'The backups for :application_name are healthy', 25 | 'healthy_backup_found_body' => 'The backups for :application_name are considered healthy. Good job!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Important: The backups for :application_name are unhealthy', 28 | 'unhealthy_backup_found_subject_title' => 'Important: The backups for :application_name are unhealthy. :problem', 29 | 'unhealthy_backup_found_body' => 'The backups for :application_name on disk :disk_name are unhealthy.', 30 | 'unhealthy_backup_found_not_reachable' => 'The backup destination cannot be reached. :error', 31 | 'unhealthy_backup_found_empty' => 'There are no backups of this application at all.', 32 | 'unhealthy_backup_found_old' => 'The latest backup made on :date is considered too old.', 33 | 'unhealthy_backup_found_unknown' => 'Sorry, an exact reason cannot be determined.', 34 | 'unhealthy_backup_found_full' => 'The backups are using too much storage. Current usage is :disk_usage which is higher than the allowed limit of :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/CategoryController.php: -------------------------------------------------------------------------------- 1 | only('name', 'type'); 41 | 42 | $input['project_id'] = !empty($request->input('project_id')) ? $request->input('project_id') : null; 43 | 44 | $category = Category::create($input); 45 | 46 | $output = $this->respondSuccess(__('messages.saved_successfully'), ['category' => $category]); 47 | } catch (Exception $e) { 48 | $output = $this->respondWentWrong($e); 49 | } 50 | return $output; 51 | } 52 | 53 | /** 54 | * Display the specified resource. 55 | * 56 | * @param int $id 57 | * @return \Illuminate\Http\Response 58 | */ 59 | public function show($id) 60 | { 61 | // 62 | } 63 | 64 | /** 65 | * Show the form for editing the specified resource. 66 | * 67 | * @param int $id 68 | * @return \Illuminate\Http\Response 69 | */ 70 | public function edit($id) 71 | { 72 | // 73 | } 74 | 75 | /** 76 | * Update the specified resource in storage. 77 | * 78 | * @param \Illuminate\Http\Request $request 79 | * @param int $id 80 | * @return \Illuminate\Http\Response 81 | */ 82 | public function update(Request $request, $id) 83 | { 84 | // 85 | } 86 | 87 | /** 88 | * Remove the specified resource from storage. 89 | * 90 | * @param int $id 91 | * @return \Illuminate\Http\Response 92 | */ 93 | public function destroy($id) 94 | { 95 | // 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/id/notifications.php: -------------------------------------------------------------------------------- 1 | 'Pesan pengecualian: :message', 5 | 'exception_trace' => 'Jejak pengecualian: :trace', 6 | 'exception_message_title' => 'Pesan pengecualian', 7 | 'exception_trace_title' => 'Jejak pengecualian', 8 | 9 | 'backup_failed_subject' => 'Gagal backup :application_name', 10 | 'backup_failed_body' => 'Penting: Sebuah error terjadi ketika membackup :application_name', 11 | 12 | 'backup_successful_subject' => 'Backup baru sukses dari :application_name', 13 | 'backup_successful_subject_title' => 'Backup baru sukses!', 14 | 'backup_successful_body' => 'Kabar baik, sebuah backup baru dari :application_name sukses dibuat pada disk bernama :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Membersihkan backup dari :application_name yang gagal.', 17 | 'cleanup_failed_body' => 'Sebuah error teradi ketika membersihkan backup dari :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Sukses membersihkan backup :application_name', 20 | 'cleanup_successful_subject_title' => 'Sukses membersihkan backup!', 21 | 'cleanup_successful_body' => 'Pembersihan backup :application_name pada disk bernama :disk_name telah sukses.', 22 | 23 | 'healthy_backup_found_subject' => 'Backup untuk :application_name pada disk :disk_name sehat', 24 | 'healthy_backup_found_subject_title' => 'Backup untuk :application_name sehat', 25 | 'healthy_backup_found_body' => 'Backup untuk :application_name dipertimbangkan sehat. Kerja bagus!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Penting: Backup untuk :application_name tidak sehat', 28 | 'unhealthy_backup_found_subject_title' => 'Penting: Backup untuk :application_name tidak sehat. :problem', 29 | 'unhealthy_backup_found_body' => 'Backup untuk :application_name pada disk :disk_name tidak sehat.', 30 | 'unhealthy_backup_found_not_reachable' => 'Tujuan backup tidak dapat terjangkau. :error', 31 | 'unhealthy_backup_found_empty' => 'Tidak ada backup pada aplikasi ini sama sekali.', 32 | 'unhealthy_backup_found_old' => 'Backup terakhir dibuat pada :date dimana dipertimbahkan sudah sangat lama.', 33 | 'unhealthy_backup_found_unknown' => 'Maaf, sebuah alasan persisnya tidak dapat ditentukan.', 34 | 'unhealthy_backup_found_full' => 'Backup menggunakan terlalu banyak kapasitas penyimpanan. Penggunaan terkini adalah :disk_usage dimana lebih besar dari batas yang diperbolehkan yaitu :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/uk/notifications.php: -------------------------------------------------------------------------------- 1 | 'Повідомлення про помилку: :message', 5 | 'exception_trace' => 'Деталі помилки: :trace', 6 | 'exception_message_title' => 'Повідомлення помилки', 7 | 'exception_trace_title' => 'Деталі помилки', 8 | 9 | 'backup_failed_subject' => 'Не вдалось зробити резервну копію :application_name', 10 | 'backup_failed_body' => 'Увага: Трапилась помилка під час резервного копіювання :application_name', 11 | 12 | 'backup_successful_subject' => 'Успішне резервне копіювання :application_name', 13 | 'backup_successful_subject_title' => 'Успішно створена резервна копія!', 14 | 'backup_successful_body' => 'Чудова новина, нова резервна копія :application_name успішно створена і збережена на диск :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Не вдалось очистити резервні копії :application_name', 17 | 'cleanup_failed_body' => 'Сталася помилка під час очищення резервних копій :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Успішне очищення від резервних копій :application_name', 20 | 'cleanup_successful_subject_title' => 'Очищення резервних копій пройшло вдало!', 21 | 'cleanup_successful_body' => 'Очищенно від старих резервних копій :application_name на диску :disk_name пойшло успішно.', 22 | 23 | 'healthy_backup_found_subject' => 'Резервна копія :application_name з диску :disk_name установлена', 24 | 'healthy_backup_found_subject_title' => 'Резервна копія :application_name установлена', 25 | 'healthy_backup_found_body' => 'Резервна копія :application_name успішно установлена. Хороша робота!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Увага: резервна копія :application_name не установилась', 28 | 'unhealthy_backup_found_subject_title' => 'Увага: резервна копія для :application_name не установилась. :problem', 29 | 'unhealthy_backup_found_body' => 'Резервна копія для :application_name на диску :disk_name не установилась.', 30 | 'unhealthy_backup_found_not_reachable' => 'Резервна копія не змогла установитись. :error', 31 | 'unhealthy_backup_found_empty' => 'Резервні копії для цього додатку відсутні.', 32 | 'unhealthy_backup_found_old' => 'Останнє резервне копіювання створено :date є застарілим.', 33 | 'unhealthy_backup_found_unknown' => 'Вибачте, але ми не змогли визначити точну причину.', 34 | 'unhealthy_backup_found_full' => 'Резервні копії використовують занадто багато пам`яті. Використовується :disk_usage що вище за допустиму межу :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/de/notifications.php: -------------------------------------------------------------------------------- 1 | 'Fehlermeldung: :message', 5 | 'exception_trace' => 'Fehlerverfolgung: :trace', 6 | 'exception_message_title' => 'Fehlermeldung', 7 | 'exception_trace_title' => 'Fehlerverfolgung', 8 | 9 | 'backup_failed_subject' => 'Backup von :application_name konnte nicht erstellt werden', 10 | 'backup_failed_body' => 'Wichtig: Beim Backup von :application_name ist ein Fehler aufgetreten', 11 | 12 | 'backup_successful_subject' => 'Erfolgreiches neues Backup von :application_name', 13 | 'backup_successful_subject_title' => 'Erfolgreiches neues Backup!', 14 | 'backup_successful_body' => 'Gute Nachrichten, ein neues Backup von :application_name wurde erfolgreich erstellt und in :disk_name gepeichert.', 15 | 16 | 'cleanup_failed_subject' => 'Aufräumen der Backups von :application_name schlug fehl.', 17 | 'cleanup_failed_body' => 'Beim aufräumen der Backups von :application_name ist ein Fehler aufgetreten', 18 | 19 | 'cleanup_successful_subject' => 'Aufräumen der Backups von :application_name backups erfolgreich', 20 | 'cleanup_successful_subject_title' => 'Aufräumen der Backups erfolgreich!', 21 | 'cleanup_successful_body' => 'Aufräumen der Backups von :application_name in :disk_name war erfolgreich.', 22 | 23 | 'healthy_backup_found_subject' => 'Die Backups von :application_name in :disk_name sind gesund', 24 | 'healthy_backup_found_subject_title' => 'Die Backups von :application_name sind Gesund', 25 | 'healthy_backup_found_body' => 'Die Backups von :application_name wurden als gesund eingestuft. Gute Arbeit!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Wichtig: Die Backups für :application_name sind nicht gesund', 28 | 'unhealthy_backup_found_subject_title' => 'Wichtig: Die Backups für :application_name sind ungesund. :problem', 29 | 'unhealthy_backup_found_body' => 'Die Backups für :application_name in :disk_name sind ungesund.', 30 | 'unhealthy_backup_found_not_reachable' => 'Das Backup Ziel konnte nicht erreicht werden. :error', 31 | 'unhealthy_backup_found_empty' => 'Es gibt für die Anwendung noch gar keine Backups.', 32 | 'unhealthy_backup_found_old' => 'Das letzte Backup am :date ist zu lange her.', 33 | 'unhealthy_backup_found_unknown' => 'Sorry, ein genauer Grund konnte nicht gefunden werden.', 34 | 'unhealthy_backup_found_full' => 'Die Backups verbrauchen zu viel Platz. Aktuell wird :disk_usage belegt, dass ist höher als das erlaubte Limit von :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## About Project Camp 2 | 3 | Project Camp is a web application for Project management, CRM, Customer support & Invoicing. Developed using Laravel PHP framework, Vuetify VueJS 4 | 5 | ## Key Features 6 | 7 | - Admin, Employee, Customers login 8 | - Employees Management: Create different roles with permissions that can be assigned to employees. 9 | - Customer Management: Add/Edit/Delete customer, customer's contacts, document & notes, ledger, customer login 10 | - Leads management: Lead source, customizable leads statuses, leads to customer, document & notes, reminders 11 | - Project Management: Add/Edit/Delete projects, category, link to customer (optional), status, team members, start/end date, Activity 12 | - Project task: Start/End date, priority, assign to multiple project members, category, show/hide from customer 13 | - Ticket management: Ticket type, priority, status, Link to customer, customer can also add tickets 14 | - Sales, Invocing, Estimates, Drafts, Invocing schemes 15 | - Expense 16 | - Knowledge base 17 | - Leaves 18 | - Backup 19 | - Inbuilt notification 20 | - Calendar 21 | - Quick shortcuts 22 | 23 | ## Demo 24 | 25 | Give a try to our fantastic application here: https://demo.myprojectcamp.com/login 26 | 27 | ## Contributions 28 | Contributions are **welcome** and will be fully **credited**. 29 | We accept contributions via Pull Requests on [Github](https://github.com/TheWebFosters/project-camp). 30 | 31 | ## Pull Requests 32 | 33 | - **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer). 34 | 35 | - **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date. 36 | 37 | - **Create feature branches** - Don't ask us to pull from your master branch. 38 | 39 | - **One pull request per feature** - If you want to do more than one thing, send multiple pull requests. 40 | 41 | ## RoadMap 42 | - Documentation 43 | - Releasing pro version 44 | 45 | ## Security Vulnerabilities 46 | 47 | If you discover a security vulnerability within project camp, please send an e-mail to Nikhil Agrawal via [nikhila@thewebfosters.com](mailto:nikhila@thewebfosters.com). All security vulnerabilities will be promptly addressed. 48 | 49 | ## License 50 | 51 | Project Camp is released under the Attribution Assurance License. See [license](https://github.com/TheWebFosters/project-camp/blob/master/LICENSE) for details. 52 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/it/notifications.php: -------------------------------------------------------------------------------- 1 | 'Messaggio dell\'eccezione: :message', 5 | 'exception_trace' => 'Traccia dell\'eccezione: :trace', 6 | 'exception_message_title' => 'Messaggio dell\'eccezione', 7 | 'exception_trace_title' => 'Traccia dell\'eccezione', 8 | 9 | 'backup_failed_subject' => 'Fallito il backup di :application_name', 10 | 'backup_failed_body' => 'Importante: Si è verificato un errore durante il backup di :application_name', 11 | 12 | 'backup_successful_subject' => 'Creato nuovo backup di :application_name', 13 | 'backup_successful_subject_title' => 'Nuovo backup creato!', 14 | 'backup_successful_body' => 'Grande notizia, un nuovo backup di :application_name è stato creato con successo sul disco :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Pulizia dei backup di :application_name fallita.', 17 | 'cleanup_failed_body' => 'Si è verificato un errore durante la pulizia dei backup di :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Pulizia dei backup di :application_name avvenuta con successo', 20 | 'cleanup_successful_subject_title' => 'Pulizia dei backup avvenuta con successo!', 21 | 'cleanup_successful_body' => 'La pulizia dei backup di :application_name sul disco :disk_name è avvenuta con successo.', 22 | 23 | 'healthy_backup_found_subject' => 'I backup per :application_name sul disco :disk_name sono sani', 24 | 'healthy_backup_found_subject_title' => 'I backup per :application_name sono sani', 25 | 'healthy_backup_found_body' => 'I backup per :application_name sono considerati sani. Bel Lavoro!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Importante: i backup per :application_name sono corrotti', 28 | 'unhealthy_backup_found_subject_title' => 'Importante: i backup per :application_name sono corrotti. :problem', 29 | 'unhealthy_backup_found_body' => 'I backup per :application_name sul disco :disk_name sono corrotti.', 30 | 'unhealthy_backup_found_not_reachable' => 'Impossibile raggiungere la destinazione di backup. :error', 31 | 'unhealthy_backup_found_empty' => 'Non esiste alcun backup di questa applicazione.', 32 | 'unhealthy_backup_found_old' => 'L\'ultimo backup fatto il :date è considerato troppo vecchio.', 33 | 'unhealthy_backup_found_unknown' => 'Spiacenti, non è possibile determinare una ragione esatta.', 34 | 'unhealthy_backup_found_full' => 'I backup utilizzano troppa memoria. L\'utilizzo corrente è :disk_usage che è superiore al limite consentito di :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/SourceController.php: -------------------------------------------------------------------------------- 1 | get() 20 | ->toArray(); 21 | 22 | return $this->respond($sources); 23 | } 24 | 25 | /** 26 | * Show the form for creating a new resource. 27 | * 28 | * @return \Illuminate\Http\Response 29 | */ 30 | public function create() 31 | { 32 | // 33 | } 34 | 35 | /** 36 | * Store a newly created resource in storage. 37 | * 38 | * @param \Illuminate\Http\Request $request 39 | * @return \Illuminate\Http\Response 40 | */ 41 | public function store(Request $request) 42 | { 43 | try { 44 | $input = $request->only('name'); 45 | 46 | $source = Source::create($input); 47 | 48 | $output = $this->respondSuccess(__('messages.saved_successfully'), ['source' => $source]); 49 | } catch (Exception $e) { 50 | $output = $this->respondWentWrong($e); 51 | } 52 | return $output; 53 | } 54 | 55 | /** 56 | * Display the specified resource. 57 | * 58 | * @param int $id 59 | * @return \Illuminate\Http\Response 60 | */ 61 | public function show($id) 62 | { 63 | // 64 | } 65 | 66 | /** 67 | * Show the form for editing the specified resource. 68 | * 69 | * @param int $id 70 | * @return \Illuminate\Http\Response 71 | */ 72 | public function edit($id) 73 | { 74 | // 75 | } 76 | 77 | /** 78 | * Update the specified resource in storage. 79 | * 80 | * @param \Illuminate\Http\Request $request 81 | * @param int $id 82 | * @return \Illuminate\Http\Response 83 | */ 84 | public function update(Request $request, $id) 85 | { 86 | // 87 | } 88 | 89 | /** 90 | * Remove the specified resource from storage. 91 | * 92 | * @param int $id 93 | * @return \Illuminate\Http\Response 94 | */ 95 | public function destroy($id) 96 | { 97 | // 98 | } 99 | } 100 | --------------------------------------------------------------------------------