# CoinTaxCalc CoinTaxCalc is a Laravel-based website for crypto tax estimation, crypto profit calculations, financial calculators, crypto market views, TradingView-style analysis pages, blog content, and static informational pages. ## Sitemap: https://cointaxcalc.com/sitemap.xml ## Project Stack - Backend: PHP 8.4+ with Laravel 13 - Frontend assets: Vite 8, Tailwind CSS 4, Axios - Templates: Blade views in `resources/views` - Database: Laravel migrations in `database/migrations` - Tests: PHPUnit via Laravel's `php artisan test` ## Main User-Facing Features - Global crypto tax calculator - Crypto profit calculator - EMI, income tax, SIP, goal planner, and home loan EMI calculators - Crypto prices table - Live crypto graph analysis page - Blog index and blog detail pages - Contact, about, disclaimer, privacy policy, and DMCA pages - XML sitemap routes ## Important Routes - `/` home - `/crypto-tax-calculator` - `/crypto-profit-calculator` - `/emi-calculator` - `/income-tax-calculator` - `/sip-calculator` - `/goal-planner` - `/home-loan-emi-calculator` - `/market` - `/analysis` - `/blog` - `/blog/{slug}` - `/about-us` - `/contact-us` - `/disclaimer` - `/privacy-policy` - `/dmca` - `/sitemap.xml` - `/sitemap_index.xml` ## Key Source Files - Routes: `routes/web.php` - Main static pages: `app/Http/Controllers/PageController.php` - Calculator pages: `app/Http/Controllers/CalculatorController.php` - Blog pages: `app/Http/Controllers/BlogController.php` - Admin blog management: `app/Http/Controllers/AdminPostController.php` - Contact form handling: `app/Http/Controllers/ContactController.php` - Sitemap generation: `app/Http/Controllers/SitemapController.php` - SEO helpers: `app/Support/SeoData.php` - Static blog content: `app/Support/StaticBlogLibrary.php` - Public layout: `resources/views/layouts/app.blade.php` - Public page views: `resources/views/pages` - Calculator views: `resources/views/calculators` - Blog views: `resources/views/blog` - Admin views: `resources/views/admin` - Public assets: `public/images` ## Development Commands - Install/setup: `composer run setup` - Run full dev stack: `composer run dev` - Build frontend assets: `npm run build` - Run frontend dev server only: `npm run dev` - Run tests: `composer test` or `php artisan test` - Format PHP if needed: `./vendor/bin/pint` ## AI Agent Notes - Follow Laravel conventions and keep controller logic close to existing patterns. - Keep Blade changes consistent with the existing layout, partials, SEO helpers, and route names. - Do not edit `vendor/`, `node_modules/`, `public/build/`, or generated cache files unless explicitly requested. - Treat calculator outputs and tax-related copy as educational estimates, not legal, tax, or financial advice. - When adding public pages, add matching route names, SEO metadata through `SeoData`, and sitemap coverage when appropriate. - When adding blog-related behavior, check both database-backed admin posts and `StaticBlogLibrary` usage. - Avoid changing unrelated formatting or generated assets during small content or route updates. ## Safety And Content Boundaries CoinTaxCalc provides planning tools and educational content. Outputs should be described as estimates. Users should verify final tax positions with official guidance or qualified professionals before filing or making financial decisions.