diff --git a/app/View/Components/Bookmark.php b/app/View/Components/Bookmark.php new file mode 100644 index 0000000..271cea1 --- /dev/null +++ b/app/View/Components/Bookmark.php @@ -0,0 +1,28 @@ + @endforeach + +@endsection diff --git a/resources/views/bookmarks/show.blade.php b/resources/views/bookmarks/show.blade.php index ee728d9..605ec9d 100644 --- a/resources/views/bookmarks/show.blade.php +++ b/resources/views/bookmarks/show.blade.php @@ -1,19 +1,5 @@ @extends('layouts.app') @section('content') -
{{ $bookmark->title }}
- - @if ($bookmark->description) -{{ $bookmark->description }}
- @endif -{{ $bookmark->created_at }}
- -{{ $bookmark->title }}
+ + @if (!empty($bookmark->description)) +{{ strip_tags($bookmark->description) }}
++ +
+ +