@extends('customer.layout') @section('content')

{{$survey->title}}


{!!base64_decode($survey->header)!!}
@if(count($survey->domains)>1)
@foreach ($survey->domains as $domain) @endforeach
@endif
@foreach ($survey->domains as $domain)
@if($domain->show==1)

{{$domain->code}} - {{$domain->title}}

@endif @foreach ($domain->rating as $rate) @endforeach @if ($survey->type=='evaluation') @php $Users = []; $result = \DB::table('under_evaluation_surveys_domains_users_roles_r')->where('survey_domain_id',$domain->id)->get(); foreach ($result as $li) { $role = \App\UserRole::where('id',$li->user_role_id)->with('users')->first(); foreach ($role->users as $user) { $Users[$user['id']] = $user; } } @endphp @foreach ($Users as $user) @foreach ($domain->rating as $rate) @endforeach @endforeach @else @foreach ($domain->elements as $element) @foreach ($domain->rating as $rate) @endforeach @endforeach @endif
@if($survey->type=='evaluation') {{__('Staff')}} @else {{__('elements')}} @endif {{$rate->name}}
{{$user->name}} @if($rate->type=='1-5') @endif
{{$domain->code}}/{{$element->code}} - {{$element->text}} @if($rate->type=='1-5') @endif
@endforeach

@if($submission && $submission->completed==1)

{{__('You have submitted this survey.')}}

@else @endif
@endsection @section('script') @endsection