@extends('layouts.master') @section('bodyclass') @endsection @section('jumbotron')

@lang('messages.home.title')

@isset(auth()->user()->role)
@lang('messages.home.youare') @lang(auth()->user()->role)
@endisset
@endsection @section('content')
@can('admin-area')
@lang('messages.home.logged') @lang('messages.home.admin')
@endcan
{{ method_field('PUT') }} @csrf @lang('messages.new.homepreference') :
@modorall @endmodorall
@if (!empty($posts->items()))
@lang('messages.home.unpublished')
@csrf {{ method_field('POST') }} @forelse($posts as $post) @can('moderator-post') @endcan @empty
@lang('messages.nopost')
@endforelse
@if (! empty($post->post_title)) {{ str_limit($post->post_title, 35) }} @else @lang('messages.home.notitle') @endif @can('moderator-post') {{ str_limit($post->user->name, 10) }} @else @lang('messages.home.awaiting') @endcan @lang('messages.form.publish')@lang('messages.edit') @lang('messages.delete')
{{ $posts->links() }}
@endif
@endsection @push('scripts') @endpush