@php $page = "{$form->title} - Response"; $response_count = $form->responses()->has('fieldResponses')->count(); $response_type_shown_is_summary = ($query === 'summary'); $current_user = auth()->user(); @endphp @extends('layouts.app') @section('plugin-css') @stack('styles') @endsection @section('title', "My Form | {$page}") @section('content') @include('partials.alert', ['name' => 'index'])
@php $symbol = $form::getStatusSymbols()[$form->status]; @endphp
{{ $page }} {{ $symbol['label'] }}
@include('forms.partials._form-menu')
{!! str_convert_line_breaks($form->description) !!}
{{ $response_count . ' ' . str_plural('Response', $response_count) }}
@includeWhen($response_count, "forms.response.{$query}") @includeWhen(($form->status === $form::STATUS_OPEN), 'forms.partials._form-share') @includeWhen(($form->user_id !== $current_user->id), 'forms.partials._form-collaborate') @include('forms.partials._form_availability') @endsection @section('plugin-scripts') @endsection @section('page-script') @stack('script') @endsection