@extends('front_end.layouts.home') @php $showRightSidebar = false; @endphp @section('title', 'Pokes Dashboard') @section('content')

Pokes

Interact with your friends in a fun way

@if($unreadCount > 0)
@csrf
@endif

{{ $receivedPokes->count() }}

Received Pokes

{{ $sentPokes->count() }}

Sent Pokes

{{ $unreadCount }}

Unread Pokes

Recent Received Pokes

View All
@if($receivedPokes->count() > 0)
@foreach($receivedPokes as $poke)
{{ $poke->sender->name }}
{{ $poke->sender->name }} poked you!
@if($poke->message)

{{ $poke->message }}

@endif
{{ $poke->created_at->diffForHumans() }}
@if(!$poke->is_read)
@csrf
@endif
@csrf
@endforeach
@else
No Pokes Yet

When friends poke you, they'll appear here.

@endif

Recently Sent Pokes

View All
@if($sentPokes->count() > 0)
@foreach($sentPokes as $poke)
{{ $poke->receiver->name }}
You poked {{ $poke->receiver->name }}
@if($poke->message)

{{ $poke->message }}

@endif
{{ $poke->created_at->diffForHumans() }}
{{ $poke->is_read ? 'Read' : 'Unread' }}
@endforeach
@else
No Sent Pokes

Pokes you've sent to friends will appear here.

@endif
@if($topPokers->count() > 0)
Your Top Pokers
@foreach($topPokers as $poker)
{{ $poker->sender->name }}
{{ $poker->sender->name }}
{{ $poker->poke_count }} pokes
@csrf
@endforeach
@endif
@push('scripts') @endpush @endsection