File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
resources/views/components Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 7
7
<a href =" {{ route (' profile' , $user -> username ()) } }" >
8
8
@endunless
9
9
10
- <x-buk-avatar
11
- :search =" $user->githubUsername()"
12
- provider =" github"
13
- :fallback =" asset('/images/user.svg')"
14
- :alt =" $user->name()"
15
- {{ $attributes -> merge ([' class' => ' rounded-full text-gray-500' ]) } }
16
- />
10
+ @if ($user -> githubUsername () )
11
+ <x-buk-avatar
12
+ :search =" $user->githubUsername()"
13
+ provider =" github"
14
+ :fallback =" asset('/images/user.svg')"
15
+ :alt =" $user->name()"
16
+ {{ $attributes -> merge ([' class' => ' rounded-full text-gray-500' ]) } }
17
+ />
18
+ @else
19
+ <div {{ $attributes -> merge ([' class' => ' bg-gray-100 rounded-full text-gray-500 relative flex items-center justify-center' ]) } } >
20
+ <img
21
+ src =" {{ asset (' images/laravel.png' ) } }"
22
+ alt =" {{ $user -> name () } }"
23
+ class =" filter grayscale"
24
+ />
25
+ </div >
26
+ @endif
17
27
18
28
@unless ($unlinked )
19
29
</a >
You can’t perform that action at this time.
0 commit comments