@extends('backend.index') @section('content')
Add new article
{!! makeDropDown([0 => 'Every where', 1 => 'Title', 2 => 'Short content', 3 => 'Full content'], 'location', request()->input('location') ? request()->input('location') : 0) !!}
From
Until
From
Until
{!! makeDropDown([3 => '--- All News ---', 1 => 'Approved Articles', 0 => 'Articles waiting for moderation'], 'status', request()->input('status') ? request()->input('status') : 3) !!}
Results/Page
Options
input('fixed')) checked @endif>
input('has_vote')) checked @endif>
input('comment_disabled')) checked @endif>
input('scheduled')) checked @endif>
Clear
@csrf @foreach ($posts as $index => $post) @if(\Carbon\Carbon::now()->lt(\Carbon\Carbon::parse($post->created_at))) @else @endif @endforeach
request()->get('title') == 'asc' ? 'desc' : 'asc' ]) }}">Title @if(request()->get('title') == 'asc') @else @endif Category request()->get('created_at') == 'asc' ? 'desc' : 'asc' ]) }}"> Publish @if(request()->get('created_at') == 'asc') @else @endif Updated request()->get('view_count') == 'asc' ? 'desc' : 'asc' ]) }}"> @if(request()->get('view_count') == 'asc') @else @endif Action
@if($post->fixed) fixed @endif{{ $post->title }} @foreach($post->categories as $category){{$category->name}}@if(!$loop->last), @endif @endforeach {{ \Carbon\Carbon::parse($post->created_at)->format('M j Y, H:i') }}{{ \Carbon\Carbon::parse($post->created_at)->format('M j Y, H:i') }}{{ timeElapsedString($post->updated_at) }} {{ $post->comment_count }} {{ $post->view_count }} @if($post->approved) @else @endif
{{ $posts->appends(request()->input())->links() }}
@endsection