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