@extends('layouts.admin') @section('title', 'Surveys') @section('header', 'Surveys') @section('subheader', 'Manage all company surveys') @section('header-actions') Create Survey @endsection @section('content')
@forelse($surveys as $survey) @empty @endforelse
Survey Company Questions Responses Status Actions
{{ $survey->title }}
Created {{ $survey->created_at->format('M j, Y') }}
@if($survey->company) {{ $survey->company->name }} @else @endif {{ $survey->questions_count ?? $survey->questions->count() }} {{ $survey->responses_count ?? $survey->responses->count() }} @if($survey->status === 'active') Active @elseif($survey->status === 'draft') Draft @else Closed @endif
@if(file_exists(storage_path('app/reports/survey-' . $survey->id . '-engagement-report.html'))) @endif @if(file_exists(storage_path('app/reports/survey-' . $survey->id . '-engagement-report-landscape.html'))) @endif @if(file_exists(storage_path('app/reports/survey-' . $survey->id . '-board-presentation.html'))) @endif
No surveys found. Create one
@if($surveys->hasPages()) @endif
@endsection