@extends('layouts.app') @section('title') {{__('general.my_posts')}} -@endsection @section('content')

{{__('general.my_posts')}}

{{__('general.all_post_created')}}

@if (session('notify'))
{{ session('notify') }}
@endif @if ($posts->count() != 0)
@foreach ($posts as $post) @endforeach
ID {{__('admin.content')}} {{__('admin.description')}} {{__('admin.type')}} {{__('general.price')}} {{__('general.interactions')}} {{__('admin.date')}} {{__('admin.status')}}
{{ $post->id }} @if ($post->media_count) {{ $post->media_count }} {{trans_choice('general.files', $post->media_count )}} @else {{ __('general.text') }} @endif {{ str_limit($post->description, 20, '...') }} @if ($post->locked == 'yes') @else @endif {{ Helper::amountFormatDecimal($post->price) }} {{ $post->likes_count }} {{ ($post->comments_count + $post->replies_count) }} {{ $post->bookmarks_count }} {{Helper::formatDate($post->date)}} @if ($post->status == 'active') {{__('general.active')}} @elseif($post->status == 'schedule') {{__('general.scheduled')}} @else {{__('general.pending')}} @endif
@if ($posts->hasPages()) {{ $posts->onEachSide(0)->links() }} @endif @else

{{__('general.not_post_created')}}

@endif
@endsection