# code-luqman-swati/shoeshub architecture

> Architecture diagram of the GitHub repository code-luqman-swati/shoeshub, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/code-luqman-swati/shoeshub
- Repository: https://github.com/code-luqman-swati/shoeshub

## Overview

This repository is a Laravel shoe-commerce application with customer storefront and admin operations, alongside a TailAdmin-style dashboard UI. The main user journey is browsing products, selecting variants, managing a cart and wishlist, checking out, and tracking orders; administrators maintain the catalog, stock, purchases, and sales. The tree also shows reviews, payments, reporting, and account features. Several controllers and routes were not sampled, so those workflow links are shown as unverified rather than asserted; the duplicate `shop/` and `tailadmin-laravel-main/` trees are not treated as primary runtime subsystems.

Main entry points: [`app/Models/Shoe.php`](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Models/Shoe.php) (Shoe Catalog), [`app/Http/Controllers/Customer/CheckoutController.php`](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/CheckoutController.php) (Checkout), [`app/Http/Controllers/Admin/ShoeController.php`](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/ShoeController.php) (Catalog Management), [`app/Http/Controllers/Customer/ReviewController.php`](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/ReviewController.php) (Product Reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Customer Storefront"]
  node_catalog["Browse Catalog"]
  node_cart["Cart<br/>[CartController.php]"]
  node_wishlist[("Wishlist<br/>[Wishlist.php]")]
  node_checkout["Checkout"]
  node_reviews["Product Reviews"]
end

subgraph group_commerce["Commerce Operations"]
  node_shoe_catalog[("Shoe Catalog<br/>[Shoe.php]")]
  node_payments["Payments"]
  node_stripe["Stripe Handler"]
  node_orders[("Orders<br/>[Order.php]")]
end

subgraph group_admin["Admin Management"]
  node_inventory["Inventory Service"]
  node_inventory_repo["Inventory Repository"]
  node_purchases["Purchases"]
  node_sales["Sales Reports"]
  node_admin_catalog["Catalog Management<br/>[ShoeController.php]"]
  node_auth["Admin Access<br/>[Auth.php]"]
end

subgraph group_dashboard["Dashboard UI"]
  node_dashboard["Admin Dashboard"]
  node_dashboard_views["Dashboard Widgets"]
end

node_customer(("Shopper"))
node_admin_user(("Administrator"))
node_browser(("Browser UI"))
node_database[("Configured Database")]
node_payment_provider(("Payment Provider"))

node_customer -.->|"browses"| node_catalog
node_catalog -.->|"queries"| node_shoe_catalog
node_customer -.->|"manages"| node_cart
node_customer -.->|"saves items"| node_wishlist
node_customer -.->|"checks out"| node_checkout
node_checkout -.->|"creates"| node_orders
node_checkout -.->|"requests payment"| node_payments
node_payments -.->|"dispatches"| node_stripe
node_stripe -.->|"charges"| node_payment_provider
node_customer -->|"submits review"| node_reviews
node_reviews -->|"creates review for"| node_shoe_catalog
node_shoe_catalog -->|"has wishlist entries"| node_wishlist
node_shoe_catalog -->|"has reviews"| node_reviews
node_admin_user -.->|"authenticates"| node_auth
node_admin_user -.->|"maintains catalog"| node_admin_catalog
node_admin_catalog -->|"creates shoes"| node_shoe_catalog
node_admin_catalog -.->|"persists records"| node_database
node_admin_user -.->|"records purchases"| node_purchases
node_inventory -->|"delegates"| node_inventory_repo
node_inventory_repo -->|"reads variants"| node_database
node_admin_user -.->|"views reports"| node_sales
node_admin_user -.->|"opens dashboard"| node_dashboard
node_dashboard -.->|"renders"| node_dashboard_views
node_browser -.->|"views"| node_dashboard
node_shoe_catalog -.->|"stores catalog data"| node_database

click node_catalog "https://github.com/code-luqman-swati/shoeshub/tree/main/app/Http/Controllers/Customer"
click node_shoe_catalog "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Models/Shoe.php"
click node_cart "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/CartController.php"
click node_wishlist "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Models/Wishlist.php"
click node_checkout "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/CheckoutController.php"
click node_payments "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/PaymentController.php"
click node_stripe "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/StripeController.php"
click node_orders "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Models/Order.php"
click node_reviews "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/ReviewController.php"
click node_inventory "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Services/InventoryService.php"
click node_inventory_repo "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Repositories/Eloquent/InventoryRepository.php"
click node_purchases "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/PurchaseController.php"
click node_sales "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/SalesReportController.php"
click node_admin_catalog "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/ShoeController.php"
click node_auth "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Middleware/Auth.php"
click node_dashboard "https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/DashboardController.php"
click node_dashboard_views "https://github.com/code-luqman-swati/shoeshub/tree/main/app/View/Components/ecommerce"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_catalog,node_cart,node_wishlist,node_checkout,node_reviews,node_browser toneBlue
class node_shoe_catalog,node_payments,node_stripe,node_orders,node_database toneAmber
class node_inventory,node_inventory_repo,node_purchases,node_sales,node_admin_catalog,node_auth toneMint
class node_dashboard,node_dashboard_views toneRose
class node_customer,node_admin_user,node_payment_provider toneIndigo
```

## Components

### Customer Storefront

- [Browse Catalog](https://github.com/code-luqman-swati/shoeshub/tree/main/app/Http/Controllers/Customer): `app/Http/Controllers/Customer`
- [Cart](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/CartController.php): `app/Http/Controllers/Customer/CartController.php`
- [Wishlist](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Models/Wishlist.php): `app/Models/Wishlist.php`
- [Checkout](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/CheckoutController.php): `app/Http/Controllers/Customer/CheckoutController.php`
- [Product Reviews](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/ReviewController.php): `app/Http/Controllers/Customer/ReviewController.php`

### Commerce Operations

- [Shoe Catalog](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Models/Shoe.php): `app/Models/Shoe.php`
- [Payments](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Customer/PaymentController.php): `app/Http/Controllers/Customer/PaymentController.php`
- [Stripe Handler](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/StripeController.php): `app/Http/Controllers/StripeController.php`
- [Orders](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Models/Order.php): `app/Models/Order.php`

### Admin Management

- [Inventory Service](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Services/InventoryService.php): `app/Services/InventoryService.php`
- [Inventory Repository](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Repositories/Eloquent/InventoryRepository.php): `app/Repositories/Eloquent/InventoryRepository.php`
- [Purchases](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/PurchaseController.php): `app/Http/Controllers/Admin/PurchaseController.php`
- [Sales Reports](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/SalesReportController.php): `app/Http/Controllers/Admin/SalesReportController.php`
- [Catalog Management](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/ShoeController.php): `app/Http/Controllers/Admin/ShoeController.php`
- [Admin Access](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Middleware/Auth.php): `app/Http/Middleware/Auth.php`

### Dashboard UI

- [Admin Dashboard](https://github.com/code-luqman-swati/shoeshub/blob/main/app/Http/Controllers/Admin/DashboardController.php): `app/Http/Controllers/Admin/DashboardController.php`
- [Dashboard Widgets](https://github.com/code-luqman-swati/shoeshub/tree/main/app/View/Components/ecommerce): `app/View/Components/ecommerce`

### Other components

- **Shopper**
- **Administrator**
- **Browser UI**
- **Configured Database**
- **Payment Provider**

## Connections

- Shopper → Browse Catalog: browses
- Browse Catalog → Shoe Catalog: queries (evidence: `app/Http/Controllers/Customer/ReviewController.php`)
- Shopper → Cart: manages
- Shopper → Wishlist: saves items
- Shopper → Checkout: checks out
- Checkout → Orders: creates
- Checkout → Payments: requests payment
- Payments → Stripe Handler: dispatches
- Stripe Handler → Payment Provider: charges
- Shopper → Product Reviews: submits review (evidence: `app/Http/Controllers/Customer/ReviewController.php`)
- Product Reviews → Shoe Catalog: creates review for (evidence: `app/Http/Controllers/Customer/ReviewController.php`)
- Shoe Catalog → Wishlist: has wishlist entries (evidence: `app/Models/Shoe.php`)
- Shoe Catalog → Product Reviews: has reviews (evidence: `app/Models/Shoe.php`)
- Administrator → Admin Access: authenticates
- Administrator → Catalog Management: maintains catalog
- Catalog Management → Shoe Catalog: creates shoes (evidence: `app/Http/Controllers/Admin/ShoeController.php`)
- Catalog Management → Configured Database: persists records
- Administrator → Purchases: records purchases
- Inventory Service → Inventory Repository: delegates (evidence: `app/Services/InventoryService.php`)
- Inventory Repository → Configured Database: reads variants (evidence: `app/Repositories/Eloquent/InventoryRepository.php`)
- Administrator → Sales Reports: views reports
- Administrator → Admin Dashboard: opens dashboard
- Admin Dashboard → Dashboard Widgets: renders
- Browser UI → Admin Dashboard: views
- Shoe Catalog → Configured Database: stores catalog data
