From 8658ca5ca1c7de4fe071d790a4bb479b1da33d3b Mon Sep 17 00:00:00 2001 From: yash Date: Mon, 15 Jul 2024 17:36:26 +0530 Subject: [PATCH] Edited the UI --- resources/views/forms/edit.blade.php | 19 +- resources/views/forms/index.blade.php | 165 +---------------- .../views/responses/viewResponse.blade.php | 168 ++++++++---------- .../views/responses/viewResponses.blade.php | 142 +-------------- 4 files changed, 92 insertions(+), 402 deletions(-) diff --git a/resources/views/forms/edit.blade.php b/resources/views/forms/edit.blade.php index e9c2747..bf77ead 100644 --- a/resources/views/forms/edit.blade.php +++ b/resources/views/forms/edit.blade.php @@ -22,7 +22,7 @@ - + -
-
+

+

Edit Form

-
+
+ @csrf @method('PUT')
- - +
- - +
@foreach ($questions as $index => $question) +
@@ -85,6 +87,7 @@
+
@endforeach
diff --git a/resources/views/forms/index.blade.php b/resources/views/forms/index.blade.php index 2d6c4a3..c5d7949 100644 --- a/resources/views/forms/index.blade.php +++ b/resources/views/forms/index.blade.php @@ -1,160 +1,3 @@ -{{-- - - - - - - Forms - - - - - -
-
- - - -

LaraForms

-
-
- menu - -
-
- -
- - -
-

Recent Forms

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

No forms available.

- @else -
    - @foreach ($forms as $form) -
  • -
    - {{ $form->title }} -

    {{ $form->description }}

    -
    -
    - {{ $form->is_published ? 'Published' : 'Not Published' }} - @if ($form->is_published) - Responses - @endif - Edit - - @csrf - @method('DELETE') - - -
    -
  • - @endforeach -
- @endif -
-
- - - - --}} - - - -{{-- - - - - - Forms - - - - - -
- - -
-

Recent Forms

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

No forms available.

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

{{ $form->description }}

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