about summary refs log tree commit diff
path: root/laravel/resources
diff options
context:
space:
mode:
Diffstat (limited to 'laravel/resources')
-rw-r--r--laravel/resources/views/song.blade.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/laravel/resources/views/song.blade.php b/laravel/resources/views/song.blade.php
index 025c14e..6871a91 100644
--- a/laravel/resources/views/song.blade.php
+++ b/laravel/resources/views/song.blade.php
@@ -87,6 +87,13 @@
         </div>
     @endforeach
 
+    @if ($addToPlaylist ?? null)
+        <form action="/playlist/{{ $addToPlaylist }}/{{ $song->id }}" method="post">
+            @csrf
+            <button>Add to favorites</button>
+        </form>
+    @endif
+
 <script src='/js/chordsdata/chords.js'></script>
 <script src='/js/chordsdata/ukulelechords.js'></script>
 <script src='/js/page.js'></script>