talk-example icon indicating copy to clipboard operation
talk-example copied to clipboard

Editing avatars

Open browinskipl opened this issue 8 years ago • 0 comments

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>

browinskipl avatar Nov 10 '17 08:11 browinskipl