diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 21:33:47 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 21:33:47 -0500 |
| commit | c0953948d7008100ab4fcb4c5df6076ed7e69e3c (patch) | |
| tree | 26d3cbbc2386c7adb324cb6b9988de1f8a532f1c /laravel/resources/views/song.blade.php | |
| parent | ed8d234975e3df79ab60cdc990f42856e5811d3f (diff) | |
| download | prosongsa-c0953948d7008100ab4fcb4c5df6076ed7e69e3c.tar.gz | |
* Routes: Create edit route
Diffstat (limited to 'laravel/resources/views/song.blade.php')
| -rw-r--r-- | laravel/resources/views/song.blade.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/laravel/resources/views/song.blade.php b/laravel/resources/views/song.blade.php index 7029871..3d8cf2a 100644 --- a/laravel/resources/views/song.blade.php +++ b/laravel/resources/views/song.blade.php @@ -8,8 +8,12 @@ Back to "<i>{{$playlist->name}}</i>" playlist </a> @endif - <h2>{{$song['title']}}</h2> + + @can('update', $song ) + <a href='{{ route( 'song.edit', $song->number ) }}'>edit this song</a> + @endcan + <form> <select name="transp" id="transp" value = "<?php echo $transp;?>" |
