diff --git a/GEMINI.md b/GEMINI.md
index ff85e444..2e398da4 100644
--- a/GEMINI.md
+++ b/GEMINI.md
@@ -1,7 +1,10 @@
# Project Guidelines & Automated Checks
## Formatting and Linting
-When asked to fix or check formatting/linting issues, or before committing changes, run the automated fix commands directly instead of manually inspecting and fixing errors one by one:
+- **Strict Trigger**: Do NOT run formatting, linting, or fix commands (`npm run format`, `composer lint`, `npm run lint`) during intermediate edits or regular conversational turns.
+- Only run the automated check commands when:
+ 1. The user explicitly instructs to `"push"` or `"commit"`.
+ 2. The user explicitly asks to check or fix formatting/linting issues.
```bash
npm run format && composer lint && npm run lint
@@ -16,7 +19,7 @@ npm run format && composer lint && npm run lint
```
2. Switch to that branch.
3. Use atomic commits where applicable.
- 4. Always run formatting and linting checks before committing:
+ 4. Run formatting and linting checks before committing:
```bash
npm run format && composer lint && npm run lint
```
diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php
index 40702487..a5c8c913 100644
--- a/app/Http/Controllers/ProfileController.php
+++ b/app/Http/Controllers/ProfileController.php
@@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use App\Http\Requests\Profile\UpdateProfileRequest;
+use App\Models\SupportTicket;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Inertia\Inertia;
@@ -16,6 +17,15 @@ public function edit(Request $request)
]);
}
+ public function deleteAccount(Request $request)
+ {
+ return Inertia::render('Account/Delete', [
+ 'openTicketsCount' => SupportTicket::where('user_id', $request->user()->id)
+ ->whereIn('status', [SupportTicket::STATUS_OPEN, SupportTicket::STATUS_IN_PROGRESS])
+ ->count(),
+ ]);
+ }
+
public function update(UpdateProfileRequest $request)
{
$user = $request->user();
diff --git a/resources/js/pages/Account/Delete.vue b/resources/js/pages/Account/Delete.vue
new file mode 100644
index 00000000..978838fb
--- /dev/null
+++ b/resources/js/pages/Account/Delete.vue
@@ -0,0 +1,470 @@
+
+
+
+
+
+ আপনার ইতিমধ্যে ৩টি খোলা সাপোর্ট টিকেট রয়েছে।
+
+ নতুন টিকেট খোলার আগে অনুগ্রহ করে পূর্ববর্তী টিকেটের
+ সমাধান হওয়া পর্যন্ত অপেক্ষা করুন।
+
+ অ্যাকাউন্ট ও সংশ্লিষ্ট সকল ডেটা স্থায়ীভাবে মুছে ফেলার
+ জন্য সরাসরি সাপোর্ট টিকেট তৈরি হবে।
+
+ {{ authUser?.name }}
+
+ @{{ authUser?.username }}
+
+ • {{ authUser.email }}
+
+ আপনি কি নিশ্চিত?
+ অনুরোধ সাবমিট করলে আমাদের সাপোর্ট টিমের কাছে একটি
+ অফিশিয়াল টিকেট পাঠানো হবে এবং সর্বোচ্চ
+ ৪৮ ঘণ্টার মধ্যে অ্যাকাউন্ট মুছে
+ ফেলা হবে।
+
+ অ্যাকাউন্ট ডিলিট রিকোয়েস্ট
+
+
+
- Receive notifications for syllabus changes, - study materials, and platform alerts. + গুরুত্বপূর্ণ আপডেট, নোটিশ ও পড়াশোনা + সংক্রান্ত প্রয়োজনীয় তথ্য ইমেইলে পেতে এই + অপশনটি অন রাখুন।
- অ্যাকাউন্ট ডিলেট করতে চান কিংবা অন্য কোনো সমস্যা? - সরাসরি সাপোর্টে কথা বলুন ! + কোনো সমস্যা, প্রশ্ন বা ফিডব্যাকের জন্য সরাসরি + সাপোর্ট টিকেট খুলুন।
@@ -1086,6 +1017,41 @@ const submitForm = () => { + ++ অ্যাকাউন্ট ও সংশ্লিষ্ট ডেটা স্থায়ীভাবে মুছে ফেলার + অনুরোধ করুন। +
+- You will stop receiving critical syllabus - announcements, new exam preparation - materials, and platform alerts. We strongly - recommend keeping this enabled. -
-- অ্যাকাউন্ট তৈরির মাধ্যমে আপনি আমাদের - - Terms of Service - - ও - - Privacy Policy -তে সম্মতি দিচ্ছেন। -
-