@extends('layouts.app') @section('title', 'My Dashboard') @push('styles') @endpush @section('content') {{-- Stats row --}}
{{ $myStats['total_submissions'] }}
Surveys Submitted
{{ $myStats['total_points'] }}
Points Earned
{{ $myStats['valuable_count'] }}
Valuable Responses
{{ $projects->count() }}
Active Projects
{{-- Active projects --}}

Active Projects

Click a project to start collecting feedback
@foreach($projects as $project)
{{ $project->name }}
{{ $project->tagline }}
Give Feedback
@endforeach
{{-- Recent submissions --}}

Recent Submissions

@if($myStats['total_submissions'] > 5) View All @endif
@if($recentSubmissions->count()) @foreach($recentSubmissions as $response) @endforeach
Project Respondent Type Language Points Flags Submitted
{{ $response->project->name }} {{ $response->respondentType->name }} @if($response->language === 'bn') 🇧🇩 বাংলা @else 🇬🇧 English @endif {{ $response->feedbackScore?->points_awarded ?? 1 }} @if($response->feedbackScore?->is_ceo_choice) CEO @elseif($response->feedbackScore?->is_implementable) Impl. @elseif($response->feedbackScore?->is_valuable) Valuable @else @endif {{ $response->submitted_at?->diffForHumans() ?? '—' }}
@else

You haven't submitted any surveys yet.

Start Collecting Feedback
@endif
@endsection