From 483dca77886c25a5c80695f8622eb6a215089cb0 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 9 Aug 2018 19:58:47 -0600 Subject: [PATCH] Add following activity view --- resources/views/account/following.blade.php | 96 +++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 resources/views/account/following.blade.php diff --git a/resources/views/account/following.blade.php b/resources/views/account/following.blade.php new file mode 100644 index 000000000..8cb3dbf9e --- /dev/null +++ b/resources/views/account/following.blade.php @@ -0,0 +1,96 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+ +
+
+
+{{--
+ Notifications + + + + + View All + +
--}} +
+
    + + @if($notifications->count() > 0) + @foreach($notifications as $notification) + @php + if(!in_array($notification->action, ['like', 'follow'])) { + continue; + } + @endphp +
  • + @switch($notification->action) + + @case('like') + + + + + {{$notification->actor->username}} + + {{__('liked a post by')}} + + {{$notification->item->profile->username}} + + {{$notification->created_at->diffForHumans(null, true, true, true)}} + + + @if($notification->item_id && $notification->item_type == 'App\Status') + + @endif + + @break + + @case('follow') + + + + + {{$notification->actor->username}} + + {{__('started following')}} + + {{$notification->item->username}} + + {{$notification->created_at->diffForHumans(null, true, true, true)}} + + @break + + @endswitch +
  • + @endforeach +
+ +
+ {{$notifications->links()}} +
+ @else +
+
No unread notifications found.
+
+ @endif +
+
+@endsection + +@push('scripts') + +@endpush