diff --git a/resources/views/forms/index.blade.php b/resources/views/forms/index.blade.php index 7dead66..4d56a25 100644 --- a/resources/views/forms/index.blade.php +++ b/resources/views/forms/index.blade.php @@ -1,4 +1,4 @@ - +{{-- @@ -155,4 +155,156 @@ + --}} + + + + + + + + + + Forms + + + + + + + + + +
+ @if (session('success')) + + @endif + @if (session('delete')) + + @endif + +
+ + Start a new form + + +
Total Forms Created
+

{{ $totalForms }}

+
+ +
Total Forms Published
+

{{ $publishedForms }}

+
+ +
Total Responses Received
+

{{ $totalResponses }}

+
+
+ +
+
+

Recent Forms

+
+ @if ($forms->isEmpty()) +

No forms available.

+ @else +
+ + + + + + + + + + + + + @foreach ($forms as $form) + + + + + + + + + @endforeach + +
Form TitleCreated AtResponsesStatus
+ {{ $form->title }} +

{{ $form->description }}

+
{{ $form->created_at->format('M d, Y') }} + View Responses + + @if ($form->is_published) + Published + @else + Unpublished + @endif + + @if (!$form->is_published) + Edit + @else + Edit + @endif + +
+ @csrf + @method('DELETE') + +
+
+
+ @endif +
+
+
+ + + + + + +