1
0
Fork 0

Update message view

This commit is contained in:
Daniel Supernault 2019-06-18 20:58:08 -06:00
parent 5d3317d255
commit 5565aa692f
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 34 additions and 0 deletions

View File

@ -17,6 +17,40 @@
<hr>
<div class="row">
<div class="col-12 col-md-3 text-md-right">
@if($message->response_requested)
<p class="text-dark font-weight-bold">Response Requested</p>
@endif
<p class="text-dark">Sent {{$message->created_at->diffForHumans()}}</p>
</div>
<div class="col-12 col-md-6">
<div class="card shadow-none border">
<div class="card-header bg-white">
<div class="media">
<img src="{{$message->user->profile->avatarUrl()}}" class="mr-3 rounded-circle" width="40px" height="40px">
<div class="media-body">
<h5 class="my-0">&commat;{{$message->user->username}}</h5>
<span class="text-muted">{{$message->user->email}}</span>
</div>
</div>
</div>
<div class="card-body">
<p class="mb-0">{{$message->message}}</p>
</div>
</div>
</div>
<div class="col-12 col-md-3">
{{-- @if($message->responded_at == null)
<button class="btn btn-primary font-weight-bold btn-block">Send Response</button>
<hr>
@endif
<button class="btn btn-outline-danger font-weight-bold btn-block">Delete</button> --}}
</div>
</div>
@endsection
@push('scripts')