# ============================================
# ESGS Platform - Git Ignore Configuration
# ============================================

# ==================== Dependencies ====================
/vendor/
/node_modules/
npm-debug.log
yarn-error.log
package-lock.json

# ==================== Environment Files ====================
.env
.env.backup
.env.local
.env.*.local
.env.production
.env.staging
.env.temp
.envold
.env.dusk.local

# Keep example files
!.env.example
!.env.production.example
!.env.translation.example

# ==================== Laravel Specific ====================
# Compiled files
bootstrap/compiled.php
/public/storage
/public/hot
/public/build
storage/*.key

# Cache and logs
/storage/logs/*
!/storage/logs/.gitkeep
/storage/framework/cache/*
!/storage/framework/cache/.gitkeep
/storage/framework/sessions/*
!/storage/framework/sessions/.gitkeep
/storage/framework/views/*
!/storage/framework/views/.gitkeep
/storage/pail

# ==================== IDE & Editor ====================
/.idea
/.vscode
*.swp
*.swo
*~
.project
.settings
*.sublime-project
*.sublime-workspace

# ==================== OS Generated ====================
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# ==================== Testing ====================
.phpunit.result.cache
/.phpunit.cache
coverage/
.coverage
htmlcov/

# ==================== Build & Compiled ====================
/public/build/
/build/
*.compiled.js
*.compiled.css

# ==================== Vagrant & Homestead ====================
Homestead.yaml
Homestead.json
/.vagrant

# ==================== Archive & Temporary ====================
/docs/archive/
*.bak
*.bak.*
*.backup
.bak-quarantine/
bin/check.sh
*.tmp
*.temp
*.old

# ==================== Debug & Test Scripts ====================
# These should not be in production
check-*.php
check_*.php
create_*.php
debug_*.php
find_*.php
fix_*.php
render_*.php
reset-*.php
setup_*.php
temp_*.php
test_*.php
verify-*.php
verify_*.php
quick_*.php
take_screenshots*
recapture_*.cjs
insert_data_via_browser.cjs
serve.bat
/manual/
/.kilo/
/.claude/settings.local.json
/public/session_test.php
/public/*-test.html
/public/test-*.html
/public/template-test.html

# ==================== Leaked Storage Paths ====================
/public/D:*
/storage/debugbar/
/storage/logs/*.log
!/storage/logs/.gitkeep
/database/migrations/backups/

# ==================== Status Reports (Dev Only) ====================
# Move to docs/archive/ if needed
ABSOLUTE_*.md
ADVISOR_*.md
ALL_*.md
AUTH-*.md
CLEANUP_*.md
COMPLETE_*.md
COMPLETION_*.md
COMPREHENSIVE_*.md
FINAL_*.md
FIX*.md
IMPLEMENTATION_*.md
MIGRATION*.md
ULTIMATE_*.md

# Keep essential documentation
!README.md
!CONTRIBUTING.md
!CHANGELOG.md
!LICENSE.md
!TROUBLESHOOTING.md

# ==================== SQL Scripts (Dev Only) ====================
/*.sql
/database/sql/*.sql

# ==================== Fix Scripts ====================
fix-*.sh
fix-*.bat
comprehensive_fix.*
targeted_fix.*
run-*.bat
EXECUTE-*.bat

# ==================== Demo Files ====================
demo_*.html

# ==================== Miscellaneous ====================
api-routes.json
parsed_routes.txt
migration-status.txt
system-audit-report.json
system-health-report.*

# Garbage files (method names as files)
build\(\)
call\(\)
callAction\(\)
create\(\)
dispatch\(\)
execute\(\)
get\(\)
handle\(\)
index\(\)
run\(\)
render\(\)

# ==================== Database ====================
*.sqlite
*.sqlite3
/database/database.sqlite

# ==================== ML Models (Large Files) ====================
/storage/app/ml-models/*.model
/storage/app/ml-models/*.pkl
/storage/app/ml-training/*.csv

# ==================== Auth Files ====================
.phpactor.json
auth.json

# ==================== Route Backups ====================
/routes/backup-*/
/routes/*.backup.*
/routes/*.disabled

# ==================== Empty Folders ====================
"New folder"
