From bcb44588ac7c9fa8497e0ba8f6dc4b08349c1fa8 Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Sat, 18 May 2024 16:24:41 +0300 Subject: [PATCH] Profile sidebar styles --- app/Models/User.php | 2 +- resources/views/dashboard.blade.php | 31 ++++++++++++++++++++++------- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 67ee2aa..7bb6053 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -41,7 +41,7 @@ public function referrals(): HasMany public function getAvatarAttribute(): string { - return 'https://api.dicebear.com/8.x/identicon/svg?seed=' . $this->name; + return 'https://mighty.tools/mockmind-api/content/cartoon/' . $this->id. '.jpg'; } public function getProfilePhotoAttribute(): string diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 520e9d2..e35d13c 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -29,19 +29,36 @@ class="bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded- -
+
-
-
-
- +
+
+ {{ auth()->user()->name }} +
+ + + +
-
-

{{ auth()->user()->name }}

+
+

{{ auth()->user()->name }}

+

{{ auth()->user()->email }}

+ +
+
+ +
+ +
+
+ Previous Orders +