From 3ff7e365c4aedbc47d642a07181cae45269a329d Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 7 Nov 2020 01:41:03 +0100 Subject: Better news. I should implement url()->previous(); Gallery doesn't delete from storage... --- resources/views/pages/news.blade.php | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'resources/views/pages/news.blade.php') diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php index d700ce7..33ff039 100644 --- a/resources/views/pages/news.blade.php +++ b/resources/views/pages/news.blade.php @@ -3,14 +3,27 @@ @section('title', 'News') @section('content') - @foreach($news as $post) -
-
-

{{ $post->title }}

-
Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset
-
{!! $post->text !!}
+ @if (session('statusE')) +
+ {{ session('status') }} +
+ @endif + @if (count($news) > 0) + @foreach($news as $post) +
+
+

{{ $post->title }}

+
Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset
+
{!! $post->text !!}
+
+
-
- @endforeach - {{ $news->links() }} + @endforeach + {{ $news->links() }} + @else + There are no news. + @endif @endsection() -- cgit v1.2.3