This commit is contained in:
Thomas G 2022-10-15 09:09:58 +11:00
parent 9eebbedd63
commit 5efe7a6b3f
4 changed files with 24 additions and 22 deletions

View File

@ -18,21 +18,21 @@
<div class="PageTitleBar">
<h1 id="usernameframe">My Messages</h1>
<div>
<button type="button" class="greenbutton"><a href="{{ route('compose') }}" style="color:white;font-weight:normal">New
Message</a></button>
<form action="{{ route('recover_all') }}" method="POST" style="display:inline-block">
@csrf
<button class="greenbutton" type="submit">Recover All Messages</button>
</form>
</div>
</div>
<br>
<a href="{{ route('inbox') }}" class="tab">Inbox
({{ App\Models\Message::where('sendto_id', Auth::id())->where('deleted', false)->count() }})</a>
<a href="{{ route('inbox_sent') }}" class="tab">Sent
({{ App\Models\Message::where('user_id', Auth::id())->count() }})</a>
<a href="#" class="tab_selected">Deleted
({{ App\Models\Message::where('sendto_id', Auth::id())->where('deleted', true)->count() }})</a>
</div>
</div>
<br>
<button type="button" class="greenbutton"><a href="{{ route('compose') }}" style="color:white;font-weight:normal">New
Message</a></button>
<form action="{{ route('recover_all') }}" method="POST" style="display:inline-block">
@csrf
<button class="greenbutton" type="submit">Recover All Messages</button>
</form>
<br>
<br>
@foreach ($messages as $message)

View File

@ -16,21 +16,21 @@
<div class="PageTitleBar">
<h1 id="usernameframe">My Messages</h1>
<div>
<button type="button" class="greenbutton"><a href="{{ route('compose') }}" style="color:white;font-weight:normal">New
Message</a></button>
<form action="{{ route('delete_all') }}" method="POST" style="display:inline-block">
@csrf
<button class="redbutton" type="submit">Delete All Messages</button>
</form>
</div>
</div>
<br>
<a href="#" class="tab_selected">Inbox
({{ App\Models\Message::where('sendto_id', Auth::id())->where('deleted', false)->count() }})</a>
<a href="{{ route('inbox_sent') }}" class="tab">Sent
({{ App\Models\Message::where('user_id', Auth::id())->count() }})</a>
<a href="{{ route('deleted') }}" class="tab">Deleted
({{ App\Models\Message::where('sendto_id', Auth::id())->where('deleted', true)->count() }})</a>
</div>
</div>
<br>
<button type="button" class="greenbutton"><a href="{{ route('compose') }}" style="color:white;font-weight:normal">New
Message</a></button>
<form action="{{ route('delete_all') }}" method="POST" style="display:inline-block">
@csrf
<button class="redbutton" type="submit">Delete All Messages</button>
</form>
<br>
<br>
@foreach ($messages as $message)

View File

@ -13,14 +13,16 @@
@section('content')
<div class="PageTitleBar">
<h1 id="usernameframe">My Messages</h1>
<button type="button" class="greenbutton"><a href="{{ route('compose') }}" style="color:white;font-weight:normal">New Message</a></button>
</div>
<br>
<div>
<a href="{{ route('inbox') }}" class="tab">Inbox
({{ App\Models\Message::where('sendto_id', Auth::id())->where('deleted', false)->count() }})</a>
<a href="#" class="tab_selected">Sent ({{ App\Models\Message::where('user_id', Auth::id())->count() }})</a>
<a href="{{ route('deleted') }}" class="tab">Deleted
({{ App\Models\Message::where('sendto_id', Auth::id())->where('deleted', true)->count() }})</a>
</div>
</div>
<br>
<button type="button" class="greenbutton"><a href="{{ route('compose') }}" style="color:white;font-weight:normal">New Message</a></button>
<br>
<br>
@foreach ($messages as $message)

View File

@ -19,7 +19,7 @@
<a href="{{ route('profile', $user->id) }}"><img alt="Profile Image"
src="{{ asset('img/defaultrender.png') }}" width="60px" height="60px"></a>
</div>
<div class="content_special" style="justify-content: space-between; align-items: center" id="FriendsContainerBox1TextContainer">
<div class="content_special" style="justify-content: space-between; align-items: center; padding-right: 5px" id="FriendsContainerBox1TextContainer">
<div>
<a href="{{ route('profile', $user->id) }}" id="FeedContainerBox1Username">{{ $user->name }}</a>
@if (!empty($user->feedposts->last()->status))