From 2ce46912310c84f37d5afb1de9a8b12a226017c7 Mon Sep 17 00:00:00 2001 From: yash Date: Thu, 25 Jul 2024 11:28:48 +0530 Subject: [PATCH] Made index page responsive --- resources/views/forms/index.blade.php | 154 +++++++++++++++++++++++++- 1 file changed, 153 insertions(+), 1 deletion(-) 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 + + + +
+
+

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 +
+
+
+ + + + + + +