Removed php typo / fixed search and mail.

This commit is contained in:
Sebastian Davaris 2021-02-25 13:24:17 +01:00
parent 1e27c950c5
commit a8de58d5b4
2 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ class PostController extends Controller
->orWhere("posts.text", "LIKE", "%{$search}%") ->orWhere("posts.text", "LIKE", "%{$search}%")
->orWhere("statuses.name", "LIKE", "%{$search}%") ->orWhere("statuses.name", "LIKE", "%{$search}%")
->orWhere("occupations.name", "LIKE", "%{$search}%") ->orWhere("occupations.name", "LIKE", "%{$search}%")
->andWhere("statuses.name", "NOT", "Pending")
->get(); ->get();
return view("index", [ "posts" => $posts]); return view("index", [ "posts" => $posts]);

View File

@ -15,6 +15,7 @@
<div class="row"> <div class="row">
<div class="col-3"> <div class="col-3">
<p class="card-text">Skrevet af: {{ $post->user->username }}</p> <p class="card-text">Skrevet af: {{ $post->user->username }}</p>
<p class="card-text">Mail: {{ $post->user->username }} @edu.sde.dk</p>
</div> </div>
<div class="col-1 p-0"> <div class="col-1 p-0">
@if(auth()->id() == $post->user->id) @if(auth()->id() == $post->user->id)
@ -26,7 +27,7 @@
<h5><span class="badge badge-primary float-right badge-pill yeet"> <h5><span class="badge badge-primary float-right badge-pill yeet">
<ion-icon class="align-middle" name="code-slash-outline"></ion-icon> <ion-icon class="align-middle" name="code-slash-outline"></ion-icon>
{{ $post->occupation->name }} {{ $post->occupation->name }}
</span></h5>php </span></h5>
@endif @endif
@if($post->occupation->name == "IT-Supporter") @if($post->occupation->name == "IT-Supporter")
<h5><span class="badge badge-warning float-right badge-pill yeet"> <h5><span class="badge badge-warning float-right badge-pill yeet">