Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing avatars #25

Open
browinskipl opened this issue Nov 10, 2017 · 0 comments
Open

Editing avatars #25

browinskipl opened this issue Nov 10, 2017 · 0 comments

Comments

@browinskipl
Copy link

Hallo!
How can I edit avatars in peoplelist? When I have something like this only clicled user has avatar... Can you help me? I tried almost everything

<li class="clearfix">
            <a href="{{route('message.read', ['id'=>$inbox->withUser->id])}}">
            @foreach($user->where('user_id', $inbox->withUser->id) as $data)
                    @if(empty($data->avatar))
                      <img src="{{ asset('img/lock_thumb.jpg')}}" class="avatar" alt="avatar">      
                    @else
                      <img src="{{ asset('/av/'. $data->avatar) }}" class="avatar" alt="avatar">  
                    @endif
                  @endforeach
            <div class="about">
                <div class="name">{{$inbox->withUser->name}}</div>
                <div class="status">
                    @if(auth()->user()->id == $inbox->thread->sender->id)
                        <span class="fa fa-reply"></span>
                    @endif
                    <span>{{substr($inbox->thread->message, 0, 20)}}</span>
                </div>
            </div>
            </a>
        </li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant