Commit 19d51ff3 authored by ZeMKI's avatar ZeMKI

Bugfix interview show

* Bugfix interview show, now you see "from public url".
parent c10ac601
......@@ -37,7 +37,7 @@ class InterviewController extends Controller
$data['study'] = $interview->study;
$data['questions'] = $interview->study->questions;
$data['sorting'] = $interview->study->sortings[0];
$data['author'] = User::where('id', $interview->author)->first() ?? $interview->author;
$data['author'] = User::where('id', $interview->author)->first()->email ?? $interview->author;
Answer::assignAnswersToQuestion($interview, $data);
Sorting::getSortingInfo($interview->study, $data);
Interview::getSortingImages($interview, $data);
......
......@@ -8,7 +8,7 @@
<h1 class="font-bold text-4xl">{{$study->name}}</h1>
<p class="text-base">
<strong class="">{{__('Interview done by')}}:</strong> {{$author->email}}<br>
<strong class="">{{__('Interview done by')}}:</strong> {{$author}}<br>
<strong class="">{{__('Interviewed')}}: </strong>{{$interview->interviewed}} <br>
<strong class="">{{__('From')}}: </strong>{{date('d.m.Y H:i:s', strtotime($interview->start))}}
- <strong class="">{{__('To')}}: </strong>{{date('d.m.Y H:i:s', strtotime($interview->end))}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment