@extends('pages.profile_page') @section('content') @if(session()->has('success-edit'))
{{ session()->get('success-edit') }}
@endif @if(session()->has('delete-post'))
{{ session()->get('delete-post') }}
@endif @if (auth()->user()->admin == 'true' || auth()->user()->admin == 'TRUE')
@if (count($posts) > 0) @foreach ($posts as $post)
{{$post->title}}
{{$post->short_description}}
picture == '/storage/images/no-picture') src="{{$post->random}}" @else src="{{$post->picture}}" @endif alt="Not Available" title="Not Available">
@endforeach @else

There are no posts right now at the moment.

@endif @else @if(count($auth_user->posts) > 0) @foreach ($auth_user->posts as $post)
{{$post->title}}
{{$post->short_description}}
picture == '/storage/images/no-picture') src="{{$post->random}}" @else src="{{$post->picture}}" @endif alt="Not Available" title="Not Available">
@endforeach @else

You don't have any posts at the moment...

@endif
@endif @endsection @section('pagination')
{{$posts->links('pagination::bootstrap-4')}}
@endsection