first commit

This commit is contained in:
Arturo Corro 2025-03-06 12:21:17 -06:00
commit b2f9df541d
78 changed files with 15007 additions and 0 deletions

18
.editorconfig Normal file
View File

@ -0,0 +1,18 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
[docker-compose.yml]
indent_size = 4

70
.env.example Normal file
View File

@ -0,0 +1,70 @@
APP_NAME=VuexyMexico
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_TIMEZONE=America/Mexico_City
APP_URL=http://localhost
APP_LOCALE=es
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=es_MX
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database
PHP_CLI_SERVER_WORKERS=4
BCRYPT_ROUNDS=12
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mariadb
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
CACHE_STORE=database
CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=log
MAIL_SCHEME=null
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
VITE_APP_NAME="${APP_NAME}"
AUTH_MODEL=Koneko\VuexyAdmin\Models\User
FORCE_HTTPS=

12
.gitattributes vendored Normal file
View File

@ -0,0 +1,12 @@
* text=auto eol=lf
*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php
/.github export-ignore
/.git export-ignore
CHANGELOG.md export-ignore
.styleci.yml export-ignore

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
/.phpunit.cache
/node_modules
/public/vendor
/public/build
/public/hot
/public/storage
/storage/*.key
/storage/pail
/vendor
.env
.env.backup
.env.production
.phpactor.json
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
/auth.json
/.fleet
/.idea
/.nova
/.vscode
/.zed

42
CHANGELOG.md Normal file
View File

@ -0,0 +1,42 @@
# 📜 CHANGELOG - Laravel Vuexy Admin México Community
Este documento sigue el formato [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.1.0] - ALPHA - 2025-03-05
### ✨ Added (Agregado)
- 📌 **Integración con los catálogos SAT (CFDI 4.0)**:
- `sat_banco`, `sat_clave_prod_serv`, `sat_clave_unidad`, `sat_codigo_postal`, `sat_colonia`, `sat_deduccion`, `sat_estado`, `sat_forma_pago`, `sat_localidad`, `sat_municipio`, `sat_moneda`, `sat_pais`, `sat_percepcion`, `sat_regimen_contratacion`, `sat_regimen_fiscal`, `sat_uso_cfdi`.
- 🎨 **Interfaz basada en Vuexy Admin** con integración de Laravel Blade + Livewire.
- 🔑 **Sistema de autenticación y RBAC** con Laravel Fortify y Spatie Permissions.
- 🔄 **Módulo de tipos de cambio** con integración de la API de Banxico.
- 📦 **Manejo de almacenamiento y gestión de activos**.
- 🚀 **Publicación inicial del repositorio en Packagist y Git Tea**.
### 🛠 Changed (Modificado)
- **Optimización del sistema de permisos y roles** para mayor flexibilidad.
### 🐛 Fixed (Correcciones)
- Se corrigieron errores en migraciones de catálogos SAT.
---
## 📅 Próximos Cambios Planeados
- 📊 **Módulo de Reportes** con Laravel Excel y Charts.
- 🏪 **Módulo de Inventarios y Punto de Venta (POS)**.
- 📍 **Mejor integración con APIs de geolocalización**.
---
**📌 Nota:** Esta es la primera versión **ALPHA**, aún en desarrollo.
---
## 🔄 Sincronización de Cambios
Este `CHANGELOG.md` se actualiza primero en nuestro repositorio principal en **[Tea - Koneko Git](https://git.koneko.mx/koneko/laravel-vuexy-admin-mexico-community)** y luego se refleja en GitHub.
Los cambios recientes pueden verse antes en **Tea** que en **GitHub** debido a la sincronización automática.
---
📅 Última actualización: **2025-03-05**.

9
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,9 @@
## 🔐 Acceso al Repositorio Privado
Nuestro servidor Git en **Tea** tiene un registro cerrado. Para contribuir:
1. Abre un **Issue** en [GitHub](https://github.com/koneko-mx/laravel-vuexy-admin-mexico-community/issues) indicando tu interés en contribuir.
2. Alternativamente, envía un correo a **admin@koneko.mx** solicitando acceso.
3. Una vez aprobado, recibirás una invitación para registrarte y clonar el repositorio.
Si solo necesitas acceso de lectura, puedes clonar la versión pública en **GitHub**.

9
LICENSE Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) 2025 koneko
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

126
README.md Normal file
View File

@ -0,0 +1,126 @@
# 🚀 Laravel Vuexy Admin México Community
<p align="center">
<a href="https://koneko.mx" target="_blank">
<img src="https://git.koneko.mx/Koneko-ST/koneko-st/raw/branch/main/logo-images/horizontal-05.png" width="400" alt="Koneko Soluciones Tecnológicas Logo">
</a>
</p>
<p align="center">
<a href="https://koneko.mx"><img src="https://img.shields.io/badge/Website-koneko.mx-blue" alt="Sitio Web"></a>
<a href="https://packagist.org/packages/koneko/laravel-vuexy-admin-mexico-community"><img src="https://img.shields.io/packagist/v/koneko/laravel-vuexy-admin-mexico-community" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/koneko/laravel-vuexy-admin-mexico-community"><img src="https://img.shields.io/packagist/l/koneko/laravel-vuexy-admin-mexico-community" alt="License"></a>
<a href="https://git.koneko.mx/koneko"><img src="https://img.shields.io/badge/Git%20Server-Koneko%20Git-orange" alt="Servidor Git"></a>
<a href="https://github.com/koneko-mx/laravel-vuexy-admin-mexico-community/actions/workflows/tests.yml"><img src="https://github.com/koneko-mx/laravel-vuexy-admin-mexico-community/actions/workflows/tests.yml/badge.svg" alt="Build Status"></a>
<a href="https://github.com/koneko-mx/laravel-vuexy-admin-mexico-community/issues"><img src="https://img.shields.io/github/issues/koneko/laravel-vuexy-admin-mexico-community" alt="Issues"></a>
</p>
---
## 🏢 Sobre Nosotros
**Koneko Soluciones Tecnológicas** es una empresa desarrolladora de **software y hardware a la medida en México**. Proporcionamos servicios de **servidores en la nube y timbrado de CFDI**.
📩 **Contáctanos en Telegram:** [Arturo Corro](https://t.me/ArturoCorro)
---
## 📌 Laravel Vuexy Admin México Community
Este proyecto es una distribución **open-source** basada en **Laravel 11 y Vuexy Admin**, diseñada para las necesidades del mercado mexicano.
### ✨ Características Destacadas
**Optimizado para México**: Integración con los catálogos oficiales del SAT (CFDI 4.0).
**Interfaz moderna**: Basado en Vuexy Admin con soporte para dark mode.
**RBAC avanzado**: Roles y permisos gestionados con Spatie Permissions.
**Soporte para facturación**: Generación y validación de CFDI.
**Gestión de almacenes y puntos de venta**.
**Integración con geolocalización y tipos de cambio**.
---
## 🏗️ Módulos Disponibles
### **Administración y Core**
- 🔹 `laravel-vuexy-admin`
- 🔹 `laravel-vuexy-asset-management`
### **Gestión de Contactos y Datos Fiscales**
- 🔹 `laravel-vuexy-contacts`
- 🔹 `laravel-vuexy-sat-mass-downloader`
### **Gestión Empresarial y Logística**
- 🔹 `laravel-vuexy-store-manager`
- 🔹 `laravel-vuexy-warehouse`
### **Gestión de Sitios Web**
- 🔹 `laravel-vuexy-website-admin`
- 🔹 `laravel-vuexy-website-blog`
- 🔹 `laravel-vuexy-website-layout-porto`
---
## 🚀 Instalación Rápida
Puedes instalar Laravel Vuexy Admin México Community de dos maneras: con Composer o manualmente.
### 📦 Instalación con Composer (Recomendada)
```bash
composer create-project koneko/laravel-vuexy-admin-mexico-community
cd laravel-vuexy-admin-mexico-community
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
npm install && npm run dev
php artisan serve
```
### 📂 Instalación Manual
```bash
git clone https://git.koneko.mx/Koneko-ST/laravel-vuexy-admin-mexico-community.git
cd laravel-vuexy-admin-mexico-community
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
npm run dev
php artisan serve
```
---
## 🌎 Repositorio y Sincronización
Este repositorio es una **copia sincronizada** del repositorio principal alojado en **Tea - Koneko Git**.
- **Repositorio Principal:** [Tea Git - Koneko](https://git.koneko.mx/koneko/laravel-vuexy-admin-mexico-community)
- **Repositorio en GitHub:** [GitHub - Koneko](https://github.com/koneko-mx/laravel-vuexy-admin-mexico-community)
- **Los cambios pueden reflejarse primero en Tea antes de GitHub.**
⚠️ **Nota:** Para contribuir, recomendamos abrir issues o pull requests en Tea Git.
---
## ⚠️ Nota sobre Vuexy
Este proyecto está basado en **Vuexy Admin Template**, que es un **template premium** y **no está incluido en este repositorio** debido a su licencia comercial.
### 🎨 ¿Dónde obtener Vuexy?
Puedes adquirir una licencia válida en **[ThemeForest](https://themeforest.net/item/vuexy-bootstrap-admin-template/23328599)**.
---
## 🏅 Licencia
Este paquete es de código abierto bajo la licencia [MIT](LICENSE).
---
<p align="center">
Hecho con ❤️ por <a href="https://koneko.mx">Koneko Soluciones Tecnológicas</a>
</p>

View File

@ -0,0 +1,8 @@
<?php
namespace App\Http\Controllers;
abstract class Controller
{
//
}

48
app/Models/User.php Normal file
View File

@ -0,0 +1,48 @@
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
/** @use HasFactory<\Database\Factories\UserFactory> */
use HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
* @var list<string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}

View File

@ -0,0 +1,24 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}

18
artisan Normal file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
use Illuminate\Foundation\Application;
use Symfony\Component\Console\Input\ArgvInput;
define('LARAVEL_START', microtime(true));
// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';
// Bootstrap Laravel and handle the command...
/** @var Application $app */
$app = require_once __DIR__.'/bootstrap/app.php';
$status = $app->handleCommand(new ArgvInput);
exit($status);

18
bootstrap/app.php Normal file
View File

@ -0,0 +1,18 @@
<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
//
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();

2
bootstrap/cache/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

5
bootstrap/providers.php Normal file
View File

@ -0,0 +1,5 @@
<?php
return [
App\Providers\AppServiceProvider::class,
];

90
composer.json Normal file
View File

@ -0,0 +1,90 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "koneko/laravel-vuexy-admin-mexico-community",
"description": "Laravel Vuexy Admin México Community. Un Laravel proyecto optimizado para México.",
"keywords": ["laravel", "koneko", "framework", "vuexy", "website", "admin", "manager", "contacts", "store", "warehouse", "asset", "pos", "point of sale", "tpv", "Terminal punto de venta", "mexico", "sat", "timbrado", "cfdi", "exchange", "rates", "currencies", "geolocation", "community"],
"type": "project",
"license": "MIT",
"require": {
"php": "^8.2",
"koneko/laravel-vuexy-admin": "@dev",
"koneko/laravel-vuexy-asset-management": "@dev",
"koneko/laravel-vuexy-contacts": "@dev",
"koneko/laravel-vuexy-store-manager": "@dev",
"koneko/laravel-vuexy-warehouse": "@dev",
"koneko/laravel-vuexy-website-admin": "@dev",
"koneko/laravel-vuexy-website-blog": "@dev",
"koneko/laravel-vuexy-website-layout-porto": "@dev",
"laravel/framework": "^11.31",
"laravel/tinker": "^2.9"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel/pail": "^1.1",
"laravel/pint": "^1.13",
"laravel/sail": "^1.26",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.1",
"phpunit/phpunit": "^11.0.1"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan vendor:publish --tag=sat-catalogs-seeders --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi",
"@php artisan storage:link",
"@php artisan vendor:publish --tag=vuexy-admin-config --ansi",
"@php artisan vendor:publish --tag=sat-catalogs-seeders --ansi",
"@php artisan vendor:publish --tag=vuexy-admin-seeders --ansi",
"@php artisan vendor:publish --tag=vuexy-admin-images --ansi",
"@php scripts/show-instructions.php"
],
"dev": [
"Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"vite build --watch\" --names=server,queue,logs,vite"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"authors": [
{
"name": "Arturo Corro Pacheco",
"email": "arturo@koneko.mx"
}
],
"minimum-stability": "dev",
"preferred-install": "dist"
}

126
config/app.php Normal file
View File

@ -0,0 +1,126 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application, which will be used when the
| framework needs to place the application's name in a notification or
| other UI elements where an application name needs to be displayed.
|
*/
'name' => env('APP_NAME', 'Laravel'),
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services the application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => (bool) env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| the application so that it's available within Artisan commands.
|
*/
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. The timezone
| is set to "UTC" by default as it is suitable for most use cases.
|
*/
'timezone' => env('APP_TIMEZONE', 'UTC'),
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by Laravel's translation / localization methods. This option can be
| set to any locale for which you plan to have translation strings.
|
*/
'locale' => env('APP_LOCALE', 'en'),
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is utilized by Laravel's encryption services and should be set
| to a random, 32 character string to ensure that all encrypted values
| are secure. You should do this prior to deploying the application.
|
*/
'cipher' => 'AES-256-CBC',
'key' => env('APP_KEY'),
'previous_keys' => [
...array_filter(
explode(',', env('APP_PREVIOUS_KEYS', ''))
),
],
/*
|--------------------------------------------------------------------------
| Maintenance Mode Driver
|--------------------------------------------------------------------------
|
| These configuration options determine the driver used to determine and
| manage Laravel's "maintenance mode" status. The "cache" driver will
| allow maintenance mode to be controlled across multiple machines.
|
| Supported drivers: "file", "cache"
|
*/
'maintenance' => [
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
'store' => env('APP_MAINTENANCE_STORE', 'database'),
],
];

115
config/auth.php Normal file
View File

@ -0,0 +1,115 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option defines the default authentication "guard" and password
| reset "broker" for your application. You may change these values
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => env('AUTH_GUARD', 'web'),
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| which utilizes session storage plus the Eloquent user provider.
|
| All authentication guards have a user provider, which defines how the
| users are actually retrieved out of your database or other storage
| system used by the application. Typically, Eloquent is utilized.
|
| Supported: "session"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication guards have a user provider, which defines how the
| users are actually retrieved out of your database or other storage
| system used by the application. Typically, Eloquent is utilized.
|
| If you have multiple user tables or models you may configure multiple
| providers to represent the model / table. These providers may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => env('AUTH_MODEL', App\Models\User::class),
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| These configuration options specify the behavior of Laravel's password
| reset functionality, including the table utilized for token storage
| and the user provider that is invoked to actually retrieve users.
|
| The expiry time is the number of minutes that each reset token will be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
| The throttle setting is the number of seconds a user must wait before
| generating more password reset tokens. This prevents the user from
| quickly generating a very large amount of password reset tokens.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
'expire' => 60,
'throttle' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Password Confirmation Timeout
|--------------------------------------------------------------------------
|
| Here you may define the amount of seconds before a password confirmation
| window expires and users are asked to re-enter their password via the
| confirmation screen. By default, the timeout lasts for three hours.
|
*/
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
];

108
config/cache.php Normal file
View File

@ -0,0 +1,108 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache store that will be used by the
| framework. This connection is utilized if another isn't explicitly
| specified when running a cache operation inside the application.
|
*/
'default' => env('CACHE_STORE', 'database'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
| Supported drivers: "array", "database", "file", "memcached",
| "redis", "dynamodb", "octane", "null"
|
*/
'stores' => [
'array' => [
'driver' => 'array',
'serialize' => false,
],
'database' => [
'driver' => 'database',
'connection' => env('DB_CACHE_CONNECTION'),
'table' => env('DB_CACHE_TABLE', 'cache'),
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
'lock_path' => storage_path('framework/cache/data'),
],
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
],
'dynamodb' => [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
],
'octane' => [
'driver' => 'octane',
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing the APC, database, memcached, Redis, and DynamoDB cache
| stores, there might be other applications using the same cache. For
| that reason, you may prefix every cache key to avoid collisions.
|
*/
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
];

173
config/database.php Normal file
View File

@ -0,0 +1,173 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for database operations. This is
| the connection which will be utilized unless another connection
| is explicitly specified when you execute a query / statement.
|
*/
'default' => env('DB_CONNECTION', 'sqlite'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Below are all of the database connections defined for your application.
| An example configuration is provided for each database system which
| is supported by Laravel. You're free to add / remove connections.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'url' => env('DB_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => null,
'journal_mode' => null,
'synchronous' => null,
],
'mysql' => [
'driver' => 'mysql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'mariadb' => [
'driver' => 'mariadb',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'pgsql' => [
'driver' => 'pgsql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
'search_path' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DB_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
// 'encrypt' => env('DB_ENCRYPT', 'yes'),
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run on the database.
|
*/
'migrations' => [
'table' => 'migrations',
'update_date_on_publish' => true,
],
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer body of commands than a typical key-value system
| such as Memcached. You may define your connection settings here.
|
*/
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
],
'default' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
],
'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
],
],
];

80
config/filesystems.php Normal file
View File

@ -0,0 +1,80 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application for file storage.
|
*/
'default' => env('FILESYSTEM_DISK', 'local'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Below you may configure as many filesystem disks as necessary, and you
| may even configure multiple disks for the same driver. Examples for
| most supported storage drivers are configured here for reference.
|
| Supported drivers: "local", "ftp", "sftp", "s3"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'serve' => true,
'throw' => false,
'report' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
'report' => false,
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
'report' => false,
],
],
/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/
'links' => [
public_path('storage') => storage_path('app/public'),
],
];

159
config/fortify.php Normal file
View File

@ -0,0 +1,159 @@
<?php
use Laravel\Fortify\Features;
return [
/*
|--------------------------------------------------------------------------
| Fortify Guard
|--------------------------------------------------------------------------
|
| Here you may specify which authentication guard Fortify will use while
| authenticating users. This value should correspond with one of your
| guards that is already present in your "auth" configuration file.
|
*/
'guard' => 'web',
/*
|--------------------------------------------------------------------------
| Fortify Password Broker
|--------------------------------------------------------------------------
|
| Here you may specify which password broker Fortify can use when a user
| is resetting their password. This configured value should match one
| of your password brokers setup in your "auth" configuration file.
|
*/
'passwords' => 'users',
/*
|--------------------------------------------------------------------------
| Username / Email
|--------------------------------------------------------------------------
|
| This value defines which model attribute should be considered as your
| application's "username" field. Typically, this might be the email
| address of the users but you are free to change this value here.
|
| Out of the box, Fortify expects forgot password and reset password
| requests to have a field named 'email'. If the application uses
| another name for the field you may define it below as needed.
|
*/
'username' => 'email',
'email' => 'email',
/*
|--------------------------------------------------------------------------
| Lowercase Usernames
|--------------------------------------------------------------------------
|
| This value defines whether usernames should be lowercased before saving
| them in the database, as some database system string fields are case
| sensitive. You may disable this for your application if necessary.
|
*/
'lowercase_usernames' => true,
/*
|--------------------------------------------------------------------------
| Home Path
|--------------------------------------------------------------------------
|
| Here you may configure the path where users will get redirected during
| authentication or password reset when the operations are successful
| and the user is authenticated. You are free to change this value.
|
*/
'home' => '/admin',
/*
|--------------------------------------------------------------------------
| Fortify Routes Prefix / Subdomain
|--------------------------------------------------------------------------
|
| Here you may specify which prefix Fortify will assign to all the routes
| that it registers with the application. If necessary, you may change
| subdomain under which all of the Fortify routes will be available.
|
*/
'prefix' => '',
'domain' => null,
/*
|--------------------------------------------------------------------------
| Fortify Routes Middleware
|--------------------------------------------------------------------------
|
| Here you may specify which middleware Fortify will assign to the routes
| that it registers with the application. If necessary, you may change
| these middleware but typically this provided default is preferred.
|
*/
'middleware' => ['web'],
/*
|--------------------------------------------------------------------------
| Rate Limiting
|--------------------------------------------------------------------------
|
| By default, Fortify will throttle logins to five requests per minute for
| every email and IP address combination. However, if you would like to
| specify a custom rate limiter to call then you may specify it here.
|
*/
'limiters' => [
'login' => 'login',
'two-factor' => 'two-factor',
],
/*
|--------------------------------------------------------------------------
| Register View Routes
|--------------------------------------------------------------------------
|
| Here you may specify if the routes returning views should be disabled as
| you may not need them when building your own application. This may be
| especially true if you're writing a custom single-page application.
|
*/
'views' => true,
/*
|--------------------------------------------------------------------------
| Features
|--------------------------------------------------------------------------
|
| Some of the Fortify features are optional. You may disable the features
| by removing them from this array. You're free to only remove some of
| these features or you can even remove all of these if you need to.
|
*/
'features' => [
Features::registration(),
Features::resetPasswords(),
Features::emailVerification(),
Features::updateProfileInformation(),
Features::updatePasswords(),
Features::twoFactorAuthentication([
'confirm' => true,
'confirmPassword' => true,
'window' => 1,
]),
],
];

42
config/image.php Normal file
View File

@ -0,0 +1,42 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Image Driver
|--------------------------------------------------------------------------
|
| Intervention Image supports “GD Library” and “Imagick” to process images
| internally. Depending on your PHP setup, you can choose one of them.
|
| Included options:
| - \Intervention\Image\Drivers\Gd\Driver::class
| - \Intervention\Image\Drivers\Imagick\Driver::class
|
*/
'driver' => \Intervention\Image\Drivers\Imagick\Driver::class,
/*
|--------------------------------------------------------------------------
| Configuration Options
|--------------------------------------------------------------------------
|
| These options control the behavior of Intervention Image.
|
| - "autoOrientation" controls whether an imported image should be
| automatically rotated according to any existing Exif data.
|
| - "decodeAnimation" decides whether a possibly animated image is
| decoded as such or whether the animation is discarded.
|
| - "blendingColor" Defines the default blending color.
*/
'options' => [
'autoOrientation' => true,
'decodeAnimation' => true,
'blendingColor' => 'ffffff',
]
];

132
config/logging.php Normal file
View File

@ -0,0 +1,132 @@
<?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
use Monolog\Processor\PsrLogMessageProcessor;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that is utilized to write
| messages to your logs. The value provided here should match one of
| the channels present in the list of "channels" configured below.
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
/*
|--------------------------------------------------------------------------
| Deprecations Log Channel
|--------------------------------------------------------------------------
|
| This option controls the log channel that should be used to log warnings
| regarding deprecated PHP and library features. This allows you to get
| your application ready for upcoming major versions of dependencies.
|
*/
'deprecations' => [
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
'trace' => env('LOG_DEPRECATIONS_TRACE', false),
],
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Laravel
| utilizes the Monolog PHP logging library, which includes a variety
| of powerful log handlers and formatters that you're free to use.
|
| Available drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog", "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => explode(',', env('LOG_STACK', 'single')),
'ignore_exceptions' => false,
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'days' => env('LOG_DAILY_DAYS', 14),
'replace_placeholders' => true,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
'level' => env('LOG_LEVEL', 'critical'),
'replace_placeholders' => true,
],
'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
],
'processors' => [PsrLogMessageProcessor::class],
],
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER'),
'with' => [
'stream' => 'php://stderr',
],
'processors' => [PsrLogMessageProcessor::class],
],
'syslog' => [
'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'),
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
'replace_placeholders' => true,
],
'errorlog' => [
'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
],
];

116
config/mail.php Normal file
View File

@ -0,0 +1,116 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send all email
| messages unless another mailer is explicitly specified when sending
| the message. All additional mailers can be configured within the
| "mailers" array. Examples of each type of mailer are provided.
|
*/
'default' => env('MAIL_MAILER', 'log'),
/*
|--------------------------------------------------------------------------
| Mailer Configurations
|--------------------------------------------------------------------------
|
| Here you may configure all of the mailers used by your application plus
| their respective settings. Several examples have been configured for
| you and you are free to add your own as your application requires.
|
| Laravel supports a variety of mail "transport" drivers that can be used
| when delivering an email. You may specify which one you're using for
| your mailers below. You may also add additional mailers if needed.
|
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
| "postmark", "resend", "log", "array",
| "failover", "roundrobin"
|
*/
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'scheme' => env('MAIL_SCHEME'),
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', '127.0.0.1'),
'port' => env('MAIL_PORT', 2525),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
],
'ses' => [
'transport' => 'ses',
],
'postmark' => [
'transport' => 'postmark',
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
// 'client' => [
// 'timeout' => 5,
// ],
],
'resend' => [
'transport' => 'resend',
],
'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
],
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
],
'array' => [
'transport' => 'array',
],
'failover' => [
'transport' => 'failover',
'mailers' => [
'smtp',
'log',
],
],
'roundrobin' => [
'transport' => 'roundrobin',
'mailers' => [
'ses',
'postmark',
],
],
],
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all emails sent by your application to be sent from
| the same address. Here you may specify a name and address that is
| used globally for all emails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
],
];

112
config/queue.php Normal file
View File

@ -0,0 +1,112 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue supports a variety of backends via a single, unified
| API, giving you convenient access to each backend using identical
| syntax for each. The default queue connection is defined below.
|
*/
'default' => env('QUEUE_CONNECTION', 'database'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection options for every queue backend
| used by your application. An example configuration is provided for
| each backend supported by Laravel. You're also free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'connection' => env('DB_QUEUE_CONNECTION'),
'table' => env('DB_QUEUE_TABLE', 'jobs'),
'queue' => env('DB_QUEUE', 'default'),
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
'after_commit' => false,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
'queue' => env('BEANSTALKD_QUEUE', 'default'),
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
'block_for' => 0,
'after_commit' => false,
],
'sqs' => [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'after_commit' => false,
],
'redis' => [
'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
'block_for' => null,
'after_commit' => false,
],
],
/*
|--------------------------------------------------------------------------
| Job Batching
|--------------------------------------------------------------------------
|
| The following options configure the database and table that store job
| batching information. These options can be updated to any database
| connection and table which has been defined by your application.
|
*/
'batching' => [
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'job_batches',
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control how and where failed jobs are stored. Laravel ships with
| support for storing failed jobs in a simple file or in a database.
|
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
|
*/
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'failed_jobs',
],
];

38
config/services.php Normal file
View File

@ -0,0 +1,38 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Mailgun, Postmark, AWS and more. This file provides the de facto
| location for this type of information, allowing packages to have
| a conventional file to locate the various service credentials.
|
*/
'postmark' => [
'token' => env('POSTMARK_TOKEN'),
],
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'resend' => [
'key' => env('RESEND_KEY'),
],
'slack' => [
'notifications' => [
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
],
],
];

217
config/session.php Normal file
View File

@ -0,0 +1,217 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option determines the default session driver that is utilized for
| incoming requests. Laravel supports a variety of storage options to
| persist session data. Database storage is a great default choice.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "dynamodb", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'database'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to expire immediately when the browser is closed then you may
| indicate that via the expire_on_close configuration option.
|
*/
'lifetime' => (int) env('SESSION_LIFETIME', 120),
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it's stored. All encryption is performed
| automatically by Laravel and you may use the session like normal.
|
*/
'encrypt' => env('SESSION_ENCRYPT', false),
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When utilizing the "file" session driver, the session files are placed
| on disk. The default storage location is defined here; however, you
| are free to provide another location where they should be stored.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => env('SESSION_CONNECTION'),
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table to
| be used to store sessions. Of course, a sensible default is defined
| for you; however, you're welcome to change this to another table.
|
*/
'table' => env('SESSION_TABLE', 'sessions'),
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| When using one of the framework's cache driven session backends, you may
| define the cache store which should be used to store the session data
| between requests. This must match one of your defined cache stores.
|
| Affects: "apc", "dynamodb", "memcached", "redis"
|
*/
'store' => env('SESSION_STORE'),
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the session cookie that is created by
| the framework. Typically, you should not need to change this value
| since doing so does not grant a meaningful security improvement.
|
*/
'cookie' => env(
'SESSION_COOKIE',
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
),
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application, but you're free to change this when necessary.
|
*/
'path' => env('SESSION_PATH', '/'),
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| This value determines the domain and subdomains the session cookie is
| available to. By default, the cookie will be available to the root
| domain and all subdomains. Typically, this shouldn't be changed.
|
*/
'domain' => env('SESSION_DOMAIN'),
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you when it can't be done securely.
|
*/
'secure' => env('SESSION_SECURE_COOKIE'),
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. It's unlikely you should disable this option.
|
*/
'http_only' => env('SESSION_HTTP_ONLY', true),
/*
|--------------------------------------------------------------------------
| Same-Site Cookies
|--------------------------------------------------------------------------
|
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| will set this value to "lax" to permit secure cross-site requests.
|
| See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
|
| Supported: "lax", "strict", "none", null
|
*/
'same_site' => env('SESSION_SAME_SITE', 'lax'),
/*
|--------------------------------------------------------------------------
| Partitioned Cookies
|--------------------------------------------------------------------------
|
| Setting this value to true will tie the cookie to the top-level site for
| a cross-site context. Partitioned cookies are accepted by the browser
| when flagged "secure" and the Same-Site attribute is set to "none".
|
*/
'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
];

841
config/vuexy_menu.php Normal file
View File

@ -0,0 +1,841 @@
<?php
return [
'Inicio' => [
'breadcrumbs' => false,
'icon' => 'menu-icon tf-icons ti ti-home',
'submenu' => [
'Inicio' => [
'icon' => 'menu-icon tf-icons ti ti-home',
'route' => 'admin.core.home.index',
],
'Sitio web' => [
'icon' => 'menu-icon tf-icons ti ti-world-www',
'url' => env('APP_URL'),
],
'Ajustes' => [
'icon' => 'menu-icon tf-icons ti ti-settings-cog',
'submenu' => [
'Aplicación' => [
'submenu' => [
'Ajustes generales' => [
'route' => 'admin.core.general-settings.index',
'can' => 'admin.core.general-settings.allow',
],
'Ajustes de caché' => [
'route' => 'admin.core.cache-manager.index',
'can' => 'admin.core.cache-manager.view',
],
'Servidor de correo SMTP' => [
'route' => 'admin.core.smtp-settings.index',
'can' => 'admin.core.smtp-settings.allow',
],
],
],
'Empresa' => [
'submenu' => [
'Información general' => [
'route' => 'admin.store-manager.company.index',
'can' => 'admin.store-manager.company.view',
],
'Sucursales' => [
'route' => 'admin.store-manager.stores.index',
'can' => 'admin.store-manager.stores.view',
],
'Centros de trabajo' => [
'route' => 'admin.store-manager.work-centers.index',
'can' => 'admin.store-manager.stores.view',
],
'Almacenes' => [
'route' => 'admin.inventory.warehouse.index',
'can' => 'admin.inventory.warehouse.view',
],
]
],
'BANXICO' => [
'route' => 'admin.finance.banxico.index',
'can' => 'admin.finance.banxico.allow',
],
'Conectividad bancaria' => [
'route' => 'admin.finance.banking.index',
'can' => 'admin.finance.banking.allow',
],
'Punto de venta' => [
'submenu' => [
'Ticket' => [
'route' => 'admin.sales.ticket-config.index',
'can' => 'admin.sales.ticket-config.allow',
],
]
],
'Facturación' => [
'submenu' => [
'Certificados de Sello Digital' => [
'route' => 'admin.billing.csds-settings.index',
'can' => 'admin.billing.csds-settings.allow',
],
'Paquete de timbrado' => [
'route' => 'admin.billing.stamping-package.index',
'can' => 'admin.billing.stamping-package.allow',
],
'Servidor de correo SMTP' => [
'route' => 'admin.billing.smtp-settings.index',
'can' => 'admin.billing.smtp-settings.allow',
],
'Descarga masiva de CFDI' => [
'route' => 'admin.billing.mass-cfdi-download.index',
'can' => 'admin.billing.mass-cfdi-download.allow',
],
]
],
]
],
'Sistema' => [
'icon' => 'menu-icon tf-icons ti ti-user-cog',
'submenu' => [
'Usuarios' => [
'route' => 'admin.core.users.index',
'can' => 'admin.core.users.view',
],
'Roles' => [
'route' => 'admin.core.roles.index',
'can' => 'admin.core.roles.view',
],
'Permisos' => [
'route' => 'admin.core.permissions.index',
'can' => 'admin.core.permissions.view',
]
]
],
'Catálogos' => [
'icon' => 'menu-icon tf-icons ti ti-library',
'submenu' => [
'Importar catálogos SAT' => [
'route' => 'admin.core.import-sat-catalogs.index',
'can' => 'admin.core.import-sat-catalogs.allow',
],
]
],
'Configuración de cuenta' => [
'icon' => 'menu-icon tf-icons ti ti-user-cog',
'route' => 'admin.core.user-profile.index',
],
'Acerca de' => [
'icon' => 'menu-icon tf-icons ti ti-cat',
'route' => 'admin.core.about.index',
],
],
],
'Herramientas avanzadas' => [
'icon' => 'menu-icon tf-icons ti ti-device-ipad-cog',
'submenu' => [
'Asistente AI' => [
'icon' => 'menu-icon tf-icons ti ti-brain',
'submenu' => [
'Panel de IA' => [
'route' => 'admin.ai.dashboard.index',
'can' => 'admin.ai.dashboard.view',
],
'Generación de contenidos' => [
'route' => 'admin.ai.content.index',
'can' => 'admin.ai.content.create',
],
'Análisis de datos' => [
'route' => 'admin.ai.analytics.index',
'can' => 'admin.ai.analytics.view',
],
],
],
'Chatbot' => [
'icon' => 'menu-icon tf-icons ti ti-message-chatbot',
'submenu' => [
'Configuración' => [
'route' => 'admin.chatbot.config.index',
'can' => 'admin.chatbot.config.view',
],
'Flujos de conversación' => [
'route' => 'admin.chatbot.flows.index',
'can' => 'admin.chatbot.flows.manage',
],
'Historial de interacciones' => [
'route' => 'admin.chatbot.history.index',
'can' => 'admin.chatbot.history.view',
],
],
],
'IoT box' => [
'icon' => 'menu-icon tf-icons ti ti-cpu',
'submenu' => [
'Dispositivos conectados' => [
'route' => 'admin.iot.devices.index',
'can' => 'admin.iot.devices.view',
],
'Sensores y configuración' => [
'route' => 'admin.iot.sensors.index',
'can' => 'admin.iot.sensors.manage',
],
'Monitoreo en tiempo Real' => [
'route' => 'admin.iot.monitoring.index',
'can' => 'admin.iot.monitoring.view',
],
],
],
'Reconocimiento facial' => [
'icon' => 'menu-icon tf-icons ti ti-face-id',
'submenu' => [
'Gestión de perfiles' => [
'route' => 'admin.facial-recognition.profiles.index',
'can' => 'admin.facial-recognition.profiles.manage',
],
'Verificación en vivo' => [
'route' => 'admin.facial-recognition.live.index',
'can' => 'admin.facial-recognition.live.verify',
],
'Historial de accesos' => [
'route' => 'admin.facial-recognition.history.index',
'can' => 'admin.facial-recognition.history.view',
],
],
],
'Servidor de impresión' => [
'icon' => 'menu-icon tf-icons ti ti-printer',
'submenu' => [
'Cola de impresión' => [
'route' => 'admin.print.queue.index',
'can' => 'admin.print.queue.view',
],
'Historial de impresiones' => [
'route' => 'admin.print.history.index',
'can' => 'admin.print.history.view',
],
'Configuración de impresoras' => [
'route' => 'admin.print.settings.index',
'can' => 'admin.print.settings.manage',
],
],
],
],
],
'Sitio web' => [
'icon' => 'menu-icon tf-icons ti ti-tools',
'submenu' => [
'Ajustes generales' => [
'icon' => 'menu-icon tf-icons ti ti-tools',
'route' => 'admin.website.general-settings.index',
'can' => 'admin.website.general-settings.allow',
],
'Avisos legales' => [
'icon' => 'menu-icon tf-icons ti ti-writing-sign',
'route' => 'admin.website.legal.index',
'can' => 'admin.website.legal.view',
],
'Preguntas frecuentes' => [
'icon' => 'menu-icon tf-icons ti ti-bubble-text',
'route' => 'admin.website.faq.index',
'can' => 'admin.website.faq.view',
],
]
],
'Blog' => [
'icon' => 'menu-icon tf-icons ti ti-news',
'submenu' => [
'Categorias' => [
'icon' => 'menu-icon tf-icons ti ti-category',
'route' => 'admin.blog.categories.index',
'can' => 'admin.blog.categories.view',
],
'Etiquetas' => [
'icon' => 'menu-icon tf-icons ti ti-tags',
'route' => 'admin.blog.tags.index',
'can' => 'admin.blog.tags.view',
],
'Articulos' => [
'icon' => 'menu-icon tf-icons ti ti-news',
'route' => 'admin.blog.articles.index',
'can' => 'admin.blog.articles.view',
],
'Comentarios' => [
'icon' => 'menu-icon tf-icons ti ti-message',
'route' => 'admin.blog.comments.index',
'can' => 'admin.blog.comments.view',
],
]
],
'Contactos' => [
'icon' => 'menu-icon tf-icons ti ti-users',
'submenu' => [
'Contactos' => [
'icon' => 'menu-icon tf-icons ti ti-users',
'route' => 'admin.contacts.contacts.index',
'can' => 'admin.contacts.contacts.view',
],
'Campañas de marketing' => [
'icon' => 'menu-icon tf-icons ti ti-ad-2',
'route' => 'admin.crm.marketing-campaigns.index',
'can' => 'admin.crm.marketing-campaigns.view',
],
'Oportunidades ' => [
'icon' => 'menu-icon tf-icons ti ti-target-arrow',
'route' => 'admin.crm.leads.index',
'can' => 'admin.crm.leads.view',
],
'Newsletter' => [
'icon' => 'menu-icon tf-icons ti ti-notebook',
'route' => 'admin.crm.newsletter.index',
'can' => 'admin.crm.newsletter.view',
],
]
],
'RRHH' => [
'icon' => 'menu-icon tf-icons ti ti-users-group',
'submenu' => [
'Gestión de empleados' => [
'icon' => 'menu-icon tf-icons ti ti-id-badge-2',
'submenu' => [
'Empleados' => [
'route' => 'admin.contacts.employees.index',
'can' => 'admin.contacts.employees.view',
],
'Puestos de trabajo' => [
'route' => 'admin.rrhh.jobs.index',
'can' => 'admin.rrhh.jobs.view',
],
'Estructura organizacional' => [
'route' => 'admin.rrhh.organization.index',
'can' => 'admin.rrhh.organization.view',
],
],
],
'Reclutamiento' => [
'icon' => 'menu-icon tf-icons ti ti-user-search',
'submenu' => [
'Vacantes disponibles' => [
'route' => 'admin.recruitment.jobs.index',
'can' => 'admin.recruitment.jobs.view',
],
'Seguimiento de candidatos' => [
'route' => 'admin.recruitment.candidates.index',
'can' => 'admin.recruitment.candidates.view',
],
'Entrevistas y evaluaciones' => [
'route' => 'admin.recruitment.interviews.index',
'can' => 'admin.recruitment.interviews.view',
],
],
],
'Nómina' => [
'icon' => 'menu-icon tf-icons ti ti-cash',
'submenu' => [
'Contratos' => [
'route' => 'admin.payroll.contracts.index',
'can' => 'admin.payroll.contracts.view',
],
'Procesar nómina' => [
'route' => 'admin.payroll.process.index',
'can' => 'admin.payroll.process.view',
],
'Recibos de nómina' => [
'route' => 'admin.payroll.receipts.index',
'can' => 'admin.payroll.receipts.view',
],
'Reportes financieros' => [
'route' => 'admin.payroll.reports.index',
'can' => 'admin.payroll.reports.view',
],
],
],
'Asistencia' => [
'icon' => 'menu-icon tf-icons ti ti-calendar-exclamation',
'submenu' => [
'Registro de horarios' => [
'route' => 'admin.attendance.records.index',
'can' => 'admin.attendance.records.view',
],
'Asistencia con biométricos' => [
'route' => 'admin.attendance.biometric.index',
'can' => 'admin.attendance.biometric.view',
],
'Justificación de ausencias' => [
'route' => 'admin.attendance.absences.index',
'can' => 'admin.attendance.absences.view',
],
],
],
],
],
'Productos y servicios' => [
'icon' => 'menu-icon tf-icons ti ti-package',
'submenu' => [
'Categorias' => [
'icon' => 'menu-icon tf-icons ti ti-category',
'route' => 'admin.inventory.product-categories.index',
'can' => 'admin.inventory.product-categories.view',
],
'Productos y servicios' => [
'icon' => 'menu-icon tf-icons ti ti-packages',
'route' => 'admin.inventory.products.index',
'can' => 'admin.inventory.products.view',
],
'Agregar producto o servicio' => [
'icon' => 'menu-icon tf-icons ti ti-package',
'route' => 'admin.inventory.products.create',
'can' => 'admin.inventory.products.create',
],
]
],
'Ventas' => [
'icon' => 'menu-icon tf-icons ti ti-cash-register',
'submenu' => [
'Tablero' => [
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
'route' => 'admin.sales.dashboard.index',
'can' => 'admin.sales.dashboard.allow',
],
'Clientes' => [
'icon' => 'menu-icon tf-icons ti ti-users-group',
'route' => 'admin.contacts.customers.index',
'can' => 'admin.contacts.customers.view',
],
'Lista de precios' => [
'icon' => 'menu-icon tf-icons ti ti-report-search',
'route' => 'admin.sales.pricelist.index',
'can' => 'admin.sales.sales.view',
],
'Cotizaciones' => [
'icon' => 'menu-icon tf-icons ti ti-file-dollar',
'route' => 'admin.sales.quotes.index',
'can' => 'admin.sales.quotes.view',
],
'Ventas' => [
'icon' => 'menu-icon tf-icons ti ti-cash-register',
'submenu' => [
'Crear venta' => [
'route' => 'admin.sales.sales.create',
'can' => 'admin.sales.sales.create',
],
'Ventas' => [
'route' => 'admin.sales.sales.index',
'can' => 'admin.sales.sales.view',
],
'Ventas por producto o servicio' => [
'route' => 'admin.sales.sales-by-product.index',
'can' => 'admin.sales.sales.view',
],
]
],
'Remisiones' => [
'icon' => 'menu-icon tf-icons ti ti-receipt',
'submenu' => [
'Crear remisión' => [
'route' => 'admin.sales.remissions.create',
'can' => 'admin.sales.remissions.create',
],
'Remisiones' => [
'route' => 'admin.sales.remissions.index',
'can' => 'admin.sales.remissions.view',
],
'Remisiones por producto o servicio' => [
'route' => 'admin.sales.remissions-by-product.index',
'can' => 'admin.sales.remissions.view',
],
]
],
'Notas de crédito' => [
'icon' => 'menu-icon tf-icons ti ti-receipt-refund',
'submenu' => [
'Crear nota de crédito' => [
'route' => 'admin.sales.credit-notes.create',
'can' => 'admin.sales.credit-notes.create',
],
'Notas de créditos' => [
'route' => 'admin.sales.credit-notes.index',
'can' => 'admin.sales.credit-notes.view',
],
'Notas de crédito por producto o servicio' => [
'route' => 'admin.sales.credit-notes-by-product.index',
'can' => 'admin.sales.credit-notes.view',
],
]
],
],
],
'Finanzas' => [
'icon' => 'menu-icon tf-icons ti ti-coins',
'submenu' => [
'Tablero financiero' => [
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
'route' => 'admin.accounting.dashboard.index',
'can' => 'admin.accounting.dashboard.view',
],
'Contabilidad' => [
'icon' => 'menu-icon tf-icons ti ti-chart-pie',
'submenu' => [
'Cuentas contables' => [
'route' => 'admin.accounting.charts.index',
'can' => 'admin.accounting.charts.view',
],
'Cuentas por pagar' => [
'route' => 'admin.finance.accounts-payable.index',
'can' => 'admin.finance.accounts-payable.view',
],
'Cuentas por cobrar' => [
'route' => 'admin.finance.accounts-receivable.index',
'can' => 'admin.finance.accounts-receivable.view',
],
'Balance general' => [
'route' => 'admin.accounting.balance.index',
'can' => 'admin.accounting.balance.view',
],
'Estado de resultados' => [
'route' => 'admin.accounting.income-statement.index',
'can' => 'admin.accounting.income-statement.view',
],
'Libro mayor' => [
'route' => 'admin.accounting.ledger.index',
'can' => 'admin.accounting.ledger.view',
],
'Registros contables' => [
'route' => 'admin.accounting.entries.index',
'can' => 'admin.accounting.entries.view',
],
],
],
'Tablero de gastos' => [
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
'route' => 'admin.expenses.dashboard.index',
'can' => 'admin.expenses.dashboard.view',
],
'Gestión de gastos' => [
'icon' => 'menu-icon tf-icons ti ti-receipt-2',
'submenu' => [
'Nuevo gasto' => [
'route' => 'admin.expenses.expenses.create',
'can' => 'admin.expenses.expenses.create',
],
'Gastos' => [
'route' => 'admin.expenses.expenses.index',
'can' => 'admin.expenses.expenses.view',
],
'Categorías de gastos' => [
'route' => 'admin.expenses.categories.index',
'can' => 'admin.expenses.categories.view',
],
'Historial de gastos' => [
'route' => 'admin.expenses.history.index',
'can' => 'admin.expenses.history.view',
],
],
],
],
],
'Facturación' => [
'icon' => 'menu-icon tf-icons ti ti-rubber-stamp',
'submenu' => [
'Tablero' => [
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
'route' => 'admin.billing.dashboard.index',
'can' => 'admin.billing.dashboard.allow',
],
'Ingresos' => [
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
'submenu' => [
'Facturar ventas' => [
'route' => 'admin.billing.ingresos-stamp.index',
'can' => 'admin.billing.ingresos.create',
],
'CFDI Ingresos' => [
'route' => 'admin.billing.ingresos.index',
'can' => 'admin.billing.ingresos.view',
],
'CFDI Ingresos por producto o servicio' => [
'route' => 'admin.billing.ingresos-by-product.index',
'can' => 'admin.billing.ingresos.view',
],
]
],
'Egresos' => [
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
'submenu' => [
'Facturar notas de crédito' => [
'route' => 'admin.billing.egresos-stamp.index',
'can' => 'admin.billing.egresos.create',
],
'CFDI Engresos' => [
'route' => 'admin.billing.egresos.index',
'can' => 'admin.billing.egresos.view',
],
'CFDI Engresos por producto o servicio' => [
'route' => 'admin.billing.egresos-by-product.index',
'can' => 'admin.billing.egresos.view',
],
]
],
'Pagos' => [
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
'submenu' => [
'Facturar pagos' => [
'route' => 'admin.billing.pagos-stamp.index',
'can' => 'admin.billing.pagos.created',
],
'CFDI Pagos' => [
'route' => 'admin.billing.pagos.index',
'can' => 'admin.billing.pagos.view',
],
]
],
'CFDI nómina' => [
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
'route' => 'admin.billing.nomina.index',
'can' => 'admin.billing.nomina.view',
],
'Verificador de CFDI 4.0' => [
'icon' => 'menu-icon tf-icons ti ti-rosette-discount-check',
'route' => 'admin.billing.verify-cfdi.index',
'can' => 'admin.billing.verify-cfdi.allow',
],
]
],
'Inventario y logística' => [
'icon' => 'menu-icon tf-icons ti ti-truck-delivery',
'submenu' => [
'Cadena de suministro' => [
'icon' => 'menu-icon tf-icons ti ti-chart-dots-3',
'submenu' => [
'Proveedores' => [
'route' => 'admin.contacts.suppliers.index',
'can' => 'admin.contacts.suppliers.view',
],
'Órdenes de compra' => [
'route' => 'admin.inventory.orders.index',
'can' => 'admin.inventory.orders.view',
],
'Recepción de productos' => [
'route' => 'admin.inventory.reception.index',
'can' => 'admin.inventory.reception.view',
],
'Gestión de insumos' => [
'route' => 'admin.inventory.materials.index',
'can' => 'admin.inventory.materials.view',
],
],
],
'Gestión de almacenes' => [
'icon' => 'menu-icon tf-icons ti ti-building-warehouse',
'submenu' => [
'Almacenes' => [
'route' => 'admin.inventory.warehouse.index',
'can' => 'admin.inventory.warehouse.view',
],
'Stock de inventario' => [
'route' => 'admin.inventory.stock.index',
'can' => 'admin.inventory.stock.view',
],
'Movimientos de almacenes' => [
'route' => 'admin.inventory.movements.index',
'can' => 'admin.inventory.movements.view',
],
'Transferencias entre Almacenes' => [
'route' => 'admin.inventory.transfers.index',
'can' => 'admin.inventory.transfers.view',
],
],
],
'Envíos y logística' => [
'icon' => 'menu-icon tf-icons ti ti-truck',
'submenu' => [
'Órdenes de envío' => [
'route' => 'admin.inventory.shipping-orders.index',
'can' => 'admin.inventory.shipping-orders.view',
],
'Seguimiento de envíos' => [
'route' => 'admin.inventory.shipping-tracking.index',
'can' => 'admin.inventory.shipping-tracking.view',
],
'Transportistas' => [
'route' => 'admin.inventory.shipping-carriers.index',
'can' => 'admin.inventory.shipping-carriers.view',
],
'Tarifas y métodos de envío' => [
'route' => 'admin.inventory.shipping-rates.index',
'can' => 'admin.inventory.shipping-rates.view',
],
],
],
'Gestión de activos' => [
'icon' => 'menu-icon tf-icons ti ti-tools-kitchen',
'submenu' => [
'Activos registrados' => [
'route' => 'admin.inventory.assets.index',
'can' => 'admin.inventory.assets.view',
],
'Mantenimiento preventivo' => [
'route' => 'admin.inventory.asset-maintenance.index',
'can' => 'admin.inventory.asset-maintenance.view',
],
'Control de vida útil' => [
'route' => 'admin.inventory.asset-lifecycle.index',
'can' => 'admin.inventory.asset-lifecycle.view',
],
'Asignación de activos' => [
'route' => 'admin.inventory.asset-assignments.index',
'can' => 'admin.inventory.asset-assignments.view',
],
],
],
],
],
'Gestión empresarial' => [
'icon' => 'menu-icon tf-icons ti ti-briefcase',
'submenu' => [
'Gestión de proyectos' => [
'icon' => 'menu-icon tf-icons ti ti-layout-kanban',
'submenu' => [
'Tablero de proyectos' => [
'route' => 'admin.projects.dashboard.index',
'can' => 'admin.projects.dashboard.view',
],
'Proyectos activos' => [
'route' => 'admin.projects.index',
'can' => 'admin.projects.view',
],
'Crear proyecto' => [
'route' => 'admin.projects.create',
'can' => 'admin.projects.create',
],
'Gestión de tareas' => [
'route' => 'admin.projects.tasks.index',
'can' => 'admin.projects.tasks.view',
],
'Historial de proyectos' => [
'route' => 'admin.projects.history.index',
'can' => 'admin.projects.history.view',
],
],
],
'Producción y manufactura' => [
'icon' => 'menu-icon tf-icons ti ti-building-factory',
'submenu' => [
'Órdenes de producción' => [
'route' => 'admin.production.orders.index',
'can' => 'admin.production.orders.view',
],
'Nueva Orden de producción' => [
'route' => 'admin.production.orders.create',
'can' => 'admin.production.orders.create',
],
'Control de procesos' => [
'route' => 'admin.production.process.index',
'can' => 'admin.production.process.view',
],
'Historial de producción' => [
'route' => 'admin.production.history.index',
'can' => 'admin.production.history.view',
],
],
],
'Control de calidad' => [
'icon' => 'menu-icon tf-icons ti ti-award',
'submenu' => [
'Inspecciones de calidad' => [
'route' => 'admin.quality.inspections.index',
'can' => 'admin.quality.inspections.view',
],
'Crear inspección' => [
'route' => 'admin.quality.inspections.create',
'can' => 'admin.quality.inspections.create',
],
'Reportes de calidad' => [
'route' => 'admin.quality.reports.index',
'can' => 'admin.quality.reports.view',
],
'Historial de inspecciones' => [
'route' => 'admin.quality.history.index',
'can' => 'admin.quality.history.view',
],
],
],
'Flujos de trabajo y automatización' => [
'icon' => 'menu-icon tf-icons ti ti-chart-dots-3',
'submenu' => [
'Gestión de flujos de trabajo' => [
'route' => 'admin.workflows.index',
'can' => 'admin.workflows.view',
],
'Crear flujo de trabajo' => [
'route' => 'admin.workflows.create',
'can' => 'admin.workflows.create',
],
'Automatizaciones' => [
'route' => 'admin.workflows.automations.index',
'can' => 'admin.workflows.automations.view',
],
'Historial de flujos' => [
'route' => 'admin.workflows.history.index',
'can' => 'admin.workflows.history.view',
],
],
],
],
],
'Contratos' => [
'icon' => 'menu-icon tf-icons ti ti-writing-sign',
'submenu' => [
'Mis contratos' => [
'icon' => 'menu-icon tf-icons ti ti-file-description',
'route' => 'admin.contracts.index',
'can' => 'admin.contracts.view',
],
'Firmar contrato' => [
'icon' => 'menu-icon tf-icons ti ti-signature',
'route' => 'admin.contracts.sign',
'can' => 'admin.contracts.sign',
],
'Contratos automatizados' => [
'icon' => 'menu-icon tf-icons ti ti-robot',
'route' => 'admin.contracts.automated',
'can' => 'admin.contracts.automated.view',
],
'Historial de contratos' => [
'icon' => 'menu-icon tf-icons ti ti-archive',
'route' => 'admin.contracts.history',
'can' => 'admin.contracts.history.view',
],
]
],
'Atención al cliente' => [
'icon' => 'menu-icon tf-icons ti ti-messages',
'submenu' => [
'Tablero' => [
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
'route' => 'admin.sales.dashboard.index',
'can' => 'admin.ticketing.dashboard.view',
],
'Mis tickets' => [
'icon' => 'menu-icon tf-icons ti ti-ticket',
'route' => 'admin.ticketing.tickets.index',
'can' => 'admin.ticketing.tickets.view',
],
'Crear ticket' => [
'icon' => 'menu-icon tf-icons ti ti-square-plus',
'route' => 'admin.ticketing.tickets.create',
'can' => 'admin.ticketing.tickets.create',
],
'Categorías de tickets' => [
'icon' => 'menu-icon tf-icons ti ti-category',
'route' => 'admin.ticketing.categories.index',
'can' => 'admin.ticketing.categories.view',
],
'Estadísticas de atención' => [
'icon' => 'menu-icon tf-icons ti ti-chart-bar',
'route' => 'admin.ticketing.analytics.index',
'can' => 'admin.ticketing.analytics.view',
],
]
],
];

1
database/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.sqlite*

Binary file not shown.

View File

@ -0,0 +1,467 @@
[
{
"c_banco": "002",
"descripcion": "BANAMEX",
"razon_social": "Banco Nacional de México, S.A., Institución de Banca Múltiple, Grupo Financiero Banamex"
},
{
"c_banco": "006",
"descripcion": "BANCOMEXT",
"razon_social": "Banco Nacional de Comercio Exterior, Sociedad Nacional de Crédito, Institución de Banca de Desarrollo"
},
{
"c_banco": "009",
"descripcion": "BANOBRAS",
"razon_social": "Banco Nacional de Obras y Servicios Públicos, Sociedad Nacional de Crédito, Institución de Banca de Desarrollo"
},
{
"c_banco": "012",
"descripcion": "BBVA BANCOMER",
"razon_social": "BBVA Bancomer, S.A., Institución de Banca Múltiple, Grupo Financiero BBVA Bancomer"
},
{
"c_banco": "014",
"descripcion": "SANTANDER",
"razon_social": "Banco Santander (México), S.A., Institución de Banca Múltiple, Grupo Financiero Santander"
},
{
"c_banco": "019",
"descripcion": "BANJERCITO",
"razon_social": "Banco Nacional del Ejército, Fuerza Aérea y Armada, Sociedad Nacional de Crédito, Institución de Banca de Desarrollo"
},
{
"c_banco": "021",
"descripcion": "HSBC",
"razon_social": "HSBC México, S.A., institución De Banca Múltiple, Grupo Financiero HSBC"
},
{
"c_banco": "030",
"descripcion": "BAJIO",
"razon_social": "Banco del Bajío, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "032",
"descripcion": "IXE",
"razon_social": "IXE Banco, S.A., Institución de Banca Múltiple, IXE Grupo Financiero"
},
{
"c_banco": "036",
"descripcion": "INBURSA",
"razon_social": "Banco Inbursa, S.A., Institución de Banca Múltiple, Grupo Financiero Inbursa"
},
{
"c_banco": "037",
"descripcion": "INTERACCIONES",
"razon_social": "Banco Interacciones, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "042",
"descripcion": "MIFEL",
"razon_social": "Banca Mifel, S.A., Institución de Banca Múltiple, Grupo Financiero Mifel"
},
{
"c_banco": "044",
"descripcion": "SCOTIABANK",
"razon_social": "Scotiabank Inverlat, S.A."
},
{
"c_banco": "058",
"descripcion": "BANREGIO",
"razon_social": "Banco Regional de Monterrey, S.A., Institución de Banca Múltiple, Banregio Grupo Financiero"
},
{
"c_banco": "059",
"descripcion": "INVEX",
"razon_social": "Banco Invex, S.A., Institución de Banca Múltiple, Invex Grupo Financiero"
},
{
"c_banco": "060",
"descripcion": "BANSI",
"razon_social": "Bansi, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "062",
"descripcion": "AFIRME",
"razon_social": "Banca Afirme, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "072",
"descripcion": "BANORTE",
"razon_social": "Banco Mercantil del Norte, S.A., Institución de Banca Múltiple, Grupo Financiero Banorte"
},
{
"c_banco": "102",
"descripcion": "THE ROYAL BANK",
"razon_social": "The Royal Bank of Scotland México, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "103",
"descripcion": "AMERICAN EXPRESS",
"razon_social": "American Express Bank (México), S.A., Institución de Banca Múltiple"
},
{
"c_banco": "106",
"descripcion": "BAMSA",
"razon_social": "Bank of America México, S.A., Institución de Banca Múltiple, Grupo Financiero Bank of America"
},
{
"c_banco": "108",
"descripcion": "TOKYO",
"razon_social": "Bank of Tokyo-Mitsubishi UFJ (México), S.A."
},
{
"c_banco": "110",
"descripcion": "JP MORGAN",
"razon_social": "Banco J.P. Morgan, S.A., Institución de Banca Múltiple, J.P. Morgan Grupo Financiero"
},
{
"c_banco": "112",
"descripcion": "BMONEX",
"razon_social": "Banco Monex, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "113",
"descripcion": "VE POR MAS",
"razon_social": "Banco Ve Por Mas, S.A. Institución de Banca Múltiple"
},
{
"c_banco": "116",
"descripcion": "ING",
"razon_social": "ING Bank (México), S.A., Institución de Banca Múltiple, ING Grupo Financiero"
},
{
"c_banco": "124",
"descripcion": "DEUTSCHE",
"razon_social": "Deutsche Bank México, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "126",
"descripcion": "CREDIT SUISSE",
"razon_social": "Banco Credit Suisse (México), S.A. Institución de Banca Múltiple, Grupo Financiero Credit Suisse (México)"
},
{
"c_banco": "127",
"descripcion": "AZTECA",
"razon_social": "Banco Azteca, S.A. Institución de Banca Múltiple."
},
{
"c_banco": "128",
"descripcion": "AUTOFIN",
"razon_social": "Banco Autofin México, S.A. Institución de Banca Múltiple"
},
{
"c_banco": "129",
"descripcion": "BARCLAYS",
"razon_social": "Barclays Bank México, S.A., Institución de Banca Múltiple, Grupo Financiero Barclays México"
},
{
"c_banco": "130",
"descripcion": "COMPARTAMOS",
"razon_social": "Banco Compartamos, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "131",
"descripcion": "BANCO FAMSA",
"razon_social": "Banco Ahorro Famsa, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "132",
"descripcion": "BMULTIVA",
"razon_social": "Banco Multiva, S.A., Institución de Banca Múltiple, Multivalores Grupo Financiero"
},
{
"c_banco": "133",
"descripcion": "ACTINVER",
"razon_social": "Banco Actinver, S.A. Institución de Banca Múltiple, Grupo Financiero Actinver"
},
{
"c_banco": "134",
"descripcion": "WAL-MART",
"razon_social": "Banco Wal-Mart de México Adelante, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "135",
"descripcion": "NAFIN",
"razon_social": "Nacional Financiera, Sociedad Nacional de Crédito, Institución de Banca de Desarrollo"
},
{
"c_banco": "136",
"descripcion": "INTERBANCO",
"razon_social": "Inter Banco, S.A. Institución de Banca Múltiple"
},
{
"c_banco": "137",
"descripcion": "BANCOPPEL",
"razon_social": "BanCoppel, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "138",
"descripcion": "ABC CAPITAL",
"razon_social": "ABC Capital, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "139",
"descripcion": "UBS BANK",
"razon_social": "UBS Bank México, S.A., Institución de Banca Múltiple, UBS Grupo Financiero"
},
{
"c_banco": "140",
"descripcion": "CONSUBANCO",
"razon_social": "Consubanco, S.A. Institución de Banca Múltiple"
},
{
"c_banco": "141",
"descripcion": "VOLKSWAGEN",
"razon_social": "Volkswagen Bank, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "143",
"descripcion": "CIBANCO",
"razon_social": "CIBanco, S.A."
},
{
"c_banco": "145",
"descripcion": "BBASE",
"razon_social": "Banco Base, S.A., Institución de Banca Múltiple"
},
{
"c_banco": "166",
"descripcion": "BANSEFI",
"razon_social": "Banco del Ahorro Nacional y Servicios Financieros, Sociedad Nacional de Crédito, Institución de Banca de Desarrollo"
},
{
"c_banco": "168",
"descripcion": "HIPOTECARIA FEDERAL",
"razon_social": "Sociedad Hipotecaria Federal, Sociedad Nacional de Crédito, Institución de Banca de Desarrollo"
},
{
"c_banco": "600",
"descripcion": "MONEXCB",
"razon_social": "Monex Casa de Bolsa, S.A. de C.V. Monex Grupo Financiero"
},
{
"c_banco": "601",
"descripcion": "GBM",
"razon_social": "GBM Grupo Bursátil Mexicano, S.A. de C.V. Casa de Bolsa"
},
{
"c_banco": "602",
"descripcion": "MASARI",
"razon_social": "Masari Casa de Bolsa, S.A."
},
{
"c_banco": "605",
"descripcion": "VALUE",
"razon_social": "Value, S.A. de C.V. Casa de Bolsa"
},
{
"c_banco": "606",
"descripcion": "ESTRUCTURADORES",
"razon_social": "Estructuradores del Mercado de Valores Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "607",
"descripcion": "TIBER",
"razon_social": "Casa de Cambio Tiber, S.A. de C.V."
},
{
"c_banco": "608",
"descripcion": "VECTOR",
"razon_social": "Vector Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "610",
"descripcion": "B&B",
"razon_social": "B y B, Casa de Cambio, S.A. de C.V."
},
{
"c_banco": "614",
"descripcion": "ACCIVAL",
"razon_social": "Acciones y Valores Banamex, S.A. de C.V., Casa de Bolsa"
},
{
"c_banco": "615",
"descripcion": "MERRILL LYNCH",
"razon_social": "Merrill Lynch México, S.A. de C.V. Casa de Bolsa"
},
{
"c_banco": "616",
"descripcion": "FINAMEX",
"razon_social": "Casa de Bolsa Finamex, S.A. de C.V."
},
{
"c_banco": "617",
"descripcion": "VALMEX",
"razon_social": "Valores Mexicanos Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "618",
"descripcion": "UNICA",
"razon_social": "Unica Casa de Cambio, S.A. de C.V."
},
{
"c_banco": "619",
"descripcion": "MAPFRE",
"razon_social": "MAPFRE Tepeyac, S.A."
},
{
"c_banco": "620",
"descripcion": "PROFUTURO",
"razon_social": "Profuturo G.N.P., S.A. de C.V., Afore"
},
{
"c_banco": "621",
"descripcion": "CB ACTINVER",
"razon_social": "Actinver Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "622",
"descripcion": "OACTIN",
"razon_social": "OPERADORA ACTINVER, S.A. DE C.V."
},
{
"c_banco": "623",
"descripcion": "SKANDIA",
"razon_social": "Skandia Vida, S.A. de C.V."
},
{
"c_banco": "626",
"descripcion": "CBDEUTSCHE",
"razon_social": "Deutsche Securities, S.A. de C.V. CASA DE BOLSA"
},
{
"c_banco": "627",
"descripcion": "ZURICH",
"razon_social": "Zurich Compañía de Seguros, S.A."
},
{
"c_banco": "628",
"descripcion": "ZURICHVI",
"razon_social": "Zurich Vida, Compañía de Seguros, S.A."
},
{
"c_banco": "629",
"descripcion": "SU CASITA",
"razon_social": "Hipotecaria Su Casita, S.A. de C.V. SOFOM ENR"
},
{
"c_banco": "630",
"descripcion": "CB INTERCAM",
"razon_social": "Intercam Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "631",
"descripcion": "CI BOLSA",
"razon_social": "CI Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "632",
"descripcion": "BULLTICK CB",
"razon_social": "Bulltick Casa de Bolsa, S.A., de C.V."
},
{
"c_banco": "633",
"descripcion": "STERLING",
"razon_social": "Sterling Casa de Cambio, S.A. de C.V."
},
{
"c_banco": "634",
"descripcion": "FINCOMUN",
"razon_social": "Fincomún, Servicios Financieros Comunitarios, S.A. de C.V."
},
{
"c_banco": "636",
"descripcion": "HDI SEGUROS",
"razon_social": "HDI Seguros, S.A. de C.V."
},
{
"c_banco": "637",
"descripcion": "ORDER",
"razon_social": "Order Express Casa de Cambio, S.A. de C.V"
},
{
"c_banco": "638",
"descripcion": "AKALA",
"razon_social": "Akala, S.A. de C.V., Sociedad Financiera Popular"
},
{
"c_banco": "640",
"descripcion": "CB JPMORGAN",
"razon_social": "J.P. Morgan Casa de Bolsa, S.A. de C.V. J.P. Morgan Grupo Financiero"
},
{
"c_banco": "642",
"descripcion": "REFORMA",
"razon_social": "Operadora de Recursos Reforma, S.A. de C.V., S.F.P."
},
{
"c_banco": "646",
"descripcion": "STP",
"razon_social": "Sistema de Transferencias y Pagos STP, S.A. de C.V.SOFOM ENR"
},
{
"c_banco": "647",
"descripcion": "TELECOMM",
"razon_social": "Telecomunicaciones de México"
},
{
"c_banco": "648",
"descripcion": "EVERCORE",
"razon_social": "Evercore Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "649",
"descripcion": "SKANDIA",
"razon_social": "Skandia Operadora de Fondos, S.A. de C.V."
},
{
"c_banco": "651",
"descripcion": "SEGMTY",
"razon_social": "Seguros Monterrey New York Life, S.A de C.V"
},
{
"c_banco": "652",
"descripcion": "ASEA",
"razon_social": "Solución Asea, S.A. de C.V., Sociedad Financiera Popular"
},
{
"c_banco": "653",
"descripcion": "KUSPIT",
"razon_social": "Kuspit Casa de Bolsa, S.A. de C.V."
},
{
"c_banco": "655",
"descripcion": "SOFIEXPRESS",
"razon_social": "J.P. SOFIEXPRESS, S.A. de C.V., S.F.P."
},
{
"c_banco": "656",
"descripcion": "UNAGRA",
"razon_social": "UNAGRA, S.A. de C.V., S.F.P."
},
{
"c_banco": "659",
"descripcion": "OPCIONES EMPRESARIALES DEL NOROESTE",
"razon_social": "OPCIONES EMPRESARIALES DEL NORESTE, S.A. DE C.V., S.F.P."
},
{
"c_banco": "901",
"descripcion": "CLS",
"razon_social": "Cls Bank International"
},
{
"c_banco": "902",
"descripcion": "INDEVAL",
"razon_social": "SD. Indeval, S.A. de C.V."
},
{
"c_banco": "670",
"descripcion": "LIBERTAD",
"razon_social": "Libertad Servicios Financieros, S.A. De C.V."
},
{
"c_banco": "999",
"descripcion": "N/A",
"razon_social": null
}
]

View File

@ -0,0 +1,610 @@
{
"percepciones": [
{
"clave": "001",
"descripcion": "Sueldos, Salarios Rayas y Jornales"
},
{
"clave": "002",
"descripcion": "Gratificación Anual (Aguinaldo)"
},
{
"clave": "003",
"descripcion": "Participación de los Trabajadores en las Utilidades PTU"
},
{
"clave": "004",
"descripcion": "Reembolso de Gastos Médicos Dentales y Hospitalarios"
},
{
"clave": "005",
"descripcion": "Fondo de Ahorro"
},
{
"clave": "006",
"descripcion": "Caja de ahorro"
},
{
"clave": "009",
"descripcion": "Contribuciones a Cargo del Trabajador Pagadas por el Patrón"
},
{
"clave": "010",
"descripcion": "Premios por puntualidad"
},
{
"clave": "011",
"descripcion": "Prima de Seguro de vida"
},
{
"clave": "012",
"descripcion": "Seguro de Gastos Médicos Mayores"
},
{
"clave": "013",
"descripcion": "Cuotas Sindicales Pagadas por el Patrón"
},
{
"clave": "014",
"descripcion": "Subsidios por incapacidad"
},
{
"clave": "015",
"descripcion": "Becas para trabajadores y/o hijos"
},
{
"clave": "019",
"descripcion": "Horas extra"
},
{
"clave": "020",
"descripcion": "Prima dominical"
},
{
"clave": "021",
"descripcion": "Prima vacacional"
},
{
"clave": "022",
"descripcion": "Prima por antigüedad"
},
{
"clave": "023",
"descripcion": "Pagos por separación"
},
{
"clave": "024",
"descripcion": "Seguro de retiro"
},
{
"clave": "025",
"descripcion": "Indemnizaciones"
},
{
"clave": "026",
"descripcion": "Reembolso por funeral"
},
{
"clave": "027",
"descripcion": "Cuotas de seguridad social pagadas por el patrón"
},
{
"clave": "028",
"descripcion": "Comisiones"
},
{
"clave": "029",
"descripcion": "Vales de despensa"
},
{
"clave": "030",
"descripcion": "Vales de restaurante"
},
{
"clave": "031",
"descripcion": "Vales de gasolina"
},
{
"clave": "032",
"descripcion": "Vales de ropa"
},
{
"clave": "033",
"descripcion": "Ayuda para renta"
},
{
"clave": "034",
"descripcion": "Ayuda para artículos escolares"
},
{
"clave": "035",
"descripcion": "Ayuda para anteojos"
},
{
"clave": "036",
"descripcion": "Ayuda para transporte"
},
{
"clave": "037",
"descripcion": "Ayuda para gastos de funeral"
},
{
"clave": "038",
"descripcion": "Otros ingresos por salarios"
},
{
"clave": "039",
"descripcion": "Jubilaciones, pensiones o haberes de retiro"
},
{
"clave": "044",
"descripcion": "Jubilaciones, pensiones o haberes de retiro en parcialidades"
},
{
"clave": "045",
"descripcion": "Ingresos en acciones o títulos valor que representan bienes"
},
{
"clave": "046",
"descripcion": "Ingresos asimilados a salarios"
},
{
"clave": "047",
"descripcion": "Alimentación diferentes a los establecidos en el Art 94 último párrafo LISR"
},
{
"clave": "048",
"descripcion": "Habitación"
},
{
"clave": "049",
"descripcion": "Premios por asistencia"
},
{
"clave": "050",
"descripcion": "Viáticos"
},
{
"clave": "051",
"descripcion": "Pagos por gratificaciones, primas, compensaciones, recompensas u otros a extrabajadores derivados de jubilación en parcialidades"
},
{
"clave": "052",
"descripcion": "Pagos que se realicen a extrabajadores que obtengan una jubilación en parcialidades derivados de la ejecución de resoluciones judicial o de un laudo"
},
{
"clave": "053",
"descripcion": "Pagos que se realicen a extrabajadores que obtengan una jubilación en una sola exhibición derivados de la ejecución de resoluciones judicial o de un laudo"
}
],
"deducciones": [
{
"clave": "001",
"descripcion": "Seguridad social"
},
{
"clave": "002",
"descripcion": "ISR"
},
{
"clave": "003",
"descripcion": "Aportaciones a retiro, cesantía en edad avanzada y vejez."
},
{
"clave": "004",
"descripcion": "Otros"
},
{
"clave": "005",
"descripcion": "Aportaciones a Fondo de vivienda"
},
{
"clave": "006",
"descripcion": "Descuento por incapacidad"
},
{
"clave": "007",
"descripcion": "Pensión alimenticia"
},
{
"clave": "008",
"descripcion": "Renta"
},
{
"clave": "009",
"descripcion": "Préstamos provenientes del Fondo Nacional de la Vivienda para los Trabajadores"
},
{
"clave": "010",
"descripcion": "Pago por crédito de vivienda"
},
{
"clave": "011",
"descripcion": "Pago de abonos INFONACOT"
},
{
"clave": "012",
"descripcion": "Anticipo de salarios"
},
{
"clave": "013",
"descripcion": "Pagos hechos con exceso al trabajador"
},
{
"clave": "014",
"descripcion": "Errores"
},
{
"clave": "015",
"descripcion": "Pérdidas"
},
{
"clave": "016",
"descripcion": "Averías"
},
{
"clave": "017",
"descripcion": "Adquisición de artículos producidos por la empresa o establecimiento"
},
{
"clave": "018",
"descripcion": "Cuotas para la constitución y fomento de sociedades cooperativas y de cajas de ahorro"
},
{
"clave": "019",
"descripcion": "Cuotas sindicales"
},
{
"clave": "020",
"descripcion": "Ausencia (Ausentismo)"
},
{
"clave": "021",
"descripcion": "Cuotas obrero patronales"
},
{
"clave": "022",
"descripcion": "Impuestos Locales"
},
{
"clave": "023",
"descripcion": "Aportaciones voluntarias"
},
{
"clave": "024",
"descripcion": "Ajuste en Gratificación Anual (Aguinaldo) Exento"
},
{
"clave": "025",
"descripcion": "Ajuste en Gratificación Anual (Aguinaldo) Gravado"
},
{
"clave": "026",
"descripcion": "Ajuste en Participación de los Trabajadores en las Utilidades PTU Exento"
},
{
"clave": "027",
"descripcion": "Ajuste en Participación de los Trabajadores en las Utilidades PTU Gravado"
},
{
"clave": "028",
"descripcion": "Ajuste en Reembolso de Gastos Médicos Dentales y Hospitalarios Exento"
},
{
"clave": "029",
"descripcion": "Ajuste en Fondo de ahorro Exento"
},
{
"clave": "030",
"descripcion": "Ajuste en Caja de ahorro Exento"
},
{
"clave": "031",
"descripcion": "Ajuste en Contribuciones a Cargo del Trabajador Pagadas por el Patrón Exento"
},
{
"clave": "032",
"descripcion": "Ajuste en Premios por puntualidad Gravado"
},
{
"clave": "033",
"descripcion": "Ajuste en Prima de Seguro de vida Exento"
},
{
"clave": "034",
"descripcion": "Ajuste en Seguro de Gastos Médicos Mayores Exento"
},
{
"clave": "035",
"descripcion": "Ajuste en Cuotas Sindicales Pagadas por el Patrón Exento"
},
{
"clave": "036",
"descripcion": "Ajuste en Subsidios por incapacidad Exento"
},
{
"clave": "037",
"descripcion": "Ajuste en Becas para trabajadores y/o hijos Exento"
},
{
"clave": "038",
"descripcion": "Ajuste en Horas extra Exento"
},
{
"clave": "039",
"descripcion": "Ajuste en Horas extra Gravado"
},
{
"clave": "040",
"descripcion": "Ajuste en Prima dominical Exento"
},
{
"clave": "041",
"descripcion": "Ajuste en Prima dominical Gravado"
},
{
"clave": "042",
"descripcion": "Ajuste en Prima vacacional Exento"
},
{
"clave": "043",
"descripcion": "Ajuste en Prima vacacional Gravado"
},
{
"clave": "044",
"descripcion": "Ajuste en Prima por antigüedad Exento"
},
{
"clave": "045",
"descripcion": "Ajuste en Prima por antigüedad Gravado"
},
{
"clave": "046",
"descripcion": "Ajuste en Pagos por separación Exento"
},
{
"clave": "047",
"descripcion": "Ajuste en Pagos por separación Gravado"
},
{
"clave": "048",
"descripcion": "Ajuste en Seguro de retiro Exento"
},
{
"clave": "049",
"descripcion": "Ajuste en Indemnizaciones Exento"
},
{
"clave": "050",
"descripcion": "Ajuste en Indemnizaciones Gravado"
},
{
"clave": "051",
"descripcion": "Ajuste en Reembolso por funeral Exento"
},
{
"clave": "052",
"descripcion": "Ajuste en Cuotas de seguridad social pagadas por el patrón Exento"
},
{
"clave": "053",
"descripcion": "Ajuste en Comisiones Gravado"
},
{
"clave": "054",
"descripcion": "Ajuste en Vales de despensa Exento"
},
{
"clave": "055",
"descripcion": "Ajuste en Vales de restaurante Exento"
},
{
"clave": "056",
"descripcion": "Ajuste en Vales de gasolina Exento"
},
{
"clave": "057",
"descripcion": "Ajuste en Vales de ropa Exento"
},
{
"clave": "058",
"descripcion": "Ajuste en Ayuda para renta Exento"
},
{
"clave": "059",
"descripcion": "Ajuste en Ayuda para artículos escolares Exento"
},
{
"clave": "060",
"descripcion": "Ajuste en Ayuda para anteojos Exento"
},
{
"clave": "061",
"descripcion": "Ajuste en Ayuda para transporte Exento"
},
{
"clave": "062",
"descripcion": "Ajuste en Ayuda para gastos de funeral Exento"
},
{
"clave": "063",
"descripcion": "Ajuste en Otros ingresos por salarios Exento"
},
{
"clave": "064",
"descripcion": "Ajuste en Otros ingresos por salarios Gravado"
},
{
"clave": "065",
"descripcion": "Ajuste en Jubilaciones, pensiones o haberes de retiro en una sola exhibición Exento "
},
{
"clave": "066",
"descripcion": "Ajuste en Jubilaciones, pensiones o haberes de retiro en una sola exhibición Gravado"
},
{
"clave": "067",
"descripcion": "Ajuste en Pagos por separación Acumulable"
},
{
"clave": "068",
"descripcion": "Ajuste en Pagos por separación No acumulable"
},
{
"clave": "069",
"descripcion": "Ajuste en Jubilaciones, pensiones o haberes de retiro en parcialidades Exento"
},
{
"clave": "070",
"descripcion": "Ajuste en Jubilaciones, pensiones o haberes de retiro en parcialidades Gravado"
},
{
"clave": "071",
"descripcion": "Ajuste en Subsidio para el empleo (efectivamente entregado al trabajador)"
},
{
"clave": "072",
"descripcion": "Ajuste en Ingresos en acciones o títulos valor que representan bienes Exento"
},
{
"clave": "073",
"descripcion": "Ajuste en Ingresos en acciones o títulos valor que representan bienes Gravado"
},
{
"clave": "074",
"descripcion": "Ajuste en Alimentación Exento"
},
{
"clave": "075",
"descripcion": "Ajuste en Alimentación Gravado"
},
{
"clave": "076",
"descripcion": "Ajuste en Habitación Exento"
},
{
"clave": "077",
"descripcion": "Ajuste en Habitación Gravado"
},
{
"clave": "078",
"descripcion": "Ajuste en Premios por asistencia"
},
{
"clave": "079",
"descripcion": "Ajuste en Pagos distintos a los listados y que no deben considerarse como ingreso por sueldos, salarios o ingresos asimilados."
},
{
"clave": "080",
"descripcion": "Ajuste en Viáticos gravados"
},
{
"clave": "081",
"descripcion": "Ajuste en Viáticos (entregados al trabajador)"
},
{
"clave": "082",
"descripcion": "Ajuste en Fondo de ahorro Gravado"
},
{
"clave": "083",
"descripcion": "Ajuste en Caja de ahorro Gravado"
},
{
"clave": "084",
"descripcion": "Ajuste en Prima de Seguro de vida Gravado"
},
{
"clave": "085",
"descripcion": "Ajuste en Seguro de Gastos Médicos Mayores Gravado"
},
{
"clave": "086",
"descripcion": "Ajuste en Subsidios por incapacidad Gravado"
},
{
"clave": "087",
"descripcion": "Ajuste en Becas para trabajadores y/o hijos Gravado"
},
{
"clave": "088",
"descripcion": "Ajuste en Seguro de retiro Gravado"
},
{
"clave": "089",
"descripcion": "Ajuste en Vales de despensa Gravado"
},
{
"clave": "090",
"descripcion": "Ajuste en Vales de restaurante Gravado"
},
{
"clave": "091",
"descripcion": "Ajuste en Vales de gasolina Gravado"
},
{
"clave": "092",
"descripcion": "Ajuste en Vales de ropa Gravado"
},
{
"clave": "093",
"descripcion": "Ajuste en Ayuda para renta Gravado"
},
{
"clave": "094",
"descripcion": "Ajuste en Ayuda para artículos escolares Gravado"
},
{
"clave": "095",
"descripcion": "Ajuste en Ayuda para anteojos Gravado"
},
{
"clave": "096",
"descripcion": "Ajuste en Ayuda para transporte Gravado"
},
{
"clave": "097",
"descripcion": "Ajuste en Ayuda para gastos de funeral Gravado"
},
{
"clave": "098",
"descripcion": "Ajuste a ingresos asimilados a salarios gravados"
},
{
"clave": "099",
"descripcion": "Ajuste a ingresos por sueldos y salarios gravados"
},
{
"clave": "100",
"descripcion": "Ajuste en Viáticos exentos"
},
{
"clave": "101",
"descripcion": "ISR Retenido de ejercicio anterior"
},
{
"clave": "102",
"descripcion": "Ajuste a pagos por gratificaciones, primas, compensaciones, recompensas u otros a extrabajadores derivados de jubilación en parcialidades, gravados"
},
{
"clave": "103",
"descripcion": "Ajuste a pagos que se realicen a extrabajadores que obtengan una jubilación en parcialidades derivados de la ejecución de una resolución judicial o de un laudo gravados"
},
{
"clave": "104",
"descripcion": "Ajuste a pagos que se realicen a extrabajadores que obtengan una jubilación en parcialidades derivados de la ejecución de una resolución judicial o de un laudo exentos"
},
{
"clave": "105",
"descripcion": "Ajuste a pagos que se realicen a extrabajadores que obtengan una jubilación en una sola exhibición derivados de la ejecución de una resolución judicial o de un laudo gravados"
},
{
"clave": "106",
"descripcion": "Ajuste a pagos que se realicen a extrabajadores que obtengan una jubilación en una sola exhibición derivados de la ejecución de una resolución judicial o de un laudo exentos"
},
{
"clave": "107",
"descripcion": "Ajuste al Subsidio Causado "
}
]
}

View File

@ -0,0 +1,15 @@
{
"2": "Sueldos y salarios",
"3": "Jubilados",
"4": "Pensionados",
"5": "Asimilados a salarios, Miembros de las Sociedades Cooperativas de Producción",
"6": "Asimilados a salarios, Integrantes de Sociedades y Asociaciones Civiles",
"7": "Asimilados a salarios, Miembros de consejos directivos, de vigilancia, consultivos, honorarios a administradores, comisarios y gerentes generales",
"8": "Asimilados a salarios, Actividad empresarial (comisionistas)",
"9": "Asimilados a salarios, Honorarios asimilados a salarios",
"10": "Asimilados a salarios, Ingresos acciones o títulos valor",
"11": "Asimilados otros",
"12": "Jubilados o Pensionados",
"13": "Indemnización o Separación",
"99": "Otro Regimen"
}

View File

@ -0,0 +1,210 @@
{
"units": [
{
"nombre": "Acre",
"simbolo": "acre",
"categoria": "longitud",
"c_clave_unidad": "ACR"
},
{
"nombre": "Centímetro",
"simbolo": "cm",
"categoria": "longitud",
"c_clave_unidad": "CMT"
},
{
"nombre": "Pie",
"simbolo": "ft",
"categoria": "longitud",
"c_clave_unidad": "FOT"
},
{
"nombre": "Pie cuadrado",
"simbolo": "ft²",
"categoria": "longitud",
"c_clave_unidad": "FTK"
},
{
"nombre": "Pie cúbico",
"simbolo": "ft³",
"categoria": "longitud",
"c_clave_unidad": "FTQ"
},
{
"nombre": "Galón (EUA)",
"simbolo": "gal (US)",
"categoria": "longitud",
"c_clave_unidad": "GLL"
},
{
"nombre": "hectárea",
"simbolo": "decir ah",
"categoria": "longitud",
"c_clave_unidad": "HAR"
},
{
"nombre": "Pulgada",
"simbolo": "in",
"categoria": "longitud",
"c_clave_unidad": "INH"
},
{
"nombre": "Kilogramo",
"simbolo": "kg",
"categoria": "longitud",
"c_clave_unidad": "KGM"
},
{
"nombre": "Kilómetro",
"simbolo": "km",
"categoria": "longitud",
"c_clave_unidad": "KMT"
},
{
"nombre": "Libra",
"simbolo": "lb",
"categoria": "longitud",
"c_clave_unidad": "LBR"
},
{
"nombre": "Litro",
"simbolo": "l",
"categoria": "longitud",
"c_clave_unidad": "LTR"
},
{
"nombre": "Metro cuadrado",
"simbolo": "m²",
"categoria": "longitud",
"c_clave_unidad": "MTK"
},
{
"nombre": "Metro cúbico",
"simbolo": "m³",
"categoria": "longitud",
"c_clave_unidad": "MTQ"
},
{
"nombre": "Metro",
"simbolo": "m",
"categoria": "longitud",
"c_clave_unidad": "MTR"
},
{
"nombre": "Yarda",
"simbolo": "yd",
"categoria": "longitud",
"c_clave_unidad": "YRD"
}
],
"conversions": [
{
"from_unit": "MTR",
"to_unit": "CMT",
"factor": 100,
"categoria": "longitud"
},
{
"from_unit": "MTR",
"to_unit": "KMT",
"factor": 0.001,
"categoria": "longitud"
},
{
"from_unit": "KMT",
"to_unit": "MTR",
"factor": 1000,
"categoria": "longitud"
},
{
"from_unit": "FOT",
"to_unit": "INH",
"factor": 12,
"categoria": "longitud"
},
{
"from_unit": "LBR",
"to_unit": "KGM",
"factor": 0.453592,
"categoria": "peso"
},
{
"from_unit": "GLL",
"to_unit": "LTR",
"factor": 3.78541,
"categoria": "volumen"
},
{
"from_unit": "YRD",
"to_unit": "MTR",
"factor": 0.9144,
"categoria": "longitud"
},
{
"from_unit": "YRD",
"to_unit": "FOT",
"factor": 3,
"categoria": "longitud"
},
{
"from_unit": "YRD",
"to_unit": "INH",
"factor": 36,
"categoria": "longitud"
},
{
"from_unit": "FOT",
"to_unit": "MTR",
"factor": 0.3048,
"categoria": "longitud"
},
{
"from_unit": "INH",
"to_unit": "CMT",
"factor": 2.54,
"categoria": "longitud"
},
{
"from_unit": "LTR",
"to_unit": "GLL",
"factor": 0.264172,
"categoria": "volumen"
},
{
"from_unit": "GLL",
"to_unit": "LTR",
"factor": 3.78541,
"categoria": "volumen"
},
{
"from_unit": "MTK",
"to_unit": "FTK",
"factor": 10.7639,
"categoria": "área"
},
{
"from_unit": "HAR",
"to_unit": "MTK",
"factor": 10000,
"categoria": "área"
},
{
"from_unit": "ACR",
"to_unit": "MTK",
"factor": 4046.86,
"categoria": "área"
},
{
"from_unit": "MTQ",
"to_unit": "LTR",
"factor": 1000,
"categoria": "volumen"
},
{
"from_unit": "FTQ",
"to_unit": "LTR",
"factor": 28.3168,
"categoria": "volumen"
}
]
}

View File

@ -0,0 +1,510 @@
{
"roles": {
"SuperAdmin" : {
"style": "dark",
"permissions" : [
"admin.core.general-settings.allow",
"admin.core.cache-manager.view",
"admin.core.smtp-settings.allow",
"admin.store-manager.company.view",
"admin.store-manager.stores.view",
"admin.store-manager.stores.view",
"admin.finance.banxico.allow",
"admin.finance.banking.allow",
"admin.sales.ticket-config.allow",
"admin.billing.csds-settings.allow",
"admin.billing.stamping-package.allow",
"admin.billing.smtp-settings.allow",
"admin.billing.mass-cfdi-download.allow",
"admin.core.users.view",
"admin.core.roles.view",
"admin.core.permissions.view",
"admin.core.import-sat-catalogs.allow",
"admin.ai.dashboard.view",
"admin.ai.content.create",
"admin.ai.analytics.view",
"admin.chatbot.config.view",
"admin.chatbot.flows.manage",
"admin.chatbot.history.view",
"admin.iot.devices.view",
"admin.iot.sensors.manage",
"admin.iot.monitoring.view",
"admin.facial-recognition.profiles.manage",
"admin.facial-recognition.live.verify",
"admin.facial-recognition.history.view",
"admin.print.queue.view",
"admin.print.history.view",
"admin.print.settings.manage",
"admin.website.general-settings.allow",
"admin.website.legal.view",
"admin.website.faq.view",
"admin.blog.categories.view",
"admin.blog.tags.view",
"admin.blog.articles.view",
"admin.blog.comments.view",
"admin.contacts.contacts.view",
"admin.contacts.employees.view",
"admin.contacts.employees.create",
"admin.rrhh.jobs.view",
"admin.rrhh.organization.view",
"admin.recruitment.jobs.view",
"admin.recruitment.candidates.view",
"admin.recruitment.interviews.view",
"admin.payroll.contracts.view",
"admin.payroll.process.view",
"admin.payroll.receipts.view",
"admin.payroll.reports.view",
"admin.attendance.records.view",
"admin.attendance.biometric.view",
"admin.attendance.absences.view",
"admin.inventory.product-categories.view",
"admin.inventory.product-catalogs.view",
"admin.inventory.products.view",
"admin.inventory.products.create",
"admin.sales.dashboard.allow",
"admin.contacts.customers.view",
"admin.sales.sales.view",
"admin.sales.quotes.view",
"admin.sales.sales.create",
"admin.sales.sales.view",
"admin.sales.sales.view",
"admin.sales.remissions.create",
"admin.sales.remissions.view",
"admin.sales.remissions.view",
"admin.sales.credit-notes.create",
"admin.sales.credit-notes.view",
"admin.sales.credit-notes.view",
"admin.accounting.dashboard.view",
"admin.accounting.charts.view",
"admin.finance.accounts-payable.view",
"admin.finance.accounts-receivable.view",
"admin.accounting.balance.view",
"admin.accounting.income-statement.view",
"admin.accounting.ledger.view",
"admin.accounting.entries.view",
"admin.expenses.dashboard.view",
"admin.expenses.expenses.create",
"admin.expenses.expenses.view",
"admin.expenses.categories.view",
"admin.expenses.history.view",
"admin.billing.dashboard.allow",
"admin.billing.ingresos.create",
"admin.billing.ingresos.view",
"admin.billing.ingresos.view",
"admin.billing.egresos.create",
"admin.billing.egresos.view",
"admin.billing.egresos.view",
"admin.billing.pagos.created",
"admin.billing.pagos.view",
"admin.billing.nomina.view",
"admin.billing.verify-cfdi.allow",
"admin.contacts.suppliers.view",
"admin.inventory.orders.view",
"admin.inventory.reception.view",
"admin.inventory.materials.view",
"admin.inventory.warehouse.view",
"admin.inventory.stock.view",
"admin.inventory.movements.view",
"admin.inventory.transfers.view",
"admin.inventory.shipping-orders.view",
"admin.inventory.shipping-tracking.view",
"admin.inventory.shipping-carriers.view",
"admin.inventory.shipping-rates.view",
"admin.inventory.assets.view",
"admin.inventory.asset-maintenance.view",
"admin.inventory.asset-lifecycle.view",
"admin.inventory.asset-assignments.view",
"admin.projects.dashboard.view",
"admin.projects.view",
"admin.projects.create",
"admin.projects.tasks.view",
"admin.projects.history.view",
"admin.production.orders.view",
"admin.production.orders.create",
"admin.production.process.view",
"admin.production.history.view",
"admin.quality.inspections.view",
"admin.quality.inspections.create",
"admin.quality.reports.view",
"admin.quality.history.view",
"admin.workflows.view",
"admin.workflows.create",
"admin.workflows.automations.view",
"admin.workflows.history.view",
"admin.contracts.view",
"admin.contracts.sign",
"admin.contracts.automated.view",
"admin.contracts.history.view",
"admin.ticketing.dashboard.view",
"admin.ticketing.tickets.view",
"admin.ticketing.tickets.create",
"admin.ticketing.categories.view",
"admin.ticketing.analytics.view"
]
},
"Admin" : {
"style": "primary",
"permissions" : [
"admin.core.general-settings.allow",
"admin.core.cache-manager.view",
"admin.core.smtp-settings.allow",
"admin.website.general-settings.allow",
"admin.website.legal.view",
"admin.store-manager.company.view",
"admin.store-manager.stores.view",
"admin.store-manager.stores.view",
"admin.core.users.view",
"admin.core.roles.view",
"admin.core.permissions.view",
"admin.core.import-sat-catalogs.allow",
"admin.contacts.contacts.view",
"admin.contacts.contacts.create",
"admin.contacts.employees.view",
"admin.contacts.employees.create",
"admin.contacts.customers.view",
"admin.contacts.customers.create",
"admin.rrhh.jobs.view",
"admin.rrhh.organization.view",
"admin.inventory.product-categories.view",
"admin.inventory.product-catalogs.view",
"admin.inventory.products.view",
"admin.inventory.products.create",
"admin.contacts.suppliers.view",
"admin.contacts.suppliers.create",
"admin.inventory.warehouse.view",
"admin.inventory.orders.view",
"admin.inventory.reception.view",
"admin.inventory.materials.view",
"admin.inventory.stock.view",
"admin.inventory.movements.view",
"admin.inventory.transfers.view",
"admin.inventory.assets.view",
"admin.inventory.asset-maintenance.view",
"admin.inventory.asset-lifecycle.view",
"admin.inventory.asset-assignments.view"
]
},
"Administrador Web" : {
"style": "primary",
"permissions" : []
},
"Editor" : {
"style": "primary",
"permissions" : []
},
"Almacenista" : {
"style": "success",
"permissions" : [
"admin.inventory.product-categories.view",
"admin.inventory.product-catalogs.view",
"admin.inventory.products.view",
"admin.inventory.products.create",
"admin.inventory.warehouse.view",
"admin.inventory.stock.view",
"admin.inventory.movements.view",
"admin.inventory.transfers.view"
]
},
"Productos y servicios" : {
"style": "info",
"permissions" : []
},
"Recursos humanos" : {
"style": "success",
"permissions" : []
},
"Nómina" : {
"style": "success",
"permissions" : []
},
"Activos fijos" : {
"style": "secondary",
"permissions" : []
},
"Compras y gastos" : {
"style": "info",
"permissions" : []
},
"CRM" : {
"style": "warning",
"permissions" : []
},
"Vendedor" : {
"style": "info",
"permissions" : []
},
"Gerente" : {
"style": "danger",
"permissions" : []
},
"Facturación" : {
"style": "info",
"permissions" : []
},
"Facturación avanzado" : {
"style": "danger",
"permissions" : []
},
"Finanzas" : {
"style": "info",
"permissions" : []
},
"Auditor" : {
"style": "dark",
"permissions" : [
"admin.core.cache-manager.view",
"admin.store-manager.company.view",
"admin.store-manager.stores.view",
"admin.store-manager.stores.view",
"admin.core.users.view",
"admin.core.roles.view",
"admin.core.permissions.view",
"admin.ai.dashboard.view",
"admin.ai.analytics.view",
"admin.chatbot.config.view",
"admin.chatbot.history.view",
"admin.iot.devices.view",
"admin.iot.monitoring.view",
"admin.facial-recognition.history.view",
"admin.print.queue.view",
"admin.print.history.view",
"admin.website.legal.view",
"admin.website.faq.view",
"admin.blog.categories.view",
"admin.blog.tags.view",
"admin.blog.articles.view",
"admin.blog.comments.view",
"admin.contacts.contacts.view",
"admin.crm.marketing-campaigns.view",
"admin.crm.leads.view",
"admin.crm.newsletter.view",
"admin.contacts.employees.view",
"admin.rrhh.jobs.view",
"admin.rrhh.organization.view",
"admin.recruitment.jobs.view",
"admin.recruitment.candidates.view",
"admin.recruitment.interviews.view",
"admin.payroll.contracts.view",
"admin.payroll.process.view",
"admin.payroll.receipts.view",
"admin.payroll.reports.view",
"admin.attendance.records.view",
"admin.attendance.biometric.view",
"admin.attendance.absences.view",
"admin.inventory.product-categories.view",
"admin.inventory.product-catalogs.view",
"admin.inventory.products.view",
"admin.contacts.customers.view",
"admin.sales.sales.view",
"admin.sales.quotes.view",
"admin.sales.sales.view",
"admin.sales.sales.view",
"admin.sales.remissions.view",
"admin.sales.remissions.view",
"admin.sales.credit-notes.view",
"admin.sales.credit-notes.view",
"admin.accounting.dashboard.view",
"admin.accounting.charts.view",
"admin.finance.accounts-payable.view",
"admin.finance.accounts-receivable.view",
"admin.accounting.balance.view",
"admin.accounting.income-statement.view",
"admin.accounting.ledger.view",
"admin.accounting.entries.view",
"admin.expenses.dashboard.view",
"admin.expenses.expenses.view",
"admin.expenses.categories.view",
"admin.expenses.history.view",
"admin.billing.ingresos.view",
"admin.billing.ingresos.view",
"admin.billing.egresos.view",
"admin.billing.egresos.view",
"admin.billing.pagos.view",
"admin.billing.nomina.view",
"admin.contacts.suppliers.view",
"admin.inventory.orders.view",
"admin.inventory.reception.view",
"admin.inventory.materials.view",
"admin.inventory.warehouse.view",
"admin.inventory.stock.view",
"admin.inventory.movements.view",
"admin.inventory.transfers.view",
"admin.inventory.shipping-orders.view",
"admin.inventory.shipping-tracking.view",
"admin.inventory.shipping-carriers.view",
"admin.inventory.shipping-rates.view",
"admin.inventory.assets.view",
"admin.inventory.asset-maintenance.view",
"admin.inventory.asset-lifecycle.view",
"admin.inventory.asset-assignments.view",
"admin.projects.dashboard.view",
"admin.projects.view",
"admin.projects.tasks.view",
"admin.projects.history.view",
"admin.production.orders.view",
"admin.production.process.view",
"admin.production.history.view",
"admin.quality.inspections.view",
"admin.quality.reports.view",
"admin.quality.history.view",
"admin.workflows.view",
"admin.workflows.automations.view",
"admin.workflows.history.view",
"admin.contracts.view",
"admin.contracts.automated.view",
"admin.contracts.history.view",
"admin.ticketing.dashboard.view",
"admin.ticketing.tickets.view",
"admin.ticketing.categories.view",
"admin.ticketing.analytics.view"
]
}
},
"permissions": [
"admin.core.general-settings.allow",
"admin.core.cache-manager.view",
"admin.core.smtp-settings.allow",
"admin.store-manager.company.view",
"admin.store-manager.stores.view",
"admin.store-manager.stores.view",
"admin.finance.banxico.allow",
"admin.finance.banking.allow",
"admin.sales.ticket-config.allow",
"admin.billing.csds-settings.allow",
"admin.billing.stamping-package.allow",
"admin.billing.smtp-settings.allow",
"admin.billing.mass-cfdi-download.allow",
"admin.core.users.view",
"admin.core.roles.view",
"admin.core.permissions.view",
"admin.core.import-sat-catalogs.allow",
"admin.ai.dashboard.view",
"admin.ai.content.create",
"admin.ai.analytics.view",
"admin.chatbot.config.view",
"admin.chatbot.flows.manage",
"admin.chatbot.history.view",
"admin.iot.devices.view",
"admin.iot.sensors.manage",
"admin.iot.monitoring.view",
"admin.facial-recognition.profiles.manage",
"admin.facial-recognition.live.verify",
"admin.facial-recognition.history.view",
"admin.print.queue.view",
"admin.print.history.view",
"admin.print.settings.manage",
"admin.website.general-settings.allow",
"admin.website.legal.view",
"admin.website.faq.view",
"admin.blog.categories.view",
"admin.blog.tags.view",
"admin.blog.articles.view",
"admin.blog.comments.view",
"admin.contacts.contacts.view",
"admin.contacts.contacts.create",
"admin.crm.marketing-campaigns.view",
"admin.crm.leads.view",
"admin.crm.newsletter.view",
"admin.contacts.employees.view",
"admin.contacts.employees.create",
"admin.rrhh.jobs.view",
"admin.rrhh.organization.view",
"admin.recruitment.jobs.view",
"admin.recruitment.candidates.view",
"admin.recruitment.interviews.view",
"admin.payroll.contracts.view",
"admin.payroll.process.view",
"admin.payroll.receipts.view",
"admin.payroll.reports.view",
"admin.attendance.records.view",
"admin.attendance.biometric.view",
"admin.attendance.absences.view",
"admin.inventory.product-categories.view",
"admin.inventory.product-catalogs.view",
"admin.inventory.products.view",
"admin.inventory.products.create",
"admin.sales.dashboard.allow",
"admin.contacts.customers.view",
"admin.contacts.customers.create",
"admin.sales.sales.view",
"admin.sales.quotes.view",
"admin.sales.sales.create",
"admin.sales.sales.view",
"admin.sales.sales.view",
"admin.sales.remissions.create",
"admin.sales.remissions.view",
"admin.sales.remissions.view",
"admin.sales.credit-notes.create",
"admin.sales.credit-notes.view",
"admin.sales.credit-notes.view",
"admin.accounting.dashboard.view",
"admin.accounting.charts.view",
"admin.finance.accounts-payable.view",
"admin.finance.accounts-receivable.view",
"admin.accounting.balance.view",
"admin.accounting.income-statement.view",
"admin.accounting.ledger.view",
"admin.accounting.entries.view",
"admin.expenses.dashboard.view",
"admin.expenses.expenses.create",
"admin.expenses.expenses.view",
"admin.expenses.categories.view",
"admin.expenses.history.view",
"admin.billing.dashboard.allow",
"admin.billing.ingresos.create",
"admin.billing.ingresos.view",
"admin.billing.ingresos.view",
"admin.billing.egresos.create",
"admin.billing.egresos.view",
"admin.billing.egresos.view",
"admin.billing.pagos.created",
"admin.billing.pagos.view",
"admin.billing.nomina.view",
"admin.billing.verify-cfdi.allow",
"admin.contacts.suppliers.view",
"admin.contacts.suppliers.create",
"admin.inventory.orders.view",
"admin.inventory.reception.view",
"admin.inventory.materials.view",
"admin.inventory.warehouse.view",
"admin.inventory.stock.view",
"admin.inventory.movements.view",
"admin.inventory.transfers.view",
"admin.inventory.shipping-orders.view",
"admin.inventory.shipping-tracking.view",
"admin.inventory.shipping-carriers.view",
"admin.inventory.shipping-rates.view",
"admin.inventory.assets.view",
"admin.inventory.asset-maintenance.view",
"admin.inventory.asset-lifecycle.view",
"admin.inventory.asset-assignments.view",
"admin.projects.dashboard.view",
"admin.projects.view",
"admin.projects.create",
"admin.projects.tasks.view",
"admin.projects.history.view",
"admin.production.orders.view",
"admin.production.orders.create",
"admin.production.process.view",
"admin.production.history.view",
"admin.quality.inspections.view",
"admin.quality.inspections.create",
"admin.quality.reports.view",
"admin.quality.history.view",
"admin.workflows.view",
"admin.workflows.create",
"admin.workflows.automations.view",
"admin.workflows.history.view",
"admin.contracts.view",
"admin.contracts.sign",
"admin.contracts.automated.view",
"admin.contracts.history.view",
"admin.ticketing.dashboard.view",
"admin.ticketing.tickets.view",
"admin.ticketing.tickets.create",
"admin.ticketing.categories.view",
"admin.ticketing.analytics.view"
]
}

14
database/data/users.csv Normal file
View File

@ -0,0 +1,14 @@
name,email,role,password
Administrador Web,webadmin@concierge.test,Administrador Web,LAdmin123
Productos y servicios,productos@concierge.test,Productos y servicios,LAdmin123
Recursos humanos,rrhh@concierge.test,Recursos humanos,LAdmin123
Nómina,nomina@concierge.test,Nómina,LAdmin123
Activos fijos,activos@concierge.test,Activos fijos,LAdmin123
Compras y gastos,compras@concierge.test,Compras y gastos,LAdmin123
CRM,crm@concierge.test,CRM,LAdmin123
Vendedor,vendedor@concierge.test,Vendedor,LAdmin123
Gerente,gerente@concierge.test,Gerente,LAdmin123
Facturación,facturacion@concierge.test,Facturación,LAdmin123
Facturación avanzado,facturacion_avanzado@concierge.test,Facturación avanzado,LAdmin123
Finanzas,finanzas@concierge.test,Finanzas,LAdmin123
Auditor,auditor@concierge.test,Auditor,LAdmin123
1 name email role password
2 Administrador Web webadmin@concierge.test Administrador Web LAdmin123
3 Productos y servicios productos@concierge.test Productos y servicios LAdmin123
4 Recursos humanos rrhh@concierge.test Recursos humanos LAdmin123
5 Nómina nomina@concierge.test Nómina LAdmin123
6 Activos fijos activos@concierge.test Activos fijos LAdmin123
7 Compras y gastos compras@concierge.test Compras y gastos LAdmin123
8 CRM crm@concierge.test CRM LAdmin123
9 Vendedor vendedor@concierge.test Vendedor LAdmin123
10 Gerente gerente@concierge.test Gerente LAdmin123
11 Facturación facturacion@concierge.test Facturación LAdmin123
12 Facturación avanzado facturacion_avanzado@concierge.test Facturación avanzado LAdmin123
13 Finanzas finanzas@concierge.test Finanzas LAdmin123
14 Auditor auditor@concierge.test Auditor LAdmin123

View File

@ -0,0 +1,44 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
*/
class UserFactory extends Factory
{
/**
* The current password being used by the factory.
*/
protected static ?string $password;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
];
}
/**
* Indicate that the model's email address should be unverified.
*/
public function unverified(): static
{
return $this->state(fn (array $attributes) => [
'email_verified_at' => null,
]);
}
}

View File

@ -0,0 +1,49 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
Schema::create('password_reset_tokens', function (Blueprint $table) {
$table->string('email')->primary();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->primary();
$table->foreignId('user_id')->nullable()->index();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->longText('payload');
$table->integer('last_activity')->index();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('users');
Schema::dropIfExists('password_reset_tokens');
Schema::dropIfExists('sessions');
}
};

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('cache', function (Blueprint $table) {
$table->string('key')->primary();
$table->mediumText('value');
$table->integer('expiration');
});
Schema::create('cache_locks', function (Blueprint $table) {
$table->string('key')->primary();
$table->string('owner');
$table->integer('expiration');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('cache');
Schema::dropIfExists('cache_locks');
}
};

View File

@ -0,0 +1,57 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('jobs', function (Blueprint $table) {
$table->id();
$table->string('queue')->index();
$table->longText('payload');
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
});
Schema::create('job_batches', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('name');
$table->integer('total_jobs');
$table->integer('pending_jobs');
$table->integer('failed_jobs');
$table->longText('failed_job_ids');
$table->mediumText('options')->nullable();
$table->integer('cancelled_at')->nullable();
$table->integer('created_at');
$table->integer('finished_at')->nullable();
});
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('jobs');
Schema::dropIfExists('job_batches');
Schema::dropIfExists('failed_jobs');
}
};

View File

@ -0,0 +1,65 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Koneko\VuexyStoreManager\Models\Currency;
class CurrencySeeder extends Seeder
{
/**
* Lista de divisas a insertar.
*/
protected static array $divisas = [
[
'c_currency' => 'MXN',
'symbol' => '$',
'auto_update_exchange_rates' => true,
'refresh_interval' => 24,
'status' => Currency::STATUS_ENABLED,
],
[
'c_currency' => 'USD',
'symbol' => '$',
'auto_update_exchange_rates' => true,
'refresh_interval' => 24,
'status' => Currency::STATUS_ENABLED,
],
[
'c_currency' => 'EUR',
'symbol' => '€',
'auto_update_exchange_rates' => true,
'refresh_interval' => 24,
'status' => Currency::STATUS_ENABLED,
],
[
'c_currency' => 'GBP',
'symbol' => '£',
'auto_update_exchange_rates' => true,
'refresh_interval' => 24,
'status' => Currency::STATUS_ENABLED,
],
[
'c_currency' => 'JPY',
'symbol' => '¥',
'auto_update_exchange_rates' => true,
'refresh_interval' => 24,
'status' => Currency::STATUS_ENABLED,
],
];
/**
* Run the database seeds.
*/
public function run()
{
foreach (self::$divisas as $divisa) {
Currency::updateOrCreate(
['c_currency' => $divisa['c_currency']], // Clave única
$divisa // Valores a insertar/actualizar
);
}
$this->command->info('Divisas insertadas/actualizadas correctamente.');
}
}

View File

@ -0,0 +1,24 @@
<?php
namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
$this->call([
SettingSeeder::class,
PermissionSeeder::class,
UserSeeder::class,
SATCatalogsSeeder::class,
UnidadConversionesSeeder::class,
CurrencySeeder::class,
]);
}
}

View File

@ -0,0 +1,14 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Koneko\VuexyAdmin\Services\RBACService;
class PermissionSeeder extends Seeder
{
public function run()
{
RBACService::loadRolesAndPermissions();
}
}

View File

@ -0,0 +1,135 @@
<?php
namespace Database\Seeders;
use Koneko\SatCatalogs\Imports\SatCatalogsImport;
use Koneko\SatCatalogs\Models\Banco;
use Koneko\SatCatalogs\Models\RegimenContratacion;
use Koneko\SatCatalogs\Models\Deduccion;
use Koneko\SatCatalogs\Models\Percepcion;
use Maatwebsite\Excel\Facades\Excel;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\File;
class SATCatalogsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$file_path = database_path("data/catCFDI_V_4_20250213.xls");
$import = new SatCatalogsImport();
$import->onlySheets('c_ClaveProdServ');
Excel::import($import, $file_path);
$import->onlySheets('c_ClaveUnidad');
Excel::import($import, $file_path);
$import->onlySheets('c_CodigoPostal_Parte_1');
Excel::import($import, $file_path);
$import->onlySheets('c_CodigoPostal_Parte_2');
Excel::import($import, $file_path);
$import->onlySheets('C_Colonia_1');
Excel::import($import, $file_path);
$import->onlySheets('C_Colonia_2');
Excel::import($import, $file_path);
$import->onlySheets('C_Colonia_3');
Excel::import($import, $file_path);
$import->onlySheets('c_Estado');
Excel::import($import, $file_path);
$import->onlySheets('c_FormaPago');
Excel::import($import, $file_path);
$import->onlySheets('C_Localidad');
Excel::import($import, $file_path);
$import->onlySheets('c_Moneda');
Excel::import($import, $file_path);
$import->onlySheets('C_Municipio');
Excel::import($import, $file_path);
$import->onlySheets('c_Pais');
Excel::import($import, $file_path);
$import->onlySheets('c_RegimenFiscal');
Excel::import($import, $file_path);
$import->onlySheets('c_UsoCFDI');
Excel::import($import, $file_path);
// Lee el archivo JSON desde el storage
$json = File::get(database_path('data/catalogo_sat_bancos.json'));
// Convierte el contenido JSON a un array asociativo
$bancos = json_decode($json, true);
// Inserta cada banco en la base de datos
foreach ($bancos as $banco) {
Banco::create([
'c_banco' => $banco['c_banco'],
'descripcion' => $banco['descripcion'],
'razon_social' => $banco['razon_social'],
'rfc' => null,
'status' => Banco::STATUS_ENABLED
]);
}
// Leer el archivo JSON desde la ruta especificada
$json = File::get(database_path('data/catalogo_sat_regimenes_contratacion.json'));
// Decodificar el JSON en un array asociativo
$regimenes = json_decode($json, true);
// Insertar cada régimen en la base de datos
foreach ($regimenes as $c_tipo_regimen => $descripcion) {
RegimenContratacion::create([
'c_tipo_regimen' => $c_tipo_regimen,
'descripcion' => $descripcion,
'fecha_inicio_de_vigencia' => null,
'fecha_fin_de_vigencia' => null
]);
}
// Leer el archivo JSON desde la ruta especificada
$json = File::get(database_path('data/catalogo_sat_percepciones_deducciones.json'));
// Decodificar el JSON en un array asociativo
$catalogo = json_decode($json, true);
// Insertar percepciones
foreach ($catalogo['percepciones'] as $percepcion) {
Percepcion::create([
'c_percepcion' => $percepcion['clave'],
'descripcion' => $percepcion['descripcion'],
'fecha_inicio_de_vigencia' => null,
'fecha_fin_de_vigencia' => null,
]);
}
// Insertar deducciones
foreach ($catalogo['deducciones'] as $deduccion) {
Deduccion::create([
'c_deduccion' => $deduccion['clave'],
'descripcion' => $deduccion['descripcion'],
'fecha_inicio_de_vigencia' => null,
'fecha_fin_de_vigencia' => null,
]);
}
}
}

View File

@ -0,0 +1,108 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Crypt;
use Koneko\VuexyAdmin\Models\Setting;
class SettingSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$settings_array = [
/*
'app_title' => 'Quimiplastic S.A de C.V.',
'app_faviconIcon' => '../assets/img/logo/koneko-02.png',
'app_name' => 'Quimiplastic',
'app_imageLogo' => '../assets/img/logo/koneko-02.png',
'app_myLayout' => 'vertical',
'app_myTheme' => 'theme-default',
'app_myStyle' => 'light',
'app_navbarType' => 'sticky',
'app_menuFixed' => true,
'app_menuCollapsed' => false,
'app_headerType' => 'static',
'app_showDropdownOnHover' => false,
'app_authViewMode' => 'cover',
'app_maxQuickLinks' => 5,
'smtp.host' => 'webmail.koneko.mx',
'smtp.port' => 465,
'smtp.encryption' => 'tls',
'smtp.username' => 'no-responder@koneko.mx',
'smtp.password' => null,
'smtp.from_email' => 'no-responder@koneko.mx',
'smtp.from_name' => 'Koneko Soluciones en Tecnología',
'smtp.reply_to_method' => 'smtp',
'smtp.reply_to_email' => null,
'smtp.reply_to_name' => null,
'website.title',
'website.favicon',
'website.description',
'website.image_logo',
'website.image_logoDark',
'admin.title',
'admin.favicon',
'admin.description',
'admin.image_logo',
'admin.image_logoDark',
'favicon.icon' => null,
'contact.phone_number' => '(222) 462 0903',
'contact.phone_number_ext' => 'Ext. 5',
'contact.email' => 'virtualcompras@live.com.mx',
'contact.form.email' => 'contacto@conciergetravellife.com',
'contact.form.email_cc' => 'arturo@koneko.mx',
'contact.form.subject' => 'Has recibido un mensaje del formulario de covirsast.com',
'contact.direccion' => '51 PTE 505 loc. 14, Puebla, Pue.',
'contact.horario' => '9am - 7 pm',
'contact.location.lat' => '19.024439',
'contact.location.lng' => '-98.215777',
'social.whatsapp' => '',
'social.whatsapp.message' => '👋 Hola! Estoy buscando más información sobre Covirsa Soluciones en Tecnología. ¿Podrías proporcionarme los detalles que necesito? ¡Te lo agradecería mucho! 💻✨',
'social.facebook' => 'https://www.facebook.com/covirsast/?locale=es_LA',
'social.Whatsapp' => '2228 200 201',
'social.Whatsapp.message' => '¡Hola! 🌟 Estoy interesado en obtener más información acerca de Concierge Travel. ¿Podrías ayudarme con los detalles? ¡Gracias de antemano! ✈️🏝',
'social.Facebook' => 'test',
'social.Instagram' => 'test',
'social.Linkedin' => 'test',
'social.Tiktok' => 'test',
'social.X_twitter' => 'test',
'social.Google' => 'test',
'social.Pinterest' => 'test',
'social.Youtube' => 'test',
'social.Vimeo' => 'test',
'chat.provider' => '',
'chat.whatsapp.number' => '',
'chat.whatsapp.message' => '👋 Hola! Estoy buscando más información sobre Covirsa Soluciones en Tecnología. ¿Podrías proporcionarme los detalles que necesito? ¡Te lo agradecería mucho! 💻✨',
'webTpl.container' => 'custom-container',
*/];
foreach ($settings_array as $key => $value) {
Setting::create([
'key' => $key,
'value' => $value,
]);
};
}
}

View File

@ -0,0 +1,88 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class UnidadConversionesSeeder extends Seeder
{
public function run()
{
// Cargar los datos desde el archivo JSON
$jsonPath = database_path('data/catalogo_sat_unidad_de_conversiones.json');
// Comprobar si el archivo JSON existe
if (!file_exists($jsonPath)) {
return;
}
$data = json_decode(file_get_contents($jsonPath), true);
// Comprobar si el JSON se cargó correctamente
if (json_last_error() !== JSON_ERROR_NONE) {
return;
}
// Cargar todas las unidades existentes
$unidadesExistentes = DB::table('sat_clave_unidad')->get()->keyBy('c_clave_unidad');
// Un array para almacenar las nuevas unidades que vamos a insertar
$nuevasUnidades = [];
// Insertar o actualizar las unidades de medida
foreach ($data['units'] as $unidad) {
if (!isset($unidad['c_clave_unidad']) || trim($unidad['c_clave_unidad']) == '') {
continue; // Ignorar si 'c_clave_unidad' es nulo o vacío
}
// Verificamos si la unidad ya existe
if (!isset($unidadesExistentes[$unidad['c_clave_unidad']])) {
$nuevasUnidades[] = [
'c_clave_unidad' => $unidad['c_clave_unidad'],
'nombre' => $unidad['nombre'],
'simbolo' => $unidad['simbolo'] ?? null,
'categoria' => $unidad['categoria'] ?? null,
'is_base' => false, // Define la lógica para is_base
'created_at' => now(),
'updated_at' => now(),
];
}
}
// Insertar todas las nuevas unidades en un solo paso
if (!empty($nuevasUnidades)) {
DB::table('sat_clave_unidad')->insert($nuevasUnidades);
}
// Volver a cargar las unidades existentes para las conversiones
$unidadesExistentes = DB::table('sat_clave_unidad')->get()->keyBy('c_clave_unidad');
// Preparar un array para las conversiones a insertar
$nuevasConversiones = [];
// Asegúrate de que 'conversions' existe en $data
if (isset($data['conversions'])) {
foreach ($data['conversions'] as $conversion) {
$origen = $unidadesExistentes[$conversion['from_unit']] ?? null;
$destino = $unidadesExistentes[$conversion['to_unit']] ?? null;
// Solo insertar si ambos IDs existen
if ($origen && $destino) {
$nuevasConversiones[] = [
'clave_unidad_origen_id' => $origen->id,
'clave_unidad_destino_id' => $destino->id,
'conversion_factor' => $conversion['factor'],
'created_at' => now(),
'updated_at' => now(),
];
}
}
// Insertar todas las conversiones en un solo paso
if (!empty($nuevasConversiones)) {
DB::table('sat_clave_unidad_conversiones')->insert($nuevasConversiones);
}
}
}
}

View File

@ -0,0 +1,97 @@
<?php
namespace Database\Seeders;
use Koneko\VuexyAdmin\Models\User;
use Koneko\VuexyAdmin\Services\AvatarImageService;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// Define el disco y la carpeta
$disk = 'public';
$directory = 'profile-photos';
// Verifica si la carpeta existe
if (Storage::disk($disk)->exists($directory))
Storage::disk($disk)->deleteDirectory($directory);
//
$avatarImageService = new AvatarImageService();
// Super admin
$user = User::create([
'name' => 'Koneko Admin',
'email' => 'arturo@koneko.mx',
'email_verified_at' => now(),
'password' => bcrypt('LAdmin123'),
'status' => User::STATUS_ENABLED,
])->assignRole('SuperAdmin');
// Actualizamos la foto
$avatarImageService->updateProfilePhoto($user, new UploadedFile(
'public/vendor/vuexy-admin/img/logo/koneko-02.png',
'koneko-02.png'
));
// admin
$user = User::create([
'name' => 'Admin',
'email' => 'admin@koneko.mx',
'email_verified_at' => now(),
'password' => bcrypt('LAdmin123'),
'status' => User::STATUS_ENABLED,
])->assignRole('Admin');
$avatarImageService->updateProfilePhoto($user, new UploadedFile(
'public/vendor/vuexy-admin/img/logo/koneko-03.png',
'koneko-03.png'
));
// Almacenista
$user = User::create([
'name' => 'Almacenista',
'email' => 'almacenista@koneko.mx',
'email_verified_at' => now(),
'password' => bcrypt('LAdmin123'),
'status' => User::STATUS_ENABLED,
])->assignRole('Almacenista');
$avatarImageService->updateProfilePhoto($user, new UploadedFile(
'public/vendor/vuexy-admin/img/logo/koneko-03.png',
'koneko-03.png'
));
// Usuarios CSV
$csvFile = fopen(base_path("database/data/users.csv"), "r");
$firstline = true;
while (($data = fgetcsv($csvFile, 2000, ",")) !== FALSE) {
if (!$firstline) {
User::create([
'name' => $data['0'],
'email' => $data['1'],
'email_verified_at' => now(),
'password' => bcrypt($data['3']),
'status' => User::STATUS_ENABLED,
])->assignRole($data['2']);
}
$firstline = false;
}
fclose($csvFile);
}
}

9026
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

163
package.json Normal file
View File

@ -0,0 +1,163 @@
{
"name": "laravel-vuexy-admin-mexico",
"version": "1.0.0",
"type": "module",
"license": "MIT",
"scripts": {
"dev": "vite",
"build": "vite build",
"watch": "vite build --watch"
},
"devDependencies": {
"@babel/core": "7.23.7",
"@babel/preset-env": "7.23.8",
"@rollup/plugin-html": "1.0.3",
"@tailwindcss/postcss": "^4.0.4",
"autoprefixer": "^10.4.20",
"axios": "^1.7.9",
"glob": "10.4.1",
"postcss": "8.4.49",
"sass": "1.77.5",
"tailwindcss": "^3.4.16",
"vite": "^5.2.13"
},
"overrides": {
"datatables.net": "1.13.11",
"datatables.net-bs5": "1.13.11",
"datatables.net-buttons": "2.4.3",
"datatables.net-buttons-bs5": "2.4.3",
"datatables.net-fixedcolumns": "4.3.1",
"datatables.net-fixedheader": "3.4.1",
"datatables.net-responsive": "2.5.1",
"datatables.net-rowgroup": "1.4.1",
"datatables.net-select": "1.7.1",
"prop-types": "15.8.1"
},
"resolutions": {
"datatables.net": "1.13.11",
"datatables.net-bs5": "1.13.11",
"datatables.net-buttons": "2.4.3",
"datatables.net-buttons-bs5": "2.4.3",
"datatables.net-fixedcolumns": "4.3.1",
"datatables.net-fixedheader": "3.4.1",
"datatables.net-responsive": "2.5.1",
"datatables.net-rowgroup": "1.4.1",
"datatables.net-select": "1.7.1",
"prop-types": "15.8.1"
},
"browserslist": [
">= 1%",
"last 2 versions",
"not dead",
"Chrome >= 45",
"Firefox >= 38",
"Edge >= 12",
"Explorer >= 10",
"iOS >= 9",
"Safari >= 9",
"Android >= 4.4",
"Opera >= 30"
],
"babel": {
"presets": [
[
"@babel/env",
{
"targets": {
"browsers": [
">= 1%",
"last 2 versions",
"not dead",
"Chrome >= 45",
"Firefox >= 38",
"Edge >= 12",
"Explorer >= 10",
"iOS >= 9",
"Safari >= 9",
"Android >= 4.4",
"Opera >= 30"
]
}
}
]
]
},
"dependencies": {
"@form-validation/bundle": "2.4.0",
"@form-validation/core": "2.4.0",
"@form-validation/plugin-auto-focus": "2.4.0",
"@form-validation/plugin-bootstrap5": "2.4.0",
"@form-validation/plugin-framework": "2.4.0",
"@form-validation/plugin-message": "2.4.0",
"@fortawesome/fontawesome-free": "6.5.2",
"@fullcalendar/core": "6.1.14",
"@fullcalendar/daygrid": "6.1.14",
"@fullcalendar/interaction": "6.1.14",
"@fullcalendar/list": "6.1.14",
"@fullcalendar/timegrid": "6.1.14",
"@popperjs/core": "2.11.8",
"@simonwep/pickr": "1.9.1",
"@yaireo/tagify": "4.18.3",
"animate.css": "4.1.1",
"aos": "2.3.4",
"apexcharts-clevision": "3.28.5",
"autosize": "6.0.1",
"block-ui": "2.70.1",
"bootstrap": "5.3.3",
"bootstrap-datepicker": "1.10.0",
"bootstrap-daterangepicker": "3.1.0",
"bootstrap-maxlength": "^2.0.0",
"bootstrap-select": "1.14.0-beta3",
"bootstrap-table": "^1.24.0",
"bs-stepper": "1.7.0",
"chart.js": "4.4.3",
"cleave.js": "1.6.0",
"clipboard": "2.0.11",
"datatables.net-bs5": "1.13.11",
"datatables.net-buttons": "2.4.3",
"datatables.net-buttons-bs5": "2.4.3",
"datatables.net-fixedcolumns-bs5": "4.3.1",
"datatables.net-fixedheader-bs5": "3.4.1",
"datatables.net-responsive": "2.5.1",
"datatables.net-responsive-bs5": "2.5.1",
"datatables.net-rowgroup-bs5": "1.4.1",
"datatables.net-select-bs5": "1.7.1",
"dropzone": "5.9.3",
"flag-icons": "7.2.3",
"flatpickr": "4.6.13",
"hammerjs": "2.0.8",
"highlight.js": "11.9.0",
"jkanban": "1.3.1",
"jquery": "3.7.1",
"jquery-datatables-checkboxes": "1.2.14",
"jquery-sticky": "1.0.4",
"jquery.repeater": "1.2.1",
"jstree": "3.3.16",
"jszip": "3.10.1",
"katex": "^0.16.21",
"laravel-vite-plugin": "1.0.1",
"leaflet": "1.9.4",
"mapbox-gl": "3.0.1",
"masonry-layout": "4.2.2",
"moment": "2.30.1",
"node-waves": "0.7.6",
"nouislider": "15.7.2",
"numeral": "2.0.6",
"pdfmake": "0.2.10",
"perfect-scrollbar": "1.5.5",
"plyr": "3.7.8",
"quill": "^2.0.3",
"rateyo": "2.3.5",
"select2": "4.0.13",
"shepherd.js": "11.2.0",
"sortablejs": "1.15.2",
"spinkit": "2.0.1",
"sweetalert2": "^11.6.13",
"swiper": "11.0.7",
"tableexport.jquery.plugin": "^1.30.0",
"timepicker": "1.14.1",
"toastr": "2.1.4",
"typeahead.js": "0.11.1",
"xlsx": "^0.18.5"
}
}

33
phpunit.xml Normal file
View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>app</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_STORE" value="array"/>
<!-- <env name="DB_CONNECTION" value="sqlite"/> -->
<!-- <env name="DB_DATABASE" value=":memory:"/> -->
<env name="MAIL_MAILER" value="array"/>
<env name="PULSE_ENABLED" value="false"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/>
</php>
</phpunit>

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

25
public/.htaccess Normal file
View File

@ -0,0 +1,25 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Handle X-XSRF-Token Header
RewriteCond %{HTTP:x-xsrf-token} .
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

0
public/favicon.ico Normal file
View File

20
public/index.php Normal file
View File

@ -0,0 +1,20 @@
<?php
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
}
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
// Bootstrap Laravel and handle the request...
/** @var Application $app */
$app = require_once __DIR__.'/../bootstrap/app.php';
$app->handleRequest(Request::capture());

2
public/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow:

3
resources/css/app.css Normal file
View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

1
resources/js/app.js Normal file
View File

@ -0,0 +1 @@
import './bootstrap';

4
resources/js/bootstrap.js vendored Normal file
View File

@ -0,0 +1,4 @@
import axios from 'axios';
window.axios = axios;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

File diff suppressed because one or more lines are too long

8
routes/console.php Normal file
View File

@ -0,0 +1,8 @@
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');

7
routes/web.php Normal file
View File

@ -0,0 +1,7 @@
<?php
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});

View File

@ -0,0 +1,13 @@
<?php
// Colores ANSI
$blue = "\033[44m";
$red = "\033[41m";
$yellow = "\033[93m";
$reset = "\033[0m";
echo PHP_EOL;
echo "La instalación inicial está completa." . PHP_EOL . PHP_EOL;
echo "{$red}⚠️ IMPORTANTE:{$reset} Debes configurar la base de datos en .env antes de continuar." . PHP_EOL . PHP_EOL;
echo "Para inicializar la base de datos, ejecuta:" . PHP_EOL;
echo " {$yellow}php -d memory_limit=1G artisan migrate:fresh --seed{$reset}" . PHP_EOL . PHP_EOL;

4
storage/app/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!private/
!public/
!.gitignore

2
storage/app/private/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

2
storage/app/public/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

9
storage/framework/.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
compiled.php
config.php
down
events.scanned.php
maintenance.php
routes.php
routes.scanned.php
schedule-*
services.json

3
storage/framework/cache/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!data/
!.gitignore

View File

@ -0,0 +1,2 @@
*
!.gitignore

2
storage/framework/sessions/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

2
storage/framework/testing/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

2
storage/framework/views/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

2
storage/logs/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

21
tailwind.config.js Normal file
View File

@ -0,0 +1,21 @@
import defaultTheme from 'tailwindcss/defaultTheme';
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/**/*.{js,ts,jsx,tsx,vue,blade.php}',
'./vendor/koneko/**/resources/**/*.{js,ts,jsx,tsx,vue,blade.php}',
'./resources/assets/js/**/*.js', // Asegura incluir tus JS personalizados
'./vendor/koneko/laravel-vuexy-contacts/resources/assets/js/**/*.js', // Contact formatter JS
],
theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};

View File

@ -0,0 +1,19 @@
<?php
namespace Tests\Feature;
// use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*/
public function test_the_application_returns_a_successful_response(): void
{
$response = $this->get('/');
$response->assertStatus(200);
}
}

10
tests/TestCase.php Normal file
View File

@ -0,0 +1,10 @@
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
//
}

View File

@ -0,0 +1,16 @@
<?php
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**
* A basic test example.
*/
public function test_that_true_is_true(): void
{
$this->assertTrue(true);
}
}

105
vite.config.js Normal file
View File

@ -0,0 +1,105 @@
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import html from '@rollup/plugin-html';
import { glob } from 'glob';
/**
* Obtener archivos desde el componente local
*/
function GetFilesArray(query) {
return glob.sync(query);
}
function getComponentFiles(type) {
return glob.sync(`vendor/koneko/**/resources/${type}/**/*.${type === 'js' ? 'js' : 'scss'}`);
}
// Processing Vendor JS Files
const vendorJsFiles = GetFilesArray('vendor/koneko/laravel-vuexy-admin/resources/assets/vendor/js/*.js');
// Processing Libs JS Files
const LibsJsFiles = GetFilesArray('vendor/koneko/laravel-vuexy-admin/resources/assets/vendor/libs/**/*.js');
// Processing Core, Themes & Pages Scss Files
const CoreScssFiles = GetFilesArray('vendor/koneko/laravel-vuexy-admin/resources/assets/vendor/scss/**/!(_)*.scss');
// Processing Libs Scss & Css Files
const LibsScssFiles = GetFilesArray('vendor/koneko/laravel-vuexy-admin/resources/assets/vendor/libs/**/!(_)*.scss');
const LibsCssFiles = GetFilesArray('vendor/koneko/laravel-vuexy-admin/resources/assets/vendor/libs/**/*.css');
// Processing Fonts Scss Files
const FontsScssFiles = GetFilesArray('vendor/koneko/laravel-vuexy-admin/resources/assets/vendor/fonts/!(_)*.scss');
// Archivos JS de assets de componentes
const AssetsJsFiles = GetFilesArray('vendor/koneko/**/resources/assets/js/**/*.js');
const pageJsFiles = getComponentFiles('js');
const pageScssFiles = getComponentFiles('scss');
// Processing Window Assignment for Libs like jKanban, pdfMake
function libsWindowAssignment() {
return {
name: 'libsWindowAssignment',
transform(src, id) {
if (id.includes('jkanban.js')) {
return src.replace('this.jKanban', 'window.jKanban');
} else if (id.includes('vfs_fonts')) {
return src.replaceAll('this.pdfMake', 'window.pdfMake');
}
}
};
}
export default defineConfig({
plugins: [
laravel({
input: [
'vendor/koneko/laravel-vuexy-admin/resources/assets/css/demo.css',
...vendorJsFiles,
...LibsJsFiles,
...CoreScssFiles,
...LibsScssFiles,
...LibsCssFiles,
...FontsScssFiles,
...pageJsFiles,
...pageScssFiles,
...AssetsJsFiles,
],
refresh: [
'resources/**',
'app/**',
'vendor/koneko/**/resources/**',
'vendor/koneko/**/Livewire/**'
]
}),
html(),
libsWindowAssignment(),
],
build: {
emptyOutDir: true,
rollupOptions: {
external: ['axios']
}
},
server: {
cors: true,
hmr: {
host: '127.0.0.1',
},
fs: {
allow: ['..'], // Permitir acceso a directorios superiores
},
watch: {
ignored: [
//'**/vendor/**', // Ignorar TODAS las carpetas vendor
'**/node_modules/**', // Ignorar node_modules también
'**/storage/**',
'**/public/**'
],
}
},
});