(Update) PM System

- Fixed To: “username” from sender to proper receiver
- Fixed Breadcrumbs
This commit is contained in:
HDVinnie
2017-12-30 14:42:01 -05:00
parent 35fdc3b9a9
commit bc30639270
4 changed files with 14 additions and 6 deletions
+4 -2
View File
@@ -2,7 +2,9 @@
@section('breadcrumb')
<li class="active">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.inbox') }}</span>
<a href="{{ route('inbox', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.inbox') }}</span>
</a>
</li>
@stop
@@ -36,7 +38,7 @@
<a href="{{ route('inbox', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
<button type="button" id="btn_refresh" class="btn btn-primary dropdown-toggle" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></button>
</a>
<button type="button" id="btn_delete_messages" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Delete"><i class="fa fa-trash"></i></button>
{{--<button type="button" id="btn_delete_messages" class="btn btn-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Delete"><i class="fa fa-trash"></i></button>--}}
</div>
</div>
<div class="col-md-4 col-xs-7">
+3 -1
View File
@@ -6,7 +6,9 @@
@section('breadcrumb')
<li class="active">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.message') }}</span>
<a href="{{ route('message', array('username' => Auth::user()->username, 'id' => Auth::user()->id, 'pmid' => {{ $pm->id }})) }}">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.message') }}</span>
</a>
</li>
@stop
+4 -2
View File
@@ -2,7 +2,9 @@
@section('breadcrumb')
<li class="active">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.outbox') }}</span>
<a href="{{ route('outbox', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.outbox') }}</span>
</a>
</li>
@stop
@@ -39,7 +41,7 @@
@foreach($pms as $p)
{{ Form::hidden('invisible', 'id', array('id' => 'id')) }}
<tr>
<td class="col-sm-2"><a href="{{ route('profil', ['username' => $p->sender->username, 'id' => $p->sender->id]) }}" title="">{{ $p->sender->username}}</a></td>
<td class="col-sm-2"><a href="{{ route('profil', ['username' => $p->receiver->username, 'id' => $p->receiver->id]) }}" title="">{{ $p->receiver->username}}</a></td>
<td class="col-sm-5"><a href="{{ route('message', ['username' => $user->username , 'id' => $user->id , 'pmid' => $p->id]) }}">{{ $p->subject }}</a></td>
<td class="col-sm-2">{{ $p->created_at->diffForHumans() }}</td>
</tr>
+3 -1
View File
@@ -6,7 +6,9 @@
@section('breadcrumb')
<li class="active">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.send') }} {{ trans('pm.message') }}</span>
<a href="{{ route('create', array('username' => Auth::user()->username, 'id' => Auth::user()->id)) }}">
<span itemprop="title" class="l-breadcrumb-item-link-title">{{ trans('pm.send') }} {{ trans('pm.message') }}</span>
</a>
</li>
@stop