Add customer contact inquiry system, automated receipt emails, admin communication inbox, and customer profile management

This commit is contained in:
2026-11-02 09:56:24 +01:00
parent 387241f971
commit 9fd39bd7d6
28 changed files with 2426 additions and 8 deletions
+8 -1
View File
@@ -2,6 +2,7 @@
namespace App\Http\Controllers;
use App\Models\Communication;
use App\Models\Order;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
@@ -25,7 +26,13 @@ class AccountController extends Controller
->latest()
->get();
return view('account.index', compact('user', 'orders'));
$communications = Communication::where('user_id', $user->id)
->orWhere('email', strtolower($user->email))
->with('replies')
->latest()
->get();
return view('account.index', compact('user', 'orders', 'communications'));
}
/**