Размер файла: 3.35Kb
@extends('layout')
@section('title')
{{ trans('walls.title') }} {{ $user->login }}
@stop
@section('content')
<h1>{{ trans('walls.title') }} {{ $user->login }}</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/"><i class="fas fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="/users/{{ $user->login }}">{{ $user->login }}</a></li>
<li class="breadcrumb-item active">{{ trans('walls.title') }}</li>
</ol>
</nav>
@if ($newWall)
<div style="text-align:center"><b><span style="color:#ff0000">{{ trans('walls.new') }}: {{ $newWall }}</span></b></div>
@endif
@if ($messages->isNotEmpty())
@foreach ($messages as $data)
<div class="post">
<div class="b">
<div class="float-right">
@if (getUser() && getUser('id') != $data->author_id)
<a href="#" onclick="return postReply(this)" title="{{ trans('common.reply') }}"><i class="fa fa-reply text-muted"></i></a>
<a href="#" onclick="return postQuote(this)" title="{{ trans('common.quote') }}"><i class="fa fa-quote-right text-muted"></i></a>
<a href="#" onclick="return sendComplaint(this)" data-type="{{ App\Models\Wall::class }}" data-id="{{ $data->id }}" data-token="{{ $_SESSION['token'] }}" data-page="{{ $page->current }}" rel="nofollow" title="{{ trans('common.complaint') }}"><i class="fa fa-bell text-muted"></i></a>
@endif
@if (isAdmin() || $user->id == getUser('id'))
<a href="#" onclick="return deleteWall(this)" data-id="{{ $data->id }}" data-login="{{ $data->user->login }}" data-token="{{ $_SESSION['token'] }}" data-toggle="tooltip" title="{{ trans('common.delete') }}"><i class="fa fa-times text-muted"></i></a>
@endif
</div>
<div class="img">{!! userAvatar($data->author) !!}</div>
<b>{!! profile($data->author) !!}</b> <small>({{ dateFixed($data->created_at) }})</small><br>
{!! userStatus($data->author) !!} {!! userOnline($data->author) !!}
</div>
<div class="message">
{!! bbCode($data->text) !!}
</div>
</div>
@endforeach
{!! pagination($page) !!}
{{ trans('walls.total') }}: <b>{{ $page->total }}</b><br><br>
@else
{!! showError(trans('walls.empty_messages')) !!}
@endif
@if (getUser())
<div class="form">
<form action="/walls/{{ $user->login }}/create" method="post">
<input type="hidden" name="token" value="{{ $_SESSION['token'] }}">
<div class="form-group{{ hasError('msg') }}">
<label for="msg">{{ trans('walls.message') }}:</label>
<textarea class="form-control markItUp" id="msg" rows="5" name="msg" placeholder="{{ trans('walls.message_text') }}" required>{{ getInput('msg') }}</textarea>
{!! textError('msg') !!}
</div>
<button class="btn btn-primary">{{ trans('walls.write') }}</button>
</form>
</div><br>
@else
{!! showError(trans('walls.not_authorized')) !!}
@endif
@stop