@extends('Layout.base') @section('title', 'Notifications') @section('titleLink', '/home') @section('content')
@if ($notifications->count() > 0) @foreach ($notifications as $notification)
profile_photo_url }}" alt="{{ \App\Models\User::find($notification->data["notification_from"])->name }}" />
{{$notification->data["title"]}}
{{$notification->data["message"]}}
@if (! \App\Models\Task::find($notification->data["task_id"])->isPending())
{{\App\Models\Task::find($notification->data["task_id"])->payment_status}} by {{\App\Models\User::find($notification->data["notification_from"])->name}}
@endif
{{$notification->created_at->diffForHumans()}}
@endforeach
{{'Showing '.$notifications->firstItem().' to '. $notifications->lastItem() .' of '.$notifications->total() .' results'}}
@else
No more notifications
@endif
@endsection @section('script') @endsection