Removed php typo / fixed search and mail.
This commit is contained in:
parent
1e27c950c5
commit
a8de58d5b4
|
@ -38,6 +38,7 @@ class PostController extends Controller
|
|||
->orWhere("posts.text", "LIKE", "%{$search}%")
|
||||
->orWhere("statuses.name", "LIKE", "%{$search}%")
|
||||
->orWhere("occupations.name", "LIKE", "%{$search}%")
|
||||
->andWhere("statuses.name", "NOT", "Pending")
|
||||
->get();
|
||||
|
||||
return view("index", [ "posts" => $posts]);
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<div class="row">
|
||||
<div class="col-3">
|
||||
<p class="card-text">Skrevet af: {{ $post->user->username }}</p>
|
||||
<p class="card-text">Mail: {{ $post->user->username }} @edu.sde.dk</p>
|
||||
</div>
|
||||
<div class="col-1 p-0">
|
||||
@if(auth()->id() == $post->user->id)
|
||||
|
@ -26,7 +27,7 @@
|
|||
<h5><span class="badge badge-primary float-right badge-pill yeet">
|
||||
<ion-icon class="align-middle" name="code-slash-outline"></ion-icon>
|
||||
{{ $post->occupation->name }}
|
||||
</span></h5>php
|
||||
</span></h5>
|
||||
@endif
|
||||
@if($post->occupation->name == "IT-Supporter")
|
||||
<h5><span class="badge badge-warning float-right badge-pill yeet">
|
||||
|
|
Loading…
Reference in New Issue