@if (session('success_message'))
@if ($data->lastPage() > 1)
{{ $data->appends(['sort' => $sort])->onEachSide(0)->links() }}
@endif
{{ session('success_message') }}
@endif
@if ($data->total() != 0 && $data->count() != 0)
@endif
@if ($data->count() != 0)
ID | {{ __('admin.description') }} | {{ __('admin.content') }} | {{ __('admin.type') }} | {{ __('general.creator') }} | {{ __('admin.date') }} | {{ __('admin.status') }} | {{ __('admin.actions') }} |
---|---|---|---|---|---|---|---|
{{ $post->id }} | {{ str_limit($post->description, 40, '...') }} | @if ($allFiles->count() != 0) @foreach ($allFiles as $media) @if ($media->type == 'image') @endif @if ($media->type == 'video') @endif @if ($media->type == 'music') @endif @if ($media->type == 'file') @endif @if ($media->type == 'epub') @endif @endforeach @else @endif | {{ $post->locked == 'yes' ? __('users.content_locked') : __('general.public') }} | @if (isset($post->user()->username)) {{$post->user()->username}} @else {{ __('general.no_available') }} @endif | {{ Helper::formatDate($post->date) }} | @switch($post->status) @case('active') {{ __('admin.active') }} @break @case('pending') {{ __('admin.pending') }} @break @case('encode') {{ __('general.encode') }} @break @case('schedule') {{ __('general.scheduled') }} @break @endswitch |
@if (isset($post->user()->username) && $post->status != 'encode')
@endif
@if ($post->status == 'pending')
{!! Form::open([
'method' => 'POST',
'url' => "panel/admin/posts/approve/$post->id",
'class' => 'displayInline'
]) !!}
{!! Form::button(__('admin.approve'), ['class' => 'btn btn-success btn-sm padding-btn rounded-pill me-2 actionApprovePost']) !!}
{!! Form::close() !!}
@endif
{!! Form::open([
'method' => 'POST',
'url' => "panel/admin/posts/delete/$post->id",
'class' => 'displayInline'
]) !!}
@if ($post->status == 'active' || $post->status == 'encode' || $post->status == 'schedule')
{!! Form::button('', ['class' => 'btn btn-danger btn-sm padding-btn rounded-pill actionDelete']) !!}
@else
{!! Form::button(__('general.reject'), ['class' => 'btn btn-danger btn-sm padding-btn rounded-pill actionDeletePost']) !!}
@endif
{!! Form::close() !!}
|