-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented users and files overview
- Loading branch information
Showing
5 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div style="height: 28.15vh; overflow-y: scroll"> | ||
@foreach ($ticket->messages()->with('uploads')->get() as $message) | ||
@foreach($message->uploads()->get() as $upload) | ||
<div class="card mt-2"> | ||
<div class="card-body"> | ||
<div class="row justify-content-between align-items-center"> | ||
<div class="col-12"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<a href="{{ route('laravel-tickets.tickets.download', ['ticket' => $ticket, 'ticketUpload' => $upload]) }}">{{ basename($upload->path) }}</a> | ||
</div> | ||
<div class="col-12 "> | ||
<span class="text-muted"> | ||
{{ $message->user->name }} {{ $upload->created_at->format(config('laravel-tickets.datetime-format')) }} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endforeach | ||
@endforeach | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div style="height: 28.15vh; overflow-y: scroll"> | ||
@foreach ($ticket->messages()->whereNotIn('user_id', [$ticket->user_id])->orderBy('created_at', 'asc')->get()->unique('user_id') as $message) | ||
<div class="card mt-2"> | ||
<div class="card-body"> | ||
<div class="row justify-content-between align-items-center"> | ||
<div class="col-sm-4 col-md-4 col-lg-3 col-xl-2"> | ||
<img class="rounded" height="48" | ||
src="https://avatars.r-services.eu/{{ $message->user->id }}"> | ||
|
||
</div> | ||
<div class="col-sm-8 col-md-8 col-lg-9 col-xl-10"> | ||
<div class="row"> | ||
<div class="col-12"> | ||
{{ $message->user->name }} | ||
</div> | ||
<div class="col-12 "> | ||
<span | ||
class="text-muted">{{ $message->created_at->format(config('laravel-tickets.datetime-format')) }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endforeach | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.