# Call Graph

## Authentication Flow
```
POST /post/loginnow → LoginController@authenticate
  ↓
Auth::attempt()
  ↓
Session::start()
  ↓
Redirect or JSON response
```

## User Creation Flow
```
POST /admin/user/create → CreateUserControllerUltimate@CreateUser
  ↓
validateMobileNumberExists() / validateUsernameExists()
  ↓
HashPassword() 
  ↓
User::create()
  ↓
Return success/error
```

## User Management Flow
```
POST /admin/user/details → UserModifyAdminPageController@Response_UserDetails
  ↓
User::find($id)
  ↓
Return user details with relationships
```

## Login Flow (SPA)
```
GET /login → viewHelperController@servePageFragmentWithTemplate
  ↓
view('Auth.Login', $data)
  ↓
Vue renders login form
  ↓
POST /post/loginnow
```

## Product View Flow
```
POST /View/Product/Details/data → ProductController@viewProductDetails
  ↓
Product::find($id)
  ↓
Store::where('products.product_id')
  ↓
Return product with store data
```

## Market Operations Flow
```
POST /Products/Admin/New/ → ProductController@createNew_Admin
  ↓
Product::create()
  ↓
Return product data
```

## File Upload Flow
```
POST /File/Upload/{category} → FilesMainController@UploadFilefromRequest
  ↓
Storage::put('files', $file)
  ↓
FileContent::create($data)
  ↓
Return file hash key
```

## Application Startup
```
resources/js/app.js → createApp()
  ↓
Pinia.createPinia()
  ↓
useUserStore().fetchCurrentUser()
  ↓
mount('#app')