Skip to content

Commit

Permalink
#187: Changed the profile viewing view
Browse files Browse the repository at this point in the history
  • Loading branch information
alimranahmed committed Sep 15, 2024
1 parent 923b7f8 commit bbd99f4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/Livewire/Backend/User/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function submit(): void
$user->assignRole($personalData['role']);
}

$this->redirectRoute('backend.user.index');
$this->redirect(route('backend.user.index'), true);
}
}
1 change: 0 additions & 1 deletion public/build/assets/app-Bk3J1bwy.css

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/app-D7J3qxB8.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resources/css/app.css": {
"file": "assets/app-Bk3J1bwy.css",
"file": "assets/app-D7J3qxB8.css",
"src": "resources/css/app.css",
"isEntry": true
},
Expand Down
4 changes: 2 additions & 2 deletions resources/views/livewire/backend/config/image-form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
@endforeach
</div>

@error('favicon')
@error(Config::FAVICON)
<div class="text-red-500 text-sm italic">{{ $message }}</div>
@enderror

@error('user_photo')
@error(Config::USER_PHOTO)
<div class="text-red-500 text-sm italic">{{ $message }}</div>
@enderror
</div>
17 changes: 10 additions & 7 deletions resources/views/livewire/backend/user/profile.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<div class="flex justify-center">
<div>
<div>
{{$user->name}}
@if(!$user->roles->isEmpty())
<span class="text-gray-600">({{$user->roles->pluck('name')->implode(', ')}})</span>
@endif
<a href="{{route('backend.user.edit', $user->id)}}" class="text-indigo-700 hover:underline">Edit</a>
<div class="flex items-center gap-x-6">
<img class="h-16 w-16 rounded-full border" src="{{\App\Models\Config::getPath(\App\Models\Config::USER_PHOTO)}}" alt="">
<div>
<h3 class="text-base font-semibold leading-7 tracking-tight text-gray-900">{{$user->name}}</h3>
@if(!$user->roles->isEmpty())
<p class="text-sm font-semibold leading-3 text-gray-600">{{$user->roles->pluck('name')->implode(', ')}}</p>
@endif
<a href="{{route('backend.user.edit', $user->id)}}" wire:navigate class="text-indigo-700 hover:underline">Edit</a>
</div>
</div>
<div class="text-gray-500 border-b mb-5">Since {{$user->created_date_time_formatted}}</div>
<div class="text-gray-500 border-b pb-2 mb-2">Since {{$user->created_date_time_formatted}}</div>
<div class="text-gray-600">{{$user->username}}</div>
<div class="text-blue-600">{{$user->email}}</div>
@if($user->is_active)
Expand Down

0 comments on commit bbd99f4

Please sign in to comment.