2018-06-10 20:14:35 +00:00
|
|
|
|
@extends('layouts.app',['title' => $profile->username . "’s follows"])
|
2018-05-31 21:59:46 +00:00
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
2018-06-03 16:21:54 +00:00
|
|
|
|
@include('profile.partial.user-info')
|
2018-05-31 21:59:46 +00:00
|
|
|
|
|
2018-06-03 16:21:54 +00:00
|
|
|
|
<div class="container following-page" style="min-height: 60vh;">
|
2018-06-30 02:33:55 +00:00
|
|
|
|
<div class="col-12 col-md-8 offset-md-2 px-0">
|
2018-05-31 21:59:46 +00:00
|
|
|
|
@if($following->count() !== 0)
|
2018-06-30 02:33:55 +00:00
|
|
|
|
<ul class="list-group mt-4 px-0">
|
2018-05-31 21:59:46 +00:00
|
|
|
|
@foreach($following as $user)
|
2018-06-30 02:33:55 +00:00
|
|
|
|
<li class="list-group-item following card-md-rounded-0">
|
2018-05-31 21:59:46 +00:00
|
|
|
|
<span class="following-icon pr-3">
|
|
|
|
|
<img src="{{$user->avatarUrl()}}" width="32px" class="rounded-circle">
|
|
|
|
|
</span>
|
|
|
|
|
<a class="following-username font-weight-bold text-dark" href="{{$user->url()}}">
|
|
|
|
|
{{$user->username}}
|
|
|
|
|
</a>
|
|
|
|
|
<span class="following-name text-muted">
|
|
|
|
|
{{$user->name}}
|
|
|
|
|
</span>
|
2018-06-01 15:49:45 +00:00
|
|
|
|
@if(Auth::check() && Auth::id() != $user->user_id)
|
2018-06-01 15:59:53 +00:00
|
|
|
|
@if ($user->followedBy(Auth::user()->profile) == true)
|
2018-06-01 15:49:45 +00:00
|
|
|
|
<span class="float-right notification-action">
|
2018-06-01 15:59:53 +00:00
|
|
|
|
<form class="follow-form" method="post" action="/i/follow" style="display: inline;" data-id="{{$user->id}}" data-action="unfollow">
|
2018-06-01 15:49:45 +00:00
|
|
|
|
@csrf
|
|
|
|
|
<input type="hidden" name="item" value="{{$user->id}}">
|
2018-06-01 15:59:53 +00:00
|
|
|
|
<button class="btn btn-outline-secondary font-weight-bold px-4 py-0" type="submit">Unfollow</button>
|
2018-06-01 15:49:45 +00:00
|
|
|
|
</form>
|
|
|
|
|
</span>
|
|
|
|
|
@else
|
|
|
|
|
<span class="float-right notification-action">
|
|
|
|
|
<form class="follow-form" method="post" action="/i/follow" style="display: inline;" data-id="{{$user->id}}" data-action="follow">
|
|
|
|
|
@csrf
|
|
|
|
|
<input type="hidden" name="item" value="{{$user->id}}">
|
2018-06-01 15:59:53 +00:00
|
|
|
|
<button class="btn btn-primary font-weight-bold px-4 py-0" type="submit">Follow</button>
|
2018-06-01 15:49:45 +00:00
|
|
|
|
</form>
|
|
|
|
|
</span>
|
|
|
|
|
@endif
|
|
|
|
|
@endif
|
2018-05-31 21:59:46 +00:00
|
|
|
|
</li>
|
|
|
|
|
@endforeach
|
|
|
|
|
</ul>
|
|
|
|
|
@else
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-body py-5 my-5">
|
|
|
|
|
<div class="d-flex my-5 py-5 justify-content-center align-items-center">
|
|
|
|
|
<p class="lead font-weight-bold">{{ __('profile.emptyFollowing') }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
<div class="d-flex justify-content-center mt-4">
|
|
|
|
|
{{$following->links()}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-06-01 15:49:45 +00:00
|
|
|
|
@endsection
|
2018-06-02 18:11:08 +00:00
|
|
|
|
|
|
|
|
|
@push('meta')
|
2018-06-08 23:26:08 +00:00
|
|
|
|
<meta property="og:description" content="{{$profile->bio}}">
|
|
|
|
|
<meta property="og:image" content="{{$profile->avatarUrl()}}">
|
2018-08-10 04:55:15 +00:00
|
|
|
|
<meta name="robots" content="NOINDEX, NOFOLLOW">
|
2018-06-02 18:11:08 +00:00
|
|
|
|
@endpush
|