├── .editorconfig ├── .env.example ├── .env.testing ├── .gitattributes ├── .github └── FUNDING.yml ├── .gitignore ├── .rnd ├── .styleci.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── app ├── Console │ ├── Commands │ │ └── MigrateInOrder.php │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── API │ │ │ └── V1 │ │ │ │ ├── BaseController.php │ │ │ │ ├── CategoryController.php │ │ │ │ ├── ProductController.php │ │ │ │ ├── ProfileController.php │ │ │ │ ├── TagController.php │ │ │ │ └── UserController.php │ │ ├── Admin │ │ │ ├── ClientController.php │ │ │ ├── HomeController.php │ │ │ ├── RoleController.php │ │ │ └── UserController.php │ │ ├── Auth │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── ForgotPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── RegisterController.php │ │ │ ├── ResetPasswordController.php │ │ │ └── VerificationController.php │ │ ├── Controller.php │ │ ├── CustomerController.php │ │ ├── HomeController.php │ │ ├── InvoiceController.php │ │ ├── InvoiceimagesController.php │ │ ├── PurchaseDetailsController.php │ │ └── SerialController.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php │ └── Requests │ │ ├── Products │ │ └── ProductRequest.php │ │ └── Users │ │ ├── ChangePasswordRequest.php │ │ ├── ProfileUpdateRequest.php │ │ └── UserRequest.php ├── Models │ ├── Category.php │ ├── Customer.php │ ├── Product.php │ ├── PurchaseDetails.php │ ├── Role.php │ ├── Tag.php │ ├── User.php │ ├── invoice.php │ ├── invoiceimages.php │ └── serial.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── ProductRepositoryServiceProvider.php │ └── RouteServiceProvider.php ├── Repositories │ ├── ProductRepository.php │ ├── ProductRepositoryInterface.php │ └── ProductRepositoryStatic.php ├── Rules │ └── MatchOldPassword.php └── Traits │ └── Uuids.php ├── artisan ├── azure-pipelines.yml ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config.arg.txt ├── config ├── app.php ├── auth.php ├── backup.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── hashing.php ├── logging.php ├── mail.php ├── passport.php ├── queue.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ ├── CustomerFactory.php │ ├── ProductFactory.php │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2019_12_09_044534_create_roles_table.php │ ├── 2019_12_09_082630_create_role_user_table.php │ ├── 2019_12_09_094511_create_social_accounts_table.php │ ├── 2019_12_27_065818_create_products_table.php │ ├── 2019_12_27_070549_create_categories_table.php │ ├── 2019_12_27_070603_create_tags_table.php │ ├── 2020_01_08_113508_create_product_tag_pivot_table.php │ ├── 2021_09_22_135852__create_customers_table.php │ ├── 2021_09_22_135853_create_invoices_table.php │ ├── 2021_09_27_050112_create_purchase_details_table.php │ ├── 2022_02_01_030308_create_serials_table.php │ └── 2022_03_08_102340_create_invoiceimages_table.php └── seeders │ ├── CategoriesTableSeeder.php │ ├── DatabaseSeeder.php │ ├── ProductsTableSeeder.php │ ├── SerialSeeder.php │ ├── TagsTableSeeder.php │ ├── UsersTableSeeder.php │ └── customerSeeder.php ├── docker-compose.yml ├── docker ├── Dockerfile ├── nginx │ └── conf.d │ │ └── app.conf └── php │ └── local.ini ├── nginx.conf ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── css │ ├── app.css │ └── app.css.map ├── favicon.ico ├── fonts │ └── vendor │ │ └── @fortawesome │ │ └── fontawesome-free │ │ ├── webfa-brands-400.eot │ │ ├── webfa-brands-400.svg │ │ ├── webfa-brands-400.ttf │ │ ├── webfa-brands-400.woff │ │ ├── webfa-brands-400.woff2 │ │ ├── webfa-regular-400.eot │ │ ├── webfa-regular-400.svg │ │ ├── webfa-regular-400.ttf │ │ ├── webfa-regular-400.woff │ │ ├── webfa-regular-400.woff2 │ │ ├── webfa-solid-900.eot │ │ ├── webfa-solid-900.svg │ │ ├── webfa-solid-900.ttf │ │ ├── webfa-solid-900.woff │ │ └── webfa-solid-900.woff2 ├── forMDimgs │ ├── category.png │ ├── customers.png │ ├── dashboard.png │ ├── invoice.png │ ├── items.png │ ├── returns.png │ ├── serialnos.png │ ├── standarduser.png │ └── users.png ├── images │ ├── profile.png │ └── tree.png ├── imagesGt9yvs1Alv.png ├── index.php ├── js │ ├── app.js │ ├── app.js.LICENSE.txt │ └── app.js.map ├── mix-manifest.json ├── robots.txt └── web.config ├── resources ├── js │ ├── Gate.js │ ├── app.js │ ├── bootstrap.js │ ├── components │ │ ├── Categories.vue │ │ ├── Customers.vue │ │ ├── Dashboard.vue │ │ ├── Developer.vue │ │ ├── ExampleComponent.vue │ │ ├── Invoice.vue │ │ ├── NotFound.vue │ │ ├── Profile.vue │ │ ├── Returns.vue │ │ ├── Tags.vue │ │ ├── Users.vue │ │ ├── passport │ │ │ ├── AuthorizedClients.vue │ │ │ ├── Clients.vue │ │ │ └── PersonalAccessTokens.vue │ │ ├── product │ │ │ ├── Category.vue │ │ │ ├── Products.vue │ │ │ ├── Serialnos.vue │ │ │ └── Tag.vue │ │ └── purchase │ │ │ └── PurchaseList.vue │ └── routes.js ├── lang │ ├── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php │ └── vendor │ │ └── backup │ │ ├── ar │ │ └── notifications.php │ │ ├── bn │ │ └── notifications.php │ │ ├── cs │ │ └── notifications.php │ │ ├── da │ │ └── notifications.php │ │ ├── de │ │ └── notifications.php │ │ ├── en │ │ └── notifications.php │ │ ├── es │ │ └── notifications.php │ │ ├── fa │ │ └── notifications.php │ │ ├── fi │ │ └── notifications.php │ │ ├── fr │ │ └── notifications.php │ │ ├── hi │ │ └── notifications.php │ │ ├── id │ │ └── notifications.php │ │ ├── it │ │ └── notifications.php │ │ ├── ja │ │ └── notifications.php │ │ ├── nl │ │ └── notifications.php │ │ ├── no │ │ └── notifications.php │ │ ├── pl │ │ └── notifications.php │ │ ├── pt-BR │ │ └── notifications.php │ │ ├── pt │ │ └── notifications.php │ │ ├── ro │ │ └── notifications.php │ │ ├── ru │ │ └── notifications.php │ │ ├── tr │ │ └── notifications.php │ │ ├── uk │ │ └── notifications.php │ │ ├── zh-CN │ │ └── notifications.php │ │ └── zh-TW │ │ └── notifications.php ├── sass │ ├── _variables.scss │ └── app.scss └── views │ ├── auth │ ├── login.blade.php │ ├── passwords │ │ ├── confirm.blade.php │ │ ├── email.blade.php │ │ └── reset.blade.php │ ├── register.blade.php │ └── verify.blade.php │ ├── home.blade.php │ ├── layouts │ ├── app.blade.php │ ├── master.blade.php │ └── sidebar-menu.blade.php │ ├── vendor │ └── passport │ │ └── authorize.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ ├── CategoryTest.php │ ├── ProfileTest.php │ ├── UserTest.php │ └── VersionTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME="Laravel-Vue POS&Inventory" 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | LOG_LEVEL=debug 9 | 10 | DB_CONNECTION=mysql 11 | DB_HOST=db 12 | DB_PORT=3306 13 | DB_DATABASE=laravel 14 | DB_USERNAME=sail 15 | DB_PASSWORD=password 16 | 17 | BROADCAST_DRIVER=log 18 | CACHE_DRIVER=file 19 | QUEUE_CONNECTION=sync 20 | SESSION_DRIVER=file 21 | SESSION_LIFETIME=120 22 | 23 | REDIS_HOST=127.0.0.1 24 | REDIS_PASSWORD=null 25 | REDIS_PORT=6379 26 | 27 | MAIL_MAILER=smtp 28 | MAIL_HOST=smtp.mailtrap.io 29 | MAIL_PORT=2525 30 | MAIL_USERNAME=null 31 | MAIL_PASSWORD=null 32 | MAIL_ENCRYPTION=null 33 | MAIL_FROM_ADDRESS=null 34 | MAIL_FROM_NAME="${APP_NAME}" 35 | 36 | AWS_ACCESS_KEY_ID= 37 | AWS_SECRET_ACCESS_KEY= 38 | AWS_DEFAULT_REGION=us-east-1 39 | AWS_BUCKET= 40 | 41 | PUSHER_APP_ID= 42 | PUSHER_APP_KEY= 43 | PUSHER_APP_SECRET= 44 | PUSHER_APP_CLUSTER=mt1 45 | 46 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 47 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 48 | -------------------------------------------------------------------------------- /.env.testing: -------------------------------------------------------------------------------- 1 | APP_NAME="Laravel-Vue POS&Inventory" 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | LOG_LEVEL=debug 9 | 10 | DB_CONNECTION=mysql 11 | DB_HOST=mysql 12 | DB_PORT=3306 13 | DB_DATABASE=testing 14 | DB_USERNAME=sail 15 | DB_PASSWORD=password 16 | 17 | BROADCAST_DRIVER=log 18 | CACHE_DRIVER=file 19 | QUEUE_CONNECTION=sync 20 | SESSION_DRIVER=file 21 | SESSION_LIFETIME=120 22 | 23 | REDIS_HOST=127.0.0.1 24 | REDIS_PASSWORD=null 25 | REDIS_PORT=6379 26 | 27 | MAIL_MAILER=smtp 28 | MAIL_HOST=smtp.mailtrap.io 29 | MAIL_PORT=2525 30 | MAIL_USERNAME=null 31 | MAIL_PASSWORD=null 32 | MAIL_ENCRYPTION=null 33 | MAIL_FROM_ADDRESS=null 34 | MAIL_FROM_NAME="${APP_NAME}" 35 | 36 | AWS_ACCESS_KEY_ID= 37 | AWS_SECRET_ACCESS_KEY= 38 | AWS_DEFAULT_REGION=us-east-1 39 | AWS_BUCKET= 40 | 41 | PUSHER_APP_ID= 42 | PUSHER_APP_KEY= 43 | PUSHER_APP_SECRET= 44 | PUSHER_APP_CLUSTER=mt1 45 | 46 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 47 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 48 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: abi-collab 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .todo/ 2 | /node_modules 3 | /public/hot 4 | /public/storage 5 | /storage/*.key 6 | /vendor 7 | .env 8 | .env.backup 9 | .phpunit.result.cache 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | reports/ 15 | .idea 16 | -------------------------------------------------------------------------------- /.rnd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/.rnd -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | disabled: 4 | - no_unused_imports 5 | finder: 6 | not-name: 7 | - index.php 8 | - server.php 9 | js: 10 | finder: 11 | not-name: 12 | - webpack.mix.js 13 | css: true 14 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Open-Source Laravel+Vue Point of Sale(POS) & Inventory System 2 | We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: 3 | 4 | - Reporting a bug 5 | - Discussing the current state of the code 6 | - Submitting a fix 7 | - Proposing new features 8 | - Becoming a maintainer 9 | 10 | ## We Develop with Github 11 | We use github to host code, to track issues and feature requests, as well as accept pull requests. 12 | 13 | ## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests 14 | Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests: 15 | 16 | 1. Fork the repo and create your branch from `master`. 17 | 2. If you've added code that should be tested, add tests. 18 | 3. If you've changed APIs, update the documentation. 19 | 4. Ensure the test suite passes. 20 | 5. Make sure your code lints. 21 | 6. Issue that pull request! 22 | 23 | ## Any contributions you make will be under the MIT Software License 24 | In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. 25 | 26 | ## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues) 27 | We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy! 28 | 29 | ## Write bug reports with detail, background, and sample code 30 | [This is an example](http://stackoverflow.com/q/12488905/180626) of a bug report. Here's [another example from Craig Hockenberry](http://www.openradar.me/11905408), an app developer. 31 | 32 | **Great Bug Reports** tend to have: 33 | 34 | - A quick summary and/or background 35 | - Steps to reproduce 36 | - Be specific! 37 | - Give sample code if you can. [My stackoverflow question](http://stackoverflow.com/q/12488905/180626) includes sample code that *anyone* with a base R setup can run to reproduce what I was seeing 38 | - What you expected would happen 39 | - What actually happens 40 | - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) 41 | 42 | ## Use a Consistent Coding Style 43 | 44 | * 2 spaces for indentation rather than tabs 45 | * You can try running `npm run lint` for style unification 46 | 47 | ## License 48 | By contributing, you agree that your contributions will be licensed under its MIT License. 49 | 50 | ## References 51 | This document was adapted from other open-source contribution guidelines 52 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 abi tolentino 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app/Console/Commands/MigrateInOrder.php: -------------------------------------------------------------------------------- 1 | call('migrate:refresh', [ 66 | '--path' => $path , 67 | ]); 68 | } 69 | 70 | return Command::SUCCESS; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('backup:run --only-db')->everyMinute(); 28 | // $schedule->command('backup:clean')->daily()->at('06:00'); 29 | // $schedule->command('backup:run')->daily()->at('06:30'); 30 | } 31 | 32 | /** 33 | * Register the commands for the application. 34 | * 35 | * @return void 36 | */ 37 | protected function commands() 38 | { 39 | $this->load(__DIR__.'/Commands'); 40 | 41 | require base_path('routes/console.php'); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | true, 22 | 'data' => $result, 23 | 'message' => $message, 24 | ]; 25 | 26 | 27 | return response()->json($response, 200); 28 | } 29 | 30 | 31 | /** 32 | * return error response. 33 | * 34 | * @param $error 35 | * @param array $errorMessages 36 | * @param int $code 37 | * 38 | * @return \Illuminate\Http\Response 39 | */ 40 | public function sendError($error, $errorMessages = [], $code = 404) 41 | { 42 | $response = [ 43 | 'success' => false, 44 | 'message' => $error, 45 | ]; 46 | 47 | 48 | if (!empty($errorMessages)) { 49 | $response['data'] = $errorMessages; 50 | } 51 | 52 | 53 | return response()->json($response, $code); 54 | } 55 | 56 | 57 | /** 58 | * return Unauthorized response. 59 | * 60 | * @param $error 61 | * @param int $code 62 | * 63 | * @return \Illuminate\Http\Response 64 | */ 65 | public function unauthorizedResponse($error = 'Forbidden', $code = 403) 66 | { 67 | $response = [ 68 | 'success' => false, 69 | 'message' => $error, 70 | ]; 71 | 72 | return response()->json($response, $code); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /app/Http/Controllers/API/V1/CategoryController.php: -------------------------------------------------------------------------------- 1 | middleware('auth:api'); 21 | $this->category = $category; 22 | } 23 | 24 | 25 | /** 26 | * Display a listing of the resource. 27 | * 28 | * @return \Illuminate\Http\Response 29 | */ 30 | public function index() 31 | { 32 | $categories = $this->category->latest()->paginate(10000); 33 | 34 | return $this->sendResponse($categories, 'Category list'); 35 | } 36 | 37 | /** 38 | * Display a listing of the resource. 39 | * 40 | * @return \Illuminate\Http\Response 41 | */ 42 | public function list() 43 | { 44 | $categories = $this->category->pluck('name', 'id','warranty'); 45 | 46 | return $this->sendResponse($categories, 'Category list'); 47 | } 48 | 49 | 50 | /** 51 | * Store a newly created resource in storage. 52 | * 53 | * 54 | * @param $id 55 | * 56 | * @return \Illuminate\Http\Response 57 | * @throws \Illuminate\Validation\ValidationException 58 | */ 59 | public function store(Request $request) 60 | { 61 | $tag = $this->category->create([ 62 | 'name' => $request->get('name'), 63 | 'description' => $request->get('description'), 64 | 'warranty' => $request->get('warranty'), 65 | ]); 66 | 67 | return $this->sendResponse($tag, 'Category Created Successfully'); 68 | } 69 | 70 | /** 71 | * Update the resource in storage 72 | * 73 | * @param $id 74 | * 75 | * @return \Illuminate\Http\Response 76 | * @throws \Illuminate\Validation\ValidationException 77 | */ 78 | public function update(Request $request, $id) 79 | { 80 | $tag = $this->category->findOrFail($id); 81 | 82 | $tag->update($request->all()); 83 | 84 | return $this->sendResponse($tag, 'Category Information has been updated'); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /app/Http/Controllers/API/V1/ProfileController.php: -------------------------------------------------------------------------------- 1 | middleware('auth:api'); 21 | } 22 | 23 | /** 24 | * Return the user data 25 | * 26 | * @return \Illuminate\Http\Response 27 | */ 28 | public function profile() 29 | { 30 | $response = [ 31 | 'success' => true, 32 | 'data' => auth('api')->user(), 33 | 'message' => 'User Profile', 34 | ]; 35 | return response()->json($response, 200); 36 | } 37 | 38 | 39 | /** 40 | * Update the profile by users 41 | * 42 | * @param \App\Http\Requests\Users\ProfileUpdateRequest $request 43 | * 44 | * @return \Illuminate\Http\Response 45 | * @throws \Illuminate\Validation\ValidationException 46 | */ 47 | public function updateProfile(ProfileUpdateRequest $request) 48 | { 49 | $user = auth('api')->user(); 50 | 51 | $user->update($request->all()); 52 | 53 | $response = [ 54 | 'success' => true, 55 | 'data' => $user, 56 | 'message' => 'Profile has been updated', 57 | ]; 58 | return response()->json($response, 200); 59 | } 60 | 61 | 62 | /** 63 | * Update the specified resource in storage. 64 | * 65 | * @param \App\Http\Requests\Users\ChangePasswordRequest $request 66 | * 67 | * @return \Illuminate\Http\Response 68 | */ 69 | public function changePassword(ChangePasswordRequest $request) 70 | { 71 | User::find(auth('api')->user()->id)->update(['password' => Hash::make($request->new_password)]); 72 | 73 | $response = [ 74 | 'success' => true, 75 | 'data' => [], 76 | 'message' => 'Password Has been updated', 77 | ]; 78 | return response()->json($response, 200); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /app/Http/Controllers/API/V1/TagController.php: -------------------------------------------------------------------------------- 1 | middleware('auth:api'); 21 | $this->tag = $tag; 22 | } 23 | 24 | /** 25 | * Display a listing of the resource. 26 | * 27 | * @return \Illuminate\Http\Response 28 | */ 29 | public function index() 30 | { 31 | $tags = $this->tag->latest()->paginate(10); 32 | 33 | return $this->sendResponse($tags, 'Tags list'); 34 | } 35 | 36 | /** 37 | * Display a listing of the resource. 38 | * 39 | * @return \Illuminate\Http\Response 40 | */ 41 | public function list() 42 | { 43 | $tags = $this->tag->get(['name', 'id']); 44 | 45 | return $this->sendResponse($tags, 'Tags list'); 46 | } 47 | 48 | 49 | /** 50 | * Store a newly created resource in storage. 51 | * 52 | * 53 | * @param $id 54 | * 55 | * @return \Illuminate\Http\Response 56 | * @throws \Illuminate\Validation\ValidationException 57 | */ 58 | public function store(Request $request) 59 | { 60 | $tag = $this->tag->create([ 61 | 'name' => $request->get('name') 62 | ]); 63 | 64 | return $this->sendResponse($tag, 'Tag Created Successfully'); 65 | } 66 | 67 | /** 68 | * Update the resource in storage 69 | * 70 | * @param $id 71 | * 72 | * @return \Illuminate\Http\Response 73 | * @throws \Illuminate\Validation\ValidationException 74 | */ 75 | public function update(Request $request, $id) 76 | { 77 | $tag = $this->tag->findOrFail($id); 78 | 79 | $tag->update($request->all()); 80 | 81 | return $this->sendResponse($tag, 'Tag Information has been updated'); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /app/Http/Controllers/API/V1/UserController.php: -------------------------------------------------------------------------------- 1 | middleware('auth:api'); 21 | } 22 | 23 | /** 24 | * Display a listing of the resource. 25 | * 26 | * @return \Illuminate\Http\Response 27 | */ 28 | public function index() 29 | { 30 | if (!Gate::allows('isAdmin')) { 31 | return $this->unauthorizedResponse(); 32 | } 33 | // $this->authorize('isAdmin'); 34 | 35 | $users = User::latest()->paginate(100); 36 | 37 | return $this->sendResponse($users, 'Users list'); 38 | } 39 | 40 | /** 41 | * Store a newly created resource in storage. 42 | * 43 | * @param \App\Http\Requests\Users\UserRequest $request 44 | * 45 | * @param $id 46 | * 47 | * @return \Illuminate\Http\Response 48 | * @throws \Illuminate\Validation\ValidationException 49 | */ 50 | public function store(UserRequest $request) 51 | { 52 | $user = User::create([ 53 | 'name' => $request['name'], 54 | 'email' => $request['email'], 55 | 'password' => Hash::make($request['password']), 56 | 'type' => $request['type'], 57 | ]); 58 | 59 | return $this->sendResponse($user, 'User Created Successfully'); 60 | } 61 | 62 | /** 63 | * Update the resource in storage 64 | * 65 | * @param \App\Http\Requests\Users\UserRequest $request 66 | * @param $id 67 | * 68 | * @return \Illuminate\Http\Response 69 | * @throws \Illuminate\Validation\ValidationException 70 | */ 71 | public function update(UserRequest $request, $id) 72 | { 73 | $user = User::findOrFail($id); 74 | 75 | if (!empty($request->password)) { 76 | $request->merge(['password' => Hash::make($request['password'])]); 77 | } 78 | 79 | $user->update($request->all()); 80 | 81 | return $this->sendResponse($user, 'User Information has been updated'); 82 | } 83 | 84 | /** 85 | * Remove the specified resource from storage. 86 | * 87 | * @param int $id 88 | * @return \Illuminate\Http\Response 89 | */ 90 | public function destroy($id) 91 | { 92 | 93 | $this->authorize('isAdmin'); 94 | 95 | $user = User::findOrFail($id); 96 | // delete the user 97 | 98 | $user->delete(); 99 | 100 | return $this->sendResponse([$user], 'User has been Deleted'); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/ClientController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 42 | } 43 | 44 | /** 45 | * Get a validator for an incoming registration request. 46 | * 47 | * @param array $data 48 | * @return \Illuminate\Contracts\Validation\Validator 49 | */ 50 | protected function validator(array $data) 51 | { 52 | return Validator::make($data, [ 53 | 'name' => ['required', 'string', 'max:255'], 54 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 55 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 56 | ]); 57 | } 58 | 59 | /** 60 | * Create a new user instance after a valid registration. 61 | * 62 | * @param array $data 63 | * @return \App\User 64 | */ 65 | protected function create(array $data) 66 | { 67 | $user = User::create([ 68 | 'name' => $data['name'], 69 | 'email' => $data['email'], 70 | 'password' => Hash::make($data['password']), 71 | 'type' => 'admin', 72 | ]); 73 | 74 | // Assigning Role by default user role 75 | 76 | // $role = Role::where('name', 'User')->first(); 77 | // $user->assignRole($role); 78 | 79 | return $user; 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 38 | $this->middleware('signed')->only('verify'); 39 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | latest()->paginate(10); 22 | 23 | return response()->json($customers); 24 | 25 | } 26 | 27 | /** 28 | * Show the form for creating a new resource. 29 | * 30 | * @return \Illuminate\Http\Response 31 | */ 32 | public function create() 33 | { 34 | // 35 | } 36 | 37 | /** 38 | * Store a newly created resource in storage. 39 | * 40 | * @param \Illuminate\Http\Request $request 41 | * @return \Illuminate\Http\Response 42 | */ 43 | public function store(Request $request) 44 | { 45 | $customer = Customer::create($request->all()); 46 | 47 | $customer->name = request('name'); 48 | $customer->contactNo = request('contactNo'); 49 | $customer->address = request('address'); 50 | 51 | 52 | // error_log(request('order_details')); 53 | return $customer; 54 | 55 | 56 | } 57 | 58 | /** 59 | * Display the specified resource. 60 | * 61 | * @param \App\Models\Customer $customer 62 | * @return \Illuminate\Http\Response 63 | */ 64 | public function show(Customer $customer) 65 | { 66 | // 67 | } 68 | 69 | /** 70 | * Show the form for editing the specified resource. 71 | * 72 | * @param \App\Models\Customer $customer 73 | * @return \Illuminate\Http\Response 74 | */ 75 | public function edit(Customer $customer) 76 | { 77 | // 78 | } 79 | 80 | /** 81 | * Update the specified resource in storage. 82 | * 83 | * @param \Illuminate\Http\Request $request 84 | * @param \App\Models\Customer $customer 85 | * @return \Illuminate\Http\Response 86 | */ 87 | public function update(Request $request, Customer $customer, $id) 88 | { 89 | $cus = $customer->findOrFail($id); 90 | $cus->update($request->all()); 91 | return response()->json(['message' => 'successful!', 'data' => $cus]); 92 | } 93 | 94 | /** 95 | * Remove the specified resource from storage. 96 | * 97 | * @param \App\Models\Customer $customer 98 | * @return \Illuminate\Http\Response 99 | */ 100 | public function destroy(Customer $customer, $id) 101 | { 102 | // $this->authorize('isAdmin'); 103 | 104 | $cus = $customer->findOrFail($id); 105 | 106 | $cus->delete(); 107 | 108 | return response()->json(['message' => 'successful!', 'data' => $cus]); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Controllers/InvoiceimagesController.php: -------------------------------------------------------------------------------- 1 | json($invoiceimages); 21 | } 22 | 23 | /** 24 | * Show the form for creating a new resource. 25 | * 26 | * @return \Illuminate\Http\Response 27 | */ 28 | public function create() 29 | { 30 | // 31 | } 32 | 33 | /** 34 | * Store a newly created resource in storage. 35 | * 36 | * @param \Illuminate\Http\Request $request 37 | * @return \Illuminate\Http\Response 38 | */ 39 | public function store(Request $request) 40 | { 41 | $image = $request->invoiceimg; // your base64 encoded 42 | $image = str_replace('data:image/png;base64,', '', $image); 43 | $image = str_replace(' ', '+', $image); 44 | $imageName = Str::random(10).'.'.'png'; 45 | \File::put(public_path(). './images/invoiceImgs/' . $imageName, base64_decode($image)); 46 | 47 | DB::table('invoiceimages')->insert(['imgId' => $request->imageid, 'invoiceimg' => $imageName]); 48 | 49 | 50 | } 51 | 52 | /** 53 | * Display the specified resource. 54 | * 55 | * @param \App\Models\invoiceimages $invoiceimages 56 | * @return \Illuminate\Http\Response 57 | */ 58 | public function show(invoiceimages $invoiceimages) 59 | { 60 | // 61 | } 62 | 63 | /** 64 | * Show the form for editing the specified resource. 65 | * 66 | * @param \App\Models\invoiceimages $invoiceimages 67 | * @return \Illuminate\Http\Response 68 | */ 69 | public function edit(invoiceimages $invoiceimages) 70 | { 71 | // 72 | } 73 | 74 | /** 75 | * Update the specified resource in storage. 76 | * 77 | * @param \Illuminate\Http\Request $request 78 | * @param \App\Models\invoiceimages $invoiceimages 79 | * @return \Illuminate\Http\Response 80 | */ 81 | public function update(Request $request, invoiceimages $invoiceimages) 82 | { 83 | // 84 | } 85 | 86 | /** 87 | * Remove the specified resource from storage. 88 | * 89 | * @param \App\Models\invoiceimages $invoiceimages 90 | * @return \Illuminate\Http\Response 91 | */ 92 | public function destroy(invoiceimages $invoiceimages) 93 | { 94 | // 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /app/Http/Controllers/PurchaseDetailsController.php: -------------------------------------------------------------------------------- 1 | [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 38 | \App\Http\Middleware\VerifyCsrfToken::class, 39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 40 | \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class, 41 | ], 42 | 43 | 'api' => [ 44 | 'throttle:api', 45 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 46 | ], 47 | ]; 48 | 49 | /** 50 | * The application's route middleware. 51 | * 52 | * These middleware may be assigned to groups or used individually. 53 | * 54 | * @var array 55 | */ 56 | protected $routeMiddleware = [ 57 | 'auth' => \App\Http\Middleware\Authenticate::class, 58 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 64 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 65 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 66 | ]; 67 | } 68 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/CheckForMaintenanceMode.php: -------------------------------------------------------------------------------- 1 | check()) { 26 | return redirect(RouteServiceProvider::HOME); 27 | } 28 | } 29 | 30 | return $next($request); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | isMethod('post')) { 27 | return $this->createRules(); 28 | } elseif ($this->isMethod('put')) { 29 | return $this->updateRules(); 30 | } 31 | } 32 | /** 33 | * Define validation rules to store method for resource creation 34 | * 35 | * @return array 36 | */ 37 | public function createRules(): array 38 | { 39 | return [ 40 | 'category_id' => 'required|integer|exists:categories,id', 41 | 'name' => 'required|string|max:191', 42 | 'description' => 'required|string|max:1000', 43 | 'price' => 'required|numeric', 44 | 'stocks' => 'required|numeric', 45 | // 'qty' => 'required|numeric', 46 | 47 | // 'tags' => 'required|array', 48 | // 'photo' => 'sometimes|files', 49 | ]; 50 | } 51 | 52 | /** 53 | * Define validation rules to update method for resource update 54 | * 55 | * @return array 56 | */ 57 | public function updateRules(): array 58 | { 59 | return [ 60 | 'category_id' => 'required|integer|exists:categories,id', 61 | 'name' => 'required|string|max:191', 62 | 'description' => 'required|string|max:1000', 63 | 'price' => 'required|numeric', 64 | 'stocks' => 'required|numeric', 65 | // 'qty' => 'required|numeric' 66 | // 'tags' => 'required|array', 67 | // 'photo' => 'sometimes|files', 68 | ]; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /app/Http/Requests/Users/ChangePasswordRequest.php: -------------------------------------------------------------------------------- 1 | ['required', new MatchOldPassword], 29 | 'new_password' => 'required|min:6', 30 | 'confirm_password' => 'required|same:new_password', 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Requests/Users/ProfileUpdateRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:191', 28 | 'email' => 'required|string|email|max:191|unique:users,email,' . $this->user()->id 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Http/Requests/Users/UserRequest.php: -------------------------------------------------------------------------------- 1 | isMethod('post')) { 27 | return $this->createRules(); 28 | } elseif ($this->isMethod('put')) { 29 | return $this->updateRules(); 30 | } 31 | } 32 | 33 | /** 34 | * Define validation rules to store method for resource creation 35 | * 36 | * @return array 37 | */ 38 | public function createRules(): array 39 | { 40 | return [ 41 | 'type' => 'required|in:admin,user', 42 | 'name' => 'required|string|max:191', 43 | 'email' => 'required|string|email|max:191|unique:users', 44 | 'password' => 'required|string|min:6' 45 | ]; 46 | } 47 | 48 | /** 49 | * Define validation rules to update method for resource update 50 | * 51 | * @return array 52 | */ 53 | public function updateRules(): array 54 | { 55 | return [ 56 | 'type' => 'sometimes|in:admin,user', 57 | 'name' => 'sometimes|string|max:191', 58 | 'email' => 'sometimes|string|email|max:191|unique:users,email,' . $this->get('id') 59 | ]; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /app/Models/Category.php: -------------------------------------------------------------------------------- 1 | belongsTo(Category::class); 27 | } 28 | 29 | public function tags() 30 | { 31 | return $this->belongsToMany(Tag::class)->select(['name as text','id']); 32 | } 33 | 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /app/Models/PurchaseDetails.php: -------------------------------------------------------------------------------- 1 | belongsToMany(User::class); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Models/Tag.php: -------------------------------------------------------------------------------- 1 | 'datetime', 42 | ]; 43 | 44 | /** 45 | * Get the profile photo URL attribute. 46 | * 47 | * @return string 48 | */ 49 | public function getPhotoAttribute() 50 | { 51 | return 'https://www.gravatar.com/avatar/' . md5(strtolower($this->email)) . '.jpg?s=200&d=mm'; 52 | } 53 | 54 | public function roles() 55 | { 56 | return $this->belongsToMany(Role::class); 57 | } 58 | 59 | /** 60 | * Assigning User role 61 | * 62 | * @param \App\Models\Role $role 63 | */ 64 | public function assignRole(Role $role) 65 | { 66 | return $this->roles()->save($role); 67 | } 68 | 69 | public function isAdmin() 70 | { 71 | return $this->roles()->where('name', 'Admin')->exists(); 72 | } 73 | 74 | public function isUser() 75 | { 76 | return $this->roles()->where('name', 'User')->exists(); 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /app/Models/invoice.php: -------------------------------------------------------------------------------- 1 | 'array']; 26 | } 27 | -------------------------------------------------------------------------------- /app/Models/invoiceimages.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 18 | ]; 19 | 20 | /** 21 | * Register any authentication / authorization services. 22 | * 23 | * @return void 24 | */ 25 | public function boot() 26 | { 27 | $this->registerPolicies(); 28 | 29 | Passport::routes(); 30 | 31 | /** 32 | * Defining the user Roles 33 | */ 34 | Gate::define('isAdmin', function ($user) { 35 | // if ($user->isAdmin()) { 36 | // return true; 37 | // } 38 | 39 | // for simplicity 40 | return $user->type === 'admin'; 41 | }); 42 | 43 | Gate::define('isUser', function ($user) { 44 | // if ($user->isUser()) { 45 | // return true; 46 | // } 47 | 48 | // for simplicity 49 | return $user->type === 'user'; 50 | }); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/ProductRepositoryServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->bind( 12 | 'App\Repositories\ProductRepositoryInterface', 13 | 'App\Repositories\ProductRepository' 14 | ); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 39 | 40 | $this->routes(function () { 41 | Route::prefix('api') 42 | ->middleware('api') 43 | ->namespace($this->namespace) 44 | ->group(base_path('routes/api.php')); 45 | 46 | Route::middleware('web') 47 | ->namespace($this->namespace) 48 | ->group(base_path('routes/web.php')); 49 | }); 50 | } 51 | 52 | /** 53 | * Configure the rate limiters for the application. 54 | * 55 | * @return void 56 | */ 57 | protected function configureRateLimiting() 58 | { 59 | RateLimiter::for('api', function (Request $request) { 60 | return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); 61 | }); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/Repositories/ProductRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | user()->password); 20 | } 21 | 22 | /** 23 | * Get the validation error message. 24 | * 25 | * @return string 26 | */ 27 | public function message() 28 | { 29 | return 'The :attribute is not match with old password.'; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Traits/Uuids.php: -------------------------------------------------------------------------------- 1 | {$model->getKeyName()})) { 14 | $model->{$model->getKeyName()} = Str::uuid()->toString(); 15 | } 16 | }); 17 | } 18 | /** 19 | * Get the value indicating whether the IDs are incrementing. 20 | * 21 | * @return bool 22 | */ 23 | public function getIncrementing() 24 | { 25 | return false; 26 | } 27 | /** 28 | * Get the auto-incrementing key type. 29 | * 30 | * @return string 31 | */ 32 | public function getKeyType() 33 | { 34 | return 'string'; 35 | } 36 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /azure-pipelines.yml: -------------------------------------------------------------------------------- 1 | # PHP 2 | # Test and package your PHP project. 3 | # Add steps that run tests, save build artifacts, deploy, and more: 4 | # https://docs.microsoft.com/azure/devops/pipelines/languages/php 5 | 6 | trigger: 7 | - master 8 | 9 | pool: 10 | vmImage: 'ubuntu-latest' 11 | 12 | variables: 13 | phpVersion: 7.3 14 | 15 | steps: 16 | - script: | 17 | sudo update-alternatives --set php /usr/bin/php$(phpVersion) 18 | sudo update-alternatives --set phar /usr/bin/phar$(phpVersion) 19 | sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion) 20 | sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion) 21 | sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion) 22 | php -version 23 | displayName: 'Use PHP version $(phpVersion)' 24 | 25 | - script: composer install --no-interaction --prefer-dist 26 | displayName: 'composer install' 27 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": [ 6 | "framework", 7 | "laravel" 8 | ], 9 | "license": "MIT", 10 | "require": { 11 | "php": "^8.0.2", 12 | "fruitcake/laravel-cors": "^2.0", 13 | "guzzlehttp/guzzle": "^7.0.1", 14 | "laravel/framework": "^9.0", 15 | "laravel/legacy-factories": "^1.1", 16 | "laravel/passport": "^10.0", 17 | "laravel/tinker": "^2.5", 18 | "laravel/ui": "^3.1", 19 | "milon/barcode": "^9.0", 20 | "spatie/laravel-health": "^1.8", 21 | "spatie/laravel-backup": "^8.0" 22 | }, 23 | "require-dev": { 24 | "fakerphp/faker": "^1.9.1", 25 | "laravel/sail": "^1.15", 26 | "mockery/mockery": "^1.4.2", 27 | "nunomaduro/collision": "^6.1", 28 | "phpunit/phpunit": "^9.3.3", 29 | "spatie/laravel-ignition": "^1.0" 30 | }, 31 | "config": { 32 | "optimize-autoloader": true, 33 | "preferred-install": "dist", 34 | "sort-packages": true 35 | }, 36 | "extra": { 37 | "laravel": { 38 | "dont-discover": [] 39 | } 40 | }, 41 | "autoload": { 42 | "psr-4": { 43 | "App\\": "app/", 44 | "Database\\Factories\\": "database/factories/", 45 | "Database\\Seeders\\": "database/seeders/" 46 | } 47 | }, 48 | "autoload-dev": { 49 | "psr-4": { 50 | "Tests\\": "tests/" 51 | } 52 | }, 53 | "minimum-stability": "dev", 54 | "prefer-stable": true, 55 | "scripts": { 56 | "post-autoload-dump": [ 57 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 58 | "@php artisan package:discover --ansi" 59 | ], 60 | "post-root-package-install": [ 61 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 62 | ], 63 | "post-create-project-cmd": [ 64 | "@php artisan key:generate --ansi" 65 | ] 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /config.arg.txt: -------------------------------------------------------------------------------- 1 | :style:hidden 2 | 3 | C:\Users\Abi\laravel-starter\InventoryServer.bat -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/passport.php: -------------------------------------------------------------------------------- 1 | env('PASSPORT_PRIVATE_KEY'), 17 | 18 | 'public_key' => env('PASSPORT_PUBLIC_KEY'), 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /database/factories/CustomerFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->name, 27 | 'contactNo' => '090675765', 28 | 'address' => $this->faker->text(100), 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /database/factories/ProductFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->word, 28 | 'description' => $this->faker->text, 29 | 'price' => $this->faker->numberBetween($min = 100000, $max = 900000), 30 | 'category_id' => 5, 31 | 'photo' => 'images/cars/cima_1912_top_01.jpg.ximg.l_full_m.smart.jpg', 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->name, 28 | 'email' => $this->faker->unique()->safeEmail, 29 | 'email_verified_at' => now(), 30 | 'password' => Hash::make('123456'), // password 31 | 'remember_token' => Str::random(10), 32 | 'type' => 'admin', 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('type'); 20 | $table->string('email')->unique(); 21 | $table->timestamp('email_verified_at')->nullable(); 22 | $table->string('password'); 23 | $table->rememberToken(); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('users'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /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_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('uuid')->unique(); 19 | $table->text('connection'); 20 | $table->text('queue'); 21 | $table->longText('payload'); 22 | $table->longText('exception'); 23 | $table->timestamp('failed_at')->useCurrent(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('failed_jobs'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2019_12_09_044534_create_roles_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->string('name'); 19 | $table->string('description'); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('roles'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2019_12_09_082630_create_role_user_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->integer('role_id')->unsigned(); 19 | $table->integer('user_id')->unsigned(); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('role_user'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2019_12_09_094511_create_social_accounts_table.php: -------------------------------------------------------------------------------- 1 | integer('user_id'); 18 | $table->string('provider_user_id'); 19 | $table->string('provider'); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('social_accounts'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2019_12_27_065818_create_products_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | // $table->string('sku'); 19 | // $table->primary('sku'); 20 | $table->string('name'); 21 | $table->longText('description')->nullable(); 22 | $table->integer('price'); 23 | $table->integer('category_id'); 24 | $table->string('photo')->nullable(); 25 | $table->string('stocks'); 26 | $table->integer('sold')->nullable(); 27 | $table->integer('criticalLevel'); 28 | $table->string('authoredBy')->nullable(); 29 | $table->string('updatedBy')->nullable(); 30 | $table->string('update_reason')->nullable(); 31 | 32 | // $table->integer('serialno'); 33 | $table->timestamps(); 34 | $table->softDeletes(); 35 | }); 36 | } 37 | 38 | /** 39 | * Reverse the migrations. 40 | * 41 | * @return void 42 | */ 43 | public function down() 44 | { 45 | Schema::dropIfExists('products'); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /database/migrations/2019_12_27_070549_create_categories_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->string('name'); 19 | $table->longText('description')->nullable(); 20 | $table->integer('warranty')->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 | -------------------------------------------------------------------------------- /database/migrations/2019_12_27_070603_create_tags_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('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('tags'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /database/migrations/2020_01_08_113508_create_product_tag_pivot_table.php: -------------------------------------------------------------------------------- 1 | bigInteger('product_id'); 18 | $table->bigInteger('tag_id'); 19 | }); 20 | } 21 | 22 | /** 23 | * Reverse the migrations. 24 | * 25 | * @return void 26 | */ 27 | public function down() 28 | { 29 | Schema::dropIfExists('product_tag'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /database/migrations/2021_09_22_135852__create_customers_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('contactNo'); 20 | $table->string('address'); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /database/migrations/2021_09_22_135853_create_invoices_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('Id'); 18 | $table->string('ID'); 19 | $table->primary('ID'); 20 | $table->timestamps(); 21 | // $table->uuid('customer_ID'); 22 | $table->unsignedBigInteger('customer_ID'); 23 | 24 | $table->date('transaction_date'); 25 | $table->string('time'); 26 | $table->string('createdBy'); 27 | $table->foreign('customer_ID')->references('id')->on('customers')->onDelete('cascade'); 28 | $table->integer('amount_due'); 29 | 30 | // $table->string('product_id'); 31 | // $table->string('product_name'); 32 | // $table->string('description'); 33 | // $table->string('category'); 34 | // $table->integer('unit_price'); 35 | // $table->integer('order_qty'); 36 | // $table->integer('sub_amount'); 37 | // $table->integer('amount_due'); 38 | // $table->integer('status'); 39 | // $table->integer('status_description'); 40 | 41 | }); 42 | 43 | 44 | 45 | } 46 | 47 | /** 48 | * Reverse the migrations. 49 | * 50 | * @return void 51 | */ 52 | public function down() 53 | { 54 | Schema::dropIfExists('invoices'); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /database/migrations/2021_09_27_050112_create_purchase_details_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->timestamps(); 19 | $table->string('order_id'); 20 | $table->foreign('order_id')->references('ID')->on('purchases')->onDelete('cascade'); 21 | $table->unsignedBigInteger('sku')->nullable(); 22 | $table->foreign('sku')->references('id')->on('products')->onDelete('cascade'); 23 | $table->integer('qty'); 24 | 25 | 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('purchase_details'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2022_02_01_030308_create_serials_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->timestamps(); 19 | $table->unsignedBigInteger('ssku'); 20 | $table->foreign('ssku')->references('id')->on('products'); 21 | $table->string('serialnumber'); 22 | $table->string('orderno')->nullable(); 23 | $table->string('orderdate')->nullable(); 24 | $table->string('returnno')->nullable(); 25 | $table->string('petsa'); 26 | $table->string('remarks')->nullable(); 27 | $table->unsignedBigInteger('customerid')->nullable(); 28 | $table->foreign('customerid')->references('id')->on('customers'); 29 | $table->string('imageid')->nullable(); 30 | $table->string('returnStatus')->nullable(); 31 | $table->string('authoredBy')->nullable(); 32 | $table->string('ser_createdBy')->nullable(); 33 | $table->string('ser_updatedBy')->nullable(); 34 | $table->string('ser_updatedAt')->nullable(); 35 | 36 | // $table->foreign('imageid')->references('imgId')->on('invoiceimages'); 37 | 38 | }); 39 | } 40 | 41 | /** 42 | * Reverse the migrations. 43 | * 44 | * @return void 45 | */ 46 | public function down() 47 | { 48 | Schema::dropIfExists('serials'); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /database/migrations/2022_03_08_102340_create_invoiceimages_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('imgId')->primary(); 19 | $table->timestamps(); 20 | $table->longText('invoiceimg'); 21 | 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('invoiceimages'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /database/seeders/CategoriesTableSeeder.php: -------------------------------------------------------------------------------- 1 | truncate(); 21 | 22 | DB::table('categories')->insert( 23 | [ 24 | [ 25 | 'name' => 'Laptop', 26 | 'description' => Str::words(50), 27 | 'warranty' => 30 28 | ], 29 | [ 30 | 'name' => 'Desktop Package', 31 | 'description' => Str::words(50), 32 | 'warranty' => 25 33 | ], 34 | [ 35 | 'name' => 'Computer Peripheral', 36 | 'description' => Str::words(50), 37 | 'warranty' => 7 38 | ] 39 | // [ 40 | // 'name' => 'Minivan', 41 | // 'description' => Str::words(50), 42 | // ], 43 | // [ 44 | // 'name' => 'Sports & Specialty', 45 | // 'description' => Str::words(50), 46 | // ], 47 | // [ 48 | // 'name' => 'Sedan', 49 | // 'description' => Str::words(50), 50 | // ], 51 | ] 52 | ); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | $this->call(UsersTableSeeder::class); 18 | $this->call(CategoriesTableSeeder::class); 19 | $this->call(TagsTableSeeder::class); 20 | $this->call(ProductsTableSeeder::class); 21 | //duplicate product for data 22 | // $this->call(ProductsTableSeeder::class); 23 | $this->call(customerSeeder::class); 24 | $this->call(SerialSeeder::class); 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /database/seeders/TagsTableSeeder.php: -------------------------------------------------------------------------------- 1 | truncate(); 20 | 21 | DB::table('tags')->insert( 22 | [ 23 | [ 24 | 'name' => '50% off' 25 | ], 26 | [ 27 | 'name' => '10% off' 28 | ], 29 | [ 30 | 'name' => 'Free Flash Drive' 31 | ], 32 | ] 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/seeders/UsersTableSeeder.php: -------------------------------------------------------------------------------- 1 | where('email', 'admin@gmail.com')->delete(); 21 | // DB::table('users')->where('email', 'abitolentino@gmail.com')->delete(); 22 | 23 | DB::table('users')->insert([ 24 | [ 25 | 'name' => 'John Doe', 26 | 'email' => 'admin@gmail.com', 27 | 'password' => bcrypt('123456'), 28 | 'type' => 'admin', 29 | ] 30 | // [ 31 | // 'name' => 'abi', 32 | // 'email' => 'abitolentino@gmail.com', 33 | // 'password' => 'abitolentino', 34 | // 'type' => 'admin', 35 | // ] 36 | ]); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/seeders/customerSeeder.php: -------------------------------------------------------------------------------- 1 | insert( 20 | // [ 21 | // [ 22 | // 'name' => 'Myrwen Dingal', 23 | // 'contactNo' => '0985155', 24 | // 'address' => 'CDO, Bukidnon', 25 | // ], 26 | // [ 27 | // 'name' => 'Robert', 28 | // 'contactNo' => '02323656', 29 | // 'address' => 'Negros Occidental', 30 | // ] 31 | // ] 32 | // ); 33 | // } 34 | public function run(){ 35 | // factory(Customer::class, 6)->create(); 36 | \App\Models\Customer::factory()->count(15)->create(); 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | # For more information: https://laravel.com/docs/sail 2 | version: '3' 3 | services: 4 | laravel.test: 5 | container_name: open-pos-inventory-system 6 | build: 7 | context: ./vendor/laravel/sail/runtimes/8.1 8 | dockerfile: Dockerfile 9 | args: 10 | WWWGROUP: '${WWWGROUP}' 11 | image: sail-8.1/app 12 | extra_hosts: 13 | - 'host.docker.internal:host-gateway' 14 | ports: 15 | - '${APP_PORT:-80}:80' 16 | - '${VITE_PORT:-5173}:${VITE_PORT:-5173}' 17 | environment: 18 | WWWUSER: '${WWWUSER}' 19 | LARAVEL_SAIL: 1 20 | XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}' 21 | XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}' 22 | volumes: 23 | - '.:/var/www/html' 24 | networks: 25 | - sail 26 | depends_on: 27 | - mysql 28 | mysql: 29 | image: 'mysql/mysql-server:8.0' 30 | ports: 31 | - '${FORWARD_DB_PORT:-3306}:3306' 32 | environment: 33 | MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' 34 | MYSQL_ROOT_HOST: "%" 35 | MYSQL_DATABASE: '${DB_DATABASE}' 36 | MYSQL_USER: '${DB_USERNAME}' 37 | MYSQL_PASSWORD: '${DB_PASSWORD}' 38 | MYSQL_ALLOW_EMPTY_PASSWORD: 1 39 | volumes: 40 | - 'sail-mysql:/var/lib/mysql' 41 | - './vendor/laravel/sail/database/mysql/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh' 42 | networks: 43 | - sail 44 | healthcheck: 45 | test: [ "CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}" ] 46 | retries: 3 47 | timeout: 5s 48 | networks: 49 | sail: 50 | driver: bridge 51 | volumes: 52 | sail-mysql: 53 | driver: local 54 | -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.3-fpm 2 | 3 | # Copy composer.lock and composer.json 4 | COPY composer.lock composer.json /var/www/ 5 | 6 | # Set working directory 7 | WORKDIR /var/www 8 | 9 | # Install dependencies 10 | RUN apt-get update && apt-get install -y \ 11 | build-essential \ 12 | mariadb-client \ 13 | libpng-dev \ 14 | libjpeg62-turbo-dev \ 15 | libfreetype6-dev \ 16 | libzip-dev \ 17 | locales \ 18 | zip \ 19 | jpegoptim optipng pngquant gifsicle \ 20 | vim \ 21 | unzip \ 22 | git \ 23 | curl 24 | 25 | # Clear cache 26 | RUN apt-get clean && rm -rf /var/lib/apt/lists/* 27 | 28 | # Install extensions 29 | RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl 30 | RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ 31 | RUN docker-php-ext-install gd 32 | 33 | # Install Postgre PDO 34 | RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql 35 | 36 | # Install composer 37 | RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer 38 | 39 | # Add user for laravel application 40 | RUN groupadd -g 1000 www 41 | RUN useradd -u 1000 -ms /bin/bash -g www www 42 | 43 | # Copy existing application directory contents 44 | COPY . /var/www 45 | 46 | # Copy existing application directory permissions 47 | COPY --chown=www:www . /var/www 48 | 49 | # Change current user to www 50 | USER www 51 | 52 | # Expose port 9000 and start php-fpm server 53 | EXPOSE 9000 54 | CMD ["php-fpm"] 55 | -------------------------------------------------------------------------------- /docker/nginx/conf.d/app.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | index index.php index.html; 4 | error_log /var/log/nginx/error.log; 5 | access_log /var/log/nginx/access.log; 6 | root /var/www/public; 7 | location ~ \.php$ { 8 | try_files $uri =404; 9 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 10 | fastcgi_pass app:9000; 11 | fastcgi_index index.php; 12 | include fastcgi_params; 13 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 14 | fastcgi_param PATH_INFO $fastcgi_path_info; 15 | } 16 | location / { 17 | try_files $uri $uri/ /index.php?$query_string; 18 | gzip_static on; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /docker/php/local.ini: -------------------------------------------------------------------------------- 1 | file_uploads = On 2 | allow_url_fopen = On 3 | memory_limit = 1G 4 | upload_max_filesize = 200M 5 | post_max_size = 400M 6 | max_input_vars = 1500 7 | -------------------------------------------------------------------------------- /nginx.conf: -------------------------------------------------------------------------------- 1 | add_header X-Frame-Options "SAMEORIGIN"; 2 | add_header X-XSS-Protection "1; mode=block"; 3 | add_header X-Content-Type-Options "nosniff"; 4 | 5 | index index.php index.html index.htm; 6 | 7 | charset utf-8; 8 | 9 | location / { 10 | auth_basic "Restricted"; 11 | auth_basic_user_file .htpasswd; 12 | 13 | try_files $uri $uri/ /index.php?$query_string; 14 | } 15 | 16 | location = /favicon.ico { access_log off; log_not_found off; } 17 | location = /robots.txt { access_log off; log_not_found off; } 18 | 19 | error_page 404 /index.php; 20 | 21 | location ~ /\.(?!well-known).* { 22 | deny all; 23 | } 24 | -------------------------------------------------------------------------------- /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 --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "@vue/composition-api": "^1.4.0-beta.0", 14 | "axios": "^0.21.4", 15 | "bootstrap": "^4.6.0", 16 | "cross-env": "^5.1", 17 | "jquery": "^3.6.0", 18 | "laravel-mix": "^5.0.9", 19 | "lodash": "^4.17.21", 20 | "popper.js": "^1.12", 21 | "resolve-url-loader": "^2.3.1", 22 | "sass": "^1.32.4", 23 | "sass-loader": "7.*", 24 | "vue": "^2.6.14", 25 | "vue-template-compiler": "^2.6.14" 26 | }, 27 | "dependencies": { 28 | "@fortawesome/fontawesome-free": "^5.15.2", 29 | "@johmun/vue-tags-input": "^2.1.0", 30 | "@orim181/vue-chartkick": "^0.6.1", 31 | "admin-lte": "^3.1.0", 32 | "bootstrap-vue": "^2.21.2", 33 | "chart.js": "^3.6.0", 34 | "echarts": "^5.2.2", 35 | "html2canvas": "^1.4.1", 36 | "laravel-vue-pagination": "^2.3.1", 37 | "moment": "^2.29.3", 38 | "moment-timezone": "^0.5.33", 39 | "sweetalert2": "^9.17.2", 40 | "vform": "^1.0.1", 41 | "vue-chartjs": "^1.1.3", 42 | "vue-chartkick": "^1.1.0", 43 | "vue-clickaway": "^2.2.2", 44 | "vue-d3-charts": "^0.2.8", 45 | "vue-echarts": "^6.0.0", 46 | "vue-google-charts": "^0.3.3", 47 | "vue-html-to-paper": "^1.4.4", 48 | "vue-json-excel": "^0.3.0", 49 | "vue-loader": "^15.9.8", 50 | "vue-progressbar": "^0.7.5", 51 | "vue-router": "^3.4.9" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/favicon.ico -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2 -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff -------------------------------------------------------------------------------- /public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2 -------------------------------------------------------------------------------- /public/forMDimgs/category.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/category.png -------------------------------------------------------------------------------- /public/forMDimgs/customers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/customers.png -------------------------------------------------------------------------------- /public/forMDimgs/dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/dashboard.png -------------------------------------------------------------------------------- /public/forMDimgs/invoice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/invoice.png -------------------------------------------------------------------------------- /public/forMDimgs/items.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/items.png -------------------------------------------------------------------------------- /public/forMDimgs/returns.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/returns.png -------------------------------------------------------------------------------- /public/forMDimgs/serialnos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/serialnos.png -------------------------------------------------------------------------------- /public/forMDimgs/standarduser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/standarduser.png -------------------------------------------------------------------------------- /public/forMDimgs/users.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/forMDimgs/users.png -------------------------------------------------------------------------------- /public/images/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/images/profile.png -------------------------------------------------------------------------------- /public/images/tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/images/tree.png -------------------------------------------------------------------------------- /public/imagesGt9yvs1Alv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abi-collab/open-pos-inventory-laravelvue/a05e77c4b2773733effec318d93da70be4f2f251/public/imagesGt9yvs1Alv.png -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = tap($kernel->handle( 52 | $request = Request::capture() 53 | ))->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/js/app.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v4.5.3 (https://getbootstrap.com/) 3 | * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 | */ 6 | 7 | /*! 8 | * AdminLTE v3.1.0 (https://adminlte.io) 9 | * Copyright 2014-2021 Colorlib 10 | * Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE) 11 | */ 12 | 13 | /*! 14 | * Sizzle CSS Selector Engine v2.3.6 15 | * https://sizzlejs.com/ 16 | * 17 | * Copyright JS Foundation and other contributors 18 | * Released under the MIT license 19 | * https://js.foundation/ 20 | * 21 | * Date: 2021-02-16 22 | */ 23 | 24 | /*! 25 | * Vue.js v2.6.12 26 | * (c) 2014-2020 Evan You 27 | * Released under the MIT License. 28 | */ 29 | 30 | /*! 31 | * jQuery JavaScript Library v3.6.0 32 | * https://jquery.com/ 33 | * 34 | * Includes Sizzle.js 35 | * https://sizzlejs.com/ 36 | * 37 | * Copyright OpenJS Foundation and other contributors 38 | * Released under the MIT license 39 | * https://jquery.org/license 40 | * 41 | * Date: 2021-03-02T17:08Z 42 | */ 43 | 44 | /** 45 | * @license 46 | * Lodash 47 | * Copyright OpenJS Foundation and other contributors 48 | * Released under MIT license 49 | * Based on Underscore.js 1.8.3 50 | * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 51 | */ 52 | 53 | /**! 54 | * @fileOverview Kickass library to create and place poppers near their reference elements. 55 | * @version 1.16.1 56 | * @license 57 | * Copyright (c) 2016 Federico Zivolo and contributors 58 | * 59 | * Permission is hereby granted, free of charge, to any person obtaining a copy 60 | * of this software and associated documentation files (the "Software"), to deal 61 | * in the Software without restriction, including without limitation the rights 62 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 63 | * copies of the Software, and to permit persons to whom the Software is 64 | * furnished to do so, subject to the following conditions: 65 | * 66 | * The above copyright notice and this permission notice shall be included in all 67 | * copies or substantial portions of the Software. 68 | * 69 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 70 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 71 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 72 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 73 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 74 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 75 | * SOFTWARE. 76 | */ 77 | 78 | //! moment.js 79 | 80 | //! moment.js locale configuration 81 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /resources/js/Gate.js: -------------------------------------------------------------------------------- 1 | export default class Gate{ 2 | 3 | constructor(user){ 4 | this.user = user; 5 | } 6 | 7 | isAdmin(){ 8 | return this.user.type === 'admin'; 9 | } 10 | 11 | isUser(){ 12 | return this.user.type === 'user'; 13 | } 14 | 15 | isAdminOrUser(){ 16 | if(this.user.type === 'user' || this.user.type === 'admin'){ 17 | return true; 18 | } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | window._ = require('lodash'); 2 | 3 | /** 4 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 5 | * for JavaScript based Bootstrap features such as modals and tabs. This 6 | * code may be modified to fit the specific needs of your application. 7 | */ 8 | 9 | try { 10 | window.Popper = require('popper.js').default; 11 | window.$ = window.jQuery = require('jquery'); 12 | 13 | require('bootstrap'); 14 | require('admin-lte'); 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.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content; 37 | } else { 38 | console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); 39 | } 40 | -------------------------------------------------------------------------------- /resources/js/components/Developer.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 22 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /resources/js/routes.js: -------------------------------------------------------------------------------- 1 | export default [ 2 | { path: '/dashboard', component: require('./components/Dashboard.vue').default }, 3 | { path: '/invoice', component: require('./components/invoice.vue').default }, 4 | { path: '/profile', component: require('./components/Profile.vue').default }, 5 | { path: '/developer', component: require('./components/Developer.vue').default }, 6 | { path: '/customers', component: require('./components/Customers.vue').default }, 7 | { path: '/users', component: require('./components/Users.vue').default }, 8 | { path: '/products', component: require('./components/product/Products.vue').default }, 9 | { path: '/product/tag', component: require('./components/product/Tag.vue').default }, 10 | { path: '/product/category', component: require('./components/product/Category.vue').default }, 11 | { path: '/serialnos', component: require('./components/product/Serialnos.vue').default }, 12 | { path: '/returns', component: require('./components/Returns.vue').default }, 13 | { path: '*', component: require('./components/NotFound.vue').default }, 14 | 15 | ]; 16 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'لم يتم عمل نسخ احتياطية حتى الآن', 37 | 'application_name' => 'اسم التطبيق', 38 | 'backup_name' => 'اسم النسخ الاحتياطي', 39 | 'disk' => 'القرص', 40 | 'newest_backup_size' => 'أحدث حجم للنسخ الاحتياطي', 41 | 'number_of_backups' => 'عدد النسخ الاحتياطية', 42 | 'total_storage_used' => 'إجمالي مساحة التخزين المستخدمة', 43 | 'newest_backup_date' => 'أحدث تاريخ النسخ الاحتياطي', 44 | 'oldest_backup_date' => 'أقدم تاريخ نسخ احتياطي', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/bn/notifications.php: -------------------------------------------------------------------------------- 1 | 'এক্সসেপশন বার্তা: :message', 5 | 'exception_trace' => 'এক্সসেপশন ট্রেস: :trace', 6 | 'exception_message_title' => 'এক্সসেপশন message', 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 এর ব্যাকআপগুলি স্বাস্থ্যকর বিবেচনা করা হচ্ছে। Good job!', 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 | 'no_backups_info' => 'কোনো ব্যাকআপ এখনও তৈরি হয়নি', 37 | 'application_name' => 'আবেদনের নাম', 38 | 'backup_name' => 'ব্যাকআপের নাম', 39 | 'disk' => 'ডিস্ক', 40 | 'newest_backup_size' => 'নতুন ব্যাকআপ আকার', 41 | 'number_of_backups' => 'ব্যাকআপের সংখ্যা', 42 | 'total_storage_used' => 'ব্যবহৃত মোট সঞ্চয়স্থান', 43 | 'newest_backup_date' => 'নতুন ব্যাকআপের তারিখ', 44 | 'oldest_backup_date' => 'পুরানো ব্যাকআপের তারিখ', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/cs/notifications.php: -------------------------------------------------------------------------------- 1 | 'Zpráva výjimky: :message', 5 | 'exception_trace' => 'Stopa výjimky: :trace', 6 | 'exception_message_title' => 'Zpráva výjimky', 7 | 'exception_trace_title' => 'Stopa výjimky', 8 | 9 | 'backup_failed_subject' => 'Záloha :application_name neuspěla', 10 | 'backup_failed_body' => 'Důležité: Při záloze :application_name se vyskytla chyba', 11 | 12 | 'backup_successful_subject' => 'Úspěšná nová záloha :application_name', 13 | 'backup_successful_subject_title' => 'Úspěšná nová záloha!', 14 | 'backup_successful_body' => 'Dobrá zpráva, na disku jménem :disk_name byla úspěšně vytvořena nová záloha :application_name.', 15 | 16 | 'cleanup_failed_subject' => 'Vyčištění záloh :application_name neuspělo.', 17 | 'cleanup_failed_body' => 'Při vyčištění záloh :application_name se vyskytla chyba', 18 | 19 | 'cleanup_successful_subject' => 'Vyčištění záloh :application_name úspěšné', 20 | 'cleanup_successful_subject_title' => 'Vyčištění záloh bylo úspěšné!', 21 | 'cleanup_successful_body' => 'Vyčištění záloh :application_name na disku jménem :disk_name bylo úspěšné.', 22 | 23 | 'healthy_backup_found_subject' => 'Zálohy pro :application_name na disku :disk_name jsou zdravé', 24 | 'healthy_backup_found_subject_title' => 'Zálohy pro :application_name jsou zdravé', 25 | 'healthy_backup_found_body' => 'Zálohy pro :application_name jsou považovány za zdravé. Dobrá práce!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Důležité: Zálohy pro :application_name jsou nezdravé', 28 | 'unhealthy_backup_found_subject_title' => 'Důležité: Zálohy pro :application_name jsou nezdravé. :problem', 29 | 'unhealthy_backup_found_body' => 'Zálohy pro :application_name na disku :disk_name Jsou nezdravé.', 30 | 'unhealthy_backup_found_not_reachable' => 'Nelze se dostat k cíli zálohy. :error', 31 | 'unhealthy_backup_found_empty' => 'Tato aplikace nemá vůbec žádné zálohy.', 32 | 'unhealthy_backup_found_old' => 'Poslední záloha vytvořená dne :date je považována za příliš starou.', 33 | 'unhealthy_backup_found_unknown' => 'Omlouváme se, nemůžeme určit přesný důvod.', 34 | 'unhealthy_backup_found_full' => 'Zálohy zabírají příliš mnoho místa na disku. Aktuální využití disku je :disk_usage, což je vyšší než povolený limit :disk_limit.', 35 | 36 | 'no_backups_info' => 'Zatím nebyly vytvořeny žádné zálohy', 37 | 'application_name' => 'Název aplikace', 38 | 'backup_name' => 'Název zálohy', 39 | 'disk' => 'Disk', 40 | 'newest_backup_size' => 'Nejnovější velikost zálohy', 41 | 'number_of_backups' => 'Počet záloh', 42 | 'total_storage_used' => 'Celková využitá kapacita úložiště', 43 | 'newest_backup_date' => 'Nejnovější velikost zálohy', 44 | 'oldest_backup_date' => 'Nejstarší velikost zálohy', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'Der blev ikke foretaget nogen sikkerhedskopier endnu', 37 | 'application_name' => 'Ansøgningens navn', 38 | 'backup_name' => 'Backup navn', 39 | 'disk' => 'Disk', 40 | 'newest_backup_size' => 'Nyeste backup-størrelse', 41 | 'number_of_backups' => 'Antal sikkerhedskopier', 42 | 'total_storage_used' => 'Samlet lagerplads brugt', 43 | 'newest_backup_date' => 'Nyeste backup-størrelse', 44 | 'oldest_backup_date' => 'Ældste backup-størrelse', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'Bisher keine Backups vorhanden', 37 | 'application_name' => 'Applikationsname', 38 | 'backup_name' => 'Backup Name', 39 | 'disk' => 'Speicherort', 40 | 'newest_backup_size' => 'Neuste Backup-Größe', 41 | 'number_of_backups' => 'Anzahl Backups', 42 | 'total_storage_used' => 'Gesamter genutzter Speicherplatz', 43 | 'newest_backup_date' => 'Neustes Backup', 44 | 'oldest_backup_date' => 'Ältestes Backup', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 backup 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 | 'no_backups_info' => 'No backups were made yet', 37 | 'application_name' => 'Application name', 38 | 'backup_name' => 'Backup name', 39 | 'disk' => 'Disk', 40 | 'newest_backup_size' => 'Newest backup size', 41 | 'number_of_backups' => 'Number of backups', 42 | 'total_storage_used' => 'Total storage used', 43 | 'newest_backup_date' => 'Newest backup date', 44 | 'oldest_backup_date' => 'Oldest backup date', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'هنوز نسخه پشتیبان تهیه نشده است', 37 | 'application_name' => 'نام نرم افزار', 38 | 'backup_name' => 'نام پشتیبان', 39 | 'disk' => 'دیسک', 40 | 'newest_backup_size' => 'جدیدترین اندازه پشتیبان', 41 | 'number_of_backups' => 'تعداد پشتیبان گیری', 42 | 'total_storage_used' => 'کل فضای ذخیره سازی استفاده شده', 43 | 'newest_backup_date' => 'جدیدترین اندازه پشتیبان', 44 | 'oldest_backup_date' => 'قدیمی ترین اندازه پشتیبان', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/fi/notifications.php: -------------------------------------------------------------------------------- 1 | 'Virheilmoitus: :message', 5 | 'exception_trace' => 'Virhe, jäljitys: :trace', 6 | 'exception_message_title' => 'Virheilmoitus', 7 | 'exception_trace_title' => 'Virheen jäljitys', 8 | 9 | 'backup_failed_subject' => ':application_name varmuuskopiointi epäonnistui', 10 | 'backup_failed_body' => 'HUOM!: :application_name varmuuskoipionnissa tapahtui virhe', 11 | 12 | 'backup_successful_subject' => ':application_name varmuuskopioitu onnistuneesti', 13 | 'backup_successful_subject_title' => 'Uusi varmuuskopio!', 14 | 'backup_successful_body' => 'Hyviä uutisia! :application_name on varmuuskopioitu levylle :disk_name.', 15 | 16 | 'cleanup_failed_subject' => ':application_name varmuuskopioiden poistaminen epäonnistui.', 17 | 'cleanup_failed_body' => ':application_name varmuuskopioiden poistamisessa tapahtui virhe.', 18 | 19 | 'cleanup_successful_subject' => ':application_name varmuuskopiot poistettu onnistuneesti', 20 | 'cleanup_successful_subject_title' => 'Varmuuskopiot poistettu onnistuneesti!', 21 | 'cleanup_successful_body' => ':application_name varmuuskopiot poistettu onnistuneesti levyltä :disk_name.', 22 | 23 | 'healthy_backup_found_subject' => ':application_name varmuuskopiot levyllä :disk_name ovat kunnossa', 24 | 'healthy_backup_found_subject_title' => ':application_name varmuuskopiot ovat kunnossa', 25 | 'healthy_backup_found_body' => ':application_name varmuuskopiot ovat kunnossa. Hieno homma!', 26 | 27 | 'unhealthy_backup_found_subject' => 'HUOM!: :application_name varmuuskopiot ovat vialliset', 28 | 'unhealthy_backup_found_subject_title' => 'HUOM!: :application_name varmuuskopiot ovat vialliset. :problem', 29 | 'unhealthy_backup_found_body' => ':application_name varmuuskopiot levyllä :disk_name ovat vialliset.', 30 | 'unhealthy_backup_found_not_reachable' => 'Varmuuskopioiden kohdekansio ei ole saatavilla. :error', 31 | 'unhealthy_backup_found_empty' => 'Tästä sovelluksesta ei ole varmuuskopioita.', 32 | 'unhealthy_backup_found_old' => 'Viimeisin varmuuskopio, luotu :date, on liian vanha.', 33 | 'unhealthy_backup_found_unknown' => 'Virhe, tarkempaa tietoa syystä ei valitettavasti ole saatavilla.', 34 | 'unhealthy_backup_found_full' => 'Varmuuskopiot vievät liikaa levytilaa. Tällä hetkellä käytössä :disk_usage, mikä on suurempi kuin sallittu tilavuus (:disk_limit).', 35 | 36 | 'no_backups_info' => 'Varmuuskopioita ei vielä tehty', 37 | 'application_name' => 'Sovelluksen nimi', 38 | 'backup_name' => 'Varmuuskopion nimi', 39 | 'disk' => 'Levy', 40 | 'newest_backup_size' => 'Uusin varmuuskopion koko', 41 | 'number_of_backups' => 'Varmuuskopioiden määrä', 42 | 'total_storage_used' => 'Käytetty tallennustila yhteensä', 43 | 'newest_backup_date' => 'Uusin varmuuskopion koko', 44 | 'oldest_backup_date' => 'Vanhin varmuuskopion koko', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'अभी तक कोई बैकअप नहीं बनाया गया था', 37 | 'application_name' => 'आवेदन का नाम', 38 | 'backup_name' => 'बैकअप नाम', 39 | 'disk' => 'डिस्क', 40 | 'newest_backup_size' => 'नवीनतम बैकअप आकार', 41 | 'number_of_backups' => 'बैकअप की संख्या', 42 | 'total_storage_used' => 'उपयोग किया गया कुल संग्रहण', 43 | 'newest_backup_date' => 'नवीनतम बैकअप आकार', 44 | 'oldest_backup_date' => 'सबसे पुराना बैकअप आकार', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'Belum ada backup yang dibuat', 37 | 'application_name' => 'Nama aplikasi', 38 | 'backup_name' => 'Nama cadangan', 39 | 'disk' => 'Disk', 40 | 'newest_backup_size' => 'Ukuran cadangan terbaru', 41 | 'number_of_backups' => 'Jumlah cadangan', 42 | 'total_storage_used' => 'Total penyimpanan yang digunakan', 43 | 'newest_backup_date' => 'Ukuran cadangan terbaru', 44 | 'oldest_backup_date' => 'Ukuran cadangan tertua', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'Non sono stati ancora effettuati backup', 37 | 'application_name' => 'Nome dell\'applicazione', 38 | 'backup_name' => 'Nome di backup', 39 | 'disk' => 'Disco', 40 | 'newest_backup_size' => 'Dimensione backup più recente', 41 | 'number_of_backups' => 'Numero di backup', 42 | 'total_storage_used' => 'Spazio di archiviazione totale utilizzato', 43 | 'newest_backup_date' => 'Dimensione backup più recente', 44 | 'oldest_backup_date' => 'Dimensione backup più vecchia', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/ja/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' => '朗報です。ディスク :disk_name へ :application_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' => 'ディスク :disk_name に保存された :application_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 | 'no_backups_info' => 'バックアップはまだ作成されていません', 37 | 'application_name' => 'アプリケーション名', 38 | 'backup_name' => 'バックアップ名', 39 | 'disk' => 'ディスク', 40 | 'newest_backup_size' => '最新のバックアップサイズ', 41 | 'number_of_backups' => 'バックアップ数', 42 | 'total_storage_used' => '使用された合計ストレージ', 43 | 'newest_backup_date' => '最新のバックアップ日時', 44 | 'oldest_backup_date' => '最も古いバックアップ日時', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/nl/notifications.php: -------------------------------------------------------------------------------- 1 | 'Fout bericht: :message', 5 | 'exception_trace' => 'Fout trace: :trace', 6 | 'exception_message_title' => 'Fout bericht', 7 | 'exception_trace_title' => 'Fout trace', 8 | 9 | 'backup_failed_subject' => 'Back-up van :application_name mislukt', 10 | 'backup_failed_body' => 'Belangrijk: Er ging iets fout tijdens het maken van een back-up van :application_name', 11 | 12 | 'backup_successful_subject' => 'Succesvolle nieuwe back-up van :application_name', 13 | 'backup_successful_subject_title' => 'Succesvolle nieuwe back-up!', 14 | 'backup_successful_body' => 'Goed nieuws, een nieuwe back-up van :application_name was succesvol aangemaakt op de schijf genaamd :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Het opschonen van de back-ups van :application_name is mislukt.', 17 | 'cleanup_failed_body' => 'Er ging iets fout tijdens het opschonen van de back-ups van :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Opschonen van :application_name back-ups was succesvol.', 20 | 'cleanup_successful_subject_title' => 'Opschonen van back-ups was succesvol!', 21 | 'cleanup_successful_body' => 'Het opschonen van de :application_name back-ups op de schijf genaamd :disk_name was succesvol.', 22 | 23 | 'healthy_backup_found_subject' => 'De back-ups voor :application_name op schijf :disk_name zijn gezond', 24 | 'healthy_backup_found_subject_title' => 'De back-ups voor :application_name zijn gezond', 25 | 'healthy_backup_found_body' => 'De back-ups voor :application_name worden als gezond beschouwd. Goed gedaan!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Belangrijk: De back-ups voor :application_name zijn niet meer gezond', 28 | 'unhealthy_backup_found_subject_title' => 'Belangrijk: De back-ups voor :application_name zijn niet gezond. :problem', 29 | 'unhealthy_backup_found_body' => 'De back-ups voor :application_name op schijf :disk_name zijn niet gezond.', 30 | 'unhealthy_backup_found_not_reachable' => 'De back-upbestemming kon niet worden bereikt. :error', 31 | 'unhealthy_backup_found_empty' => 'Er zijn geen back-ups van deze applicatie beschikbaar.', 32 | 'unhealthy_backup_found_old' => 'De laatste back-up gemaakt op :date is te oud.', 33 | 'unhealthy_backup_found_unknown' => 'Sorry, een exacte reden kon niet worden bepaald.', 34 | 'unhealthy_backup_found_full' => 'De back-ups gebruiken te veel opslagruimte. Momenteel wordt er :disk_usage gebruikt wat hoger is dan de toegestane limiet van :disk_limit.', 35 | 36 | 'no_backups_info' => 'Er zijn nog geen back-ups gemaakt', 37 | 'application_name' => 'Naam van de toepassing', 38 | 'backup_name' => 'Back-upnaam', 39 | 'disk' => 'Schijf', 40 | 'newest_backup_size' => 'Nieuwste back-upgrootte', 41 | 'number_of_backups' => 'Aantal back-ups', 42 | 'total_storage_used' => 'Totale gebruikte opslagruimte', 43 | 'newest_backup_date' => 'Nieuwste back-upgrootte', 44 | 'oldest_backup_date' => 'Oudste back-upgrootte', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/no/notifications.php: -------------------------------------------------------------------------------- 1 | 'Exception: :message', 5 | 'exception_trace' => 'Exception trace: :trace', 6 | 'exception_message_title' => 'Exception', 7 | 'exception_trace_title' => 'Exception trace', 8 | 9 | 'backup_failed_subject' => 'Backup feilet for :application_name', 10 | 'backup_failed_body' => 'Viktg: En feil oppstod under backing av :application_name', 11 | 12 | 'backup_successful_subject' => 'Gjennomført backup av :application_name', 13 | 'backup_successful_subject_title' => 'Gjennomført backup!', 14 | 'backup_successful_body' => 'Gode nyheter, en ny backup av :application_name ble opprettet på disken :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Opprydding av backup for :application_name feilet.', 17 | 'cleanup_failed_body' => 'En feil oppstod under opprydding av backups for :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Opprydding av backup for :application_name gjennomført', 20 | 'cleanup_successful_subject_title' => 'Opprydding av backup gjennomført!', 21 | 'cleanup_successful_body' => 'Oppryddingen av backup for :application_name på disken :disk_name har blitt gjennomfø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 jobba!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Viktig: Backups for :application_name ikke OK', 28 | 'unhealthy_backup_found_subject_title' => 'Viktig: Backups for :application_name er ikke OK. :problem', 29 | 'unhealthy_backup_found_body' => 'Backups for :application_name på disken :disk_name er ikke OK.', 30 | 'unhealthy_backup_found_not_reachable' => 'Kunne ikke finne backup-destinasjonen. :error', 31 | 'unhealthy_backup_found_empty' => 'Denne applikasjonen mangler backups.', 32 | 'unhealthy_backup_found_old' => 'Den siste backupem fra :date er for gammel.', 33 | 'unhealthy_backup_found_unknown' => 'Beklager, kunne ikke finne nøyaktig årsak.', 34 | 'unhealthy_backup_found_full' => 'Backups bruker for mye lagringsplass. Nåværende diskbruk er :disk_usage, som er mer enn den tillatte grensen på :disk_limit.', 35 | 36 | 'no_backups_info' => 'Ingen sikkerhetskopier ble gjort ennå', 37 | 'application_name' => 'Programnavn', 38 | 'backup_name' => 'Navn på sikkerhetskopi', 39 | 'disk' => 'Disk', 40 | 'newest_backup_size' => 'Nyeste backup-størrelse', 41 | 'number_of_backups' => 'Antall sikkerhetskopier', 42 | 'total_storage_used' => 'Total lagring brukt', 43 | 'newest_backup_date' => 'Nyeste backup-størrelse', 44 | 'oldest_backup_date' => 'Eldste sikkerhetskopistørrelse', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'Henüz yedekleme yapılmadı', 37 | 'application_name' => 'Uygulama Adı', 38 | 'backup_name' => 'Yedek adı', 39 | 'disk' => 'Disk', 40 | 'newest_backup_size' => 'En yeni yedekleme boyutu', 41 | 'number_of_backups' => 'Yedekleme sayısı', 42 | 'total_storage_used' => 'Kullanılan toplam depolama alanı', 43 | 'newest_backup_date' => 'En yeni yedekleme boyutu', 44 | 'oldest_backup_date' => 'En eski yedekleme boyutu', 45 | ]; 46 | -------------------------------------------------------------------------------- /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 | 'no_backups_info' => 'Резервних копій ще не було зроблено', 37 | 'application_name' => 'Назва програми', 38 | 'backup_name' => 'Резервне ім’я', 39 | 'disk' => 'Диск', 40 | 'newest_backup_size' => 'Найновіший розмір резервної копії', 41 | 'number_of_backups' => 'Кількість резервних копій', 42 | 'total_storage_used' => 'Загальний обсяг використаного сховища', 43 | 'newest_backup_date' => 'Найновіший розмір резервної копії', 44 | 'oldest_backup_date' => 'Найстаріший розмір резервної копії', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/zh-CN/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' => '成功清除 :disk_name 磁盘上 :application_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 | 'no_backups_info' => '尚未进行任何备份', 37 | 'application_name' => '应用名称', 38 | 'backup_name' => '备份名称', 39 | 'disk' => '磁盘', 40 | 'newest_backup_size' => '最新备份大小', 41 | 'number_of_backups' => '备份数量', 42 | 'total_storage_used' => '使用的总存储量', 43 | 'newest_backup_date' => '最新备份大小', 44 | 'oldest_backup_date' => '最旧的备份大小', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/zh-TW/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' => '成功清除 :disk_name 磁盤上 :application_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 | 'no_backups_info' => '尚未進行任何備份', 37 | 'application_name' => '應用名稱', 38 | 'backup_name' => '備份名稱', 39 | 'disk' => '磁碟', 40 | 'newest_backup_size' => '最新備份大小', 41 | 'number_of_backups' => '備份數量', 42 | 'total_storage_used' => '使用的總存儲量', 43 | 'newest_backup_date' => '最新備份大小', 44 | 'oldest_backup_date' => '最早的備份大小', 45 | ]; 46 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f8fafc; 3 | 4 | // Typography 5 | $font-family-sans-serif: 'Nunito', sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | 9 | // Colors 10 | $blue: #3490dc; 11 | $indigo: #6574cd; 12 | $purple: #9561e2; 13 | $pink: #f66d9b; 14 | $red: #e3342f; 15 | $orange: #f6993f; 16 | $yellow: #ffed4a; 17 | $green: #38c172; 18 | $teal: #4dc0b5; 19 | $cyan: #6cb2eb; 20 | 21 | 22 | // Font Awesome 23 | $fa-font-path: "../webfonts"; -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | @import url('https://fonts.googleapis.com/css?family=Nunito'); 3 | 4 | // Variables 5 | @import 'variables'; 6 | 7 | // Bootstrap 8 | @import '~bootstrap/scss/bootstrap'; 9 | @import '~admin-lte/dist/css/adminlte.css'; 10 | 11 | // Font Awesome 12 | @import "~@fortawesome/fontawesome-free/scss/fontawesome.scss"; 13 | @import "~@fortawesome/fontawesome-free/scss/solid.scss"; 14 | @import "~@fortawesome/fontawesome-free/scss/regular.scss"; 15 | @import "~@fortawesome/fontawesome-free/scss/brands.scss"; 16 | 17 | // sweet alert 18 | @import 'sweetalert2/src/sweetalert2.scss'; 19 | // import 'sweetalert2/src/sweetalert2.scss' 20 | 21 | .navbar-laravel { 22 | background-color: #fff; 23 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); 24 | } 25 | 26 | .blue {color: $blue;} 27 | .indigo {color: $indigo;} 28 | .purple {color: $purple;} 29 | .pink {color: $pink;} 30 | .red {color: $red;} 31 | .orange {color: $orange;} 32 | .yellow {color: $yellow;} 33 | .green {color: $green;} 34 | .teal {color: $teal;} 35 | .cyan {color: $cyan;} 36 | 37 | 38 | // .content-header{ 39 | // padding: 10px 0.5rem !important; 40 | // } -------------------------------------------------------------------------------- /resources/views/auth/passwords/confirm.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Confirm Password') }}
9 | 10 |
11 | {{ __('Please confirm your password before continuing.') }} 12 | 13 |
14 | @csrf 15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 | @error('password') 23 | 24 | {{ $message }} 25 | 26 | @enderror 27 |
28 |
29 | 30 |
31 |
32 | 35 | 36 | @if (Route::has('password.request')) 37 | 38 | {{ __('Forgot Your Password?') }} 39 | 40 | @endif 41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | @endsection 50 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 | {{--
{{ __('Reset Password') }}
--}} 9 | 10 |
11 | @if (session('status')) 12 | 15 | @endif 16 | 17 |
18 | @csrf 19 | 20 |
21 | {{-- --}} 22 |
23 |
24 |
25 |

Reset Password

26 |
27 |
28 | 29 | 30 | 31 | @error('email') 32 | 33 | {{ $message }} 34 | 35 | @enderror 36 |
37 |
38 | 39 |
40 |
41 |
42 | 45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | @endsection 54 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Verify Your Email Address') }}
9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, 19 |
20 | @csrf 21 | . 22 |
23 |
24 |
25 |
26 |
27 |
28 | @endsection 29 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.master') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Dashboard
9 | 10 |
11 | @if (session('status')) 12 | 15 | @endif 16 | 17 | You are logged in! 18 |
19 |
20 |
21 |
22 |
23 | @endsection 24 | -------------------------------------------------------------------------------- /resources/views/layouts/master.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ config('app.name', 'Laravel') }} 9 | 10 | 11 | 12 |
13 | 20 | 41 |
42 | {{--
43 |
44 | 45 |
46 |
--}} 47 |
48 |
49 | 50 | 51 |
52 |
53 |
54 | LARAVEL-VUE POS & INVENTORY SYSTEM 55 |
56 |
57 |
58 | @auth 59 | 62 | @endauth 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {{config('app.name')}} 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 50 | 51 | 52 |
53 | @if (Route::has('login')) 54 | 58 | 68 | @endif 69 |
70 |

71 | Home Page!
72 | Business logo / System's Manual maybe 73 |
74 | This system enables user to monitor item stocks inventory in real-time. 75 | 76 |

77 | 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | true]); 18 | 19 | Route::view('/', 'welcome'); 20 | Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); 21 | Route::get('home', function () { 22 | return redirect('/dashboard'); 23 | }); 24 | 25 | Route::get('/{vue_capture?}', function () { 26 | return view('home'); 27 | })->where('vue_capture', '[\/\w\.-]*') 28 | ->middleware('auth'); 29 | 30 | 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/Feature/CategoryTest.php: -------------------------------------------------------------------------------- 1 | create(); 19 | $this->actingAs($user, 'api'); 20 | $this->get(route('category.list'))->assertOk()->assertSuccessful(); 21 | } 22 | 23 | /** 24 | * @test 25 | */ 26 | public function it_can_access_index() 27 | { 28 | $user = User::factory()->create(); 29 | $this->actingAs($user, 'api'); 30 | $this->get(route('category.index'))->assertOk()->assertSuccessful(); 31 | } 32 | 33 | /** 34 | * @test 35 | */ 36 | public function it_can_store_category() 37 | { 38 | $user = User::factory()->create(); 39 | $this->actingAs($user, 'api'); 40 | $this->post(route('category.store'))->assertOk()->assertSuccessful(); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /tests/Feature/VersionTest.php: -------------------------------------------------------------------------------- 1 | getJson('/api/version'); 20 | $response 21 | ->assertStatus(200) 22 | ->assertJson([ 23 | 'version' => true, 24 | ]); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .sass('resources/sass/app.scss', 'public/css').sourceMaps(); 16 | --------------------------------------------------------------------------------