@extends('layouts.app') @php $userRole = \Session::get('role'); $userPermission = \Session::get('userPermission'); @endphp @section('content')

@if($surveyDetail->survey_status == 'Partially filled') Edit @else Add @endif Response

  • Campaign Name
    {{ $campaign->campaign_name }}
  • Customer Care Executive
    {{ Auth::user()->name }}
  • Survey Start Date
    {{ $campaign->start_date }}
  • Response Collection Mode
    Call
  • Survey Status
    {{ $surveyDetail->survey_status }}
  • Team Lead
    {{ $campaign->team_lead }}
  • Survey Completion Date
    {{ $surveyDetail->survey_status }}
  • Customer Name
    {{$customer->customer_name}}
  • Customer Type
    {{$customer->customer_type!='' ? $customer->customer_type : 'NA'}}
  • Language
    {{$customer->customer_language!='' ? $customer->customer_language : 'NA'}}
  • Segment
    {{$customer->segment}}
  • @if($customer->site_name != null)
  • Site Name
    {{$customer->site_name}}
  • @endif @if($customer->fleet_size != null)
  • Fleet Size
    {{$customer->fleet_size}}
  • @endif @if($customer->mode_of_support != null)
  • Mode Of Support
    {{$customer->mode_of_support}}
  • @endif
  • Region
    {{$customer->region}}
  • Area
    {{$customer->area}}
  • @if($customer->dealer_name != null)
  • Area
    {{$customer->dealer_name}}
  • @endif
  •  
     
{{ $campaign->opening_script }}
Customer Contact
@csrf
@if(count($customerContacts)>0) @foreach($customerContacts as $key => $customerContact) @endforeach @else @endif
Default Contact Contact Name Phone No. WhatsApp No. Email Designation Language Action
is_default==1) checked @endif/>
is_default==1) readonly @endif/> is_default==1) readonly @endif/> is_default==1) readonly @endif/> is_default==1) readonly @endif/> is_default==1) readonly @endif/> is_default==1) readonly @endif/>
Call Attempts ({{count($callAttempts)}})
@if(!$callAttempts->isEmpty()) @foreach($callAttempts as $key => $callAttempt) @if($callAttempt->status == 'Contacted') @php $statusClass = 'badge-success'; @endphp @elseif($callAttempt->status == 'Phone Off' || $callAttempt->status == 'Phone Busy' || $callAttempt->status == 'Wrong Number' || $callAttempt->status == 'Denied Feedback') @php $statusClass = 'badge-danger'; @endphp @else @php $statusClass = 'badge-warning'; @endphp @endif @endforeach @else @endif
Call Attempts Date & Time Status Call Back Time Remark
{{$key+1}} {{ date('d M Y H:i A', strtotime($callAttempt->created_at)) }} {{ $callAttempt->status }} {{ $callAttempt->callback_date!=null ? date('d M Y h:i A', strtotime($callAttempt->callback_date.' '.$callAttempt->callback_time)) : '-' }} {{ $callAttempt->remark != null ? $callAttempt->remark : '-' }}
No records found.
@csrf
Survey Response
@foreach($questions as $key => $question) @php $question_no = $key+1; @endphp
@if(in_array($question->id, array_column($response, 'question_id'))) @php $index = array_search($question->id, array_column($response, 'question_id')); $cardColor = 'bg-primary-light'; if($response[$index]['option_colour'] == 'green'){ $cardColor = 'bg-success'; } elseif ($response[$index]['option_colour'] == 'red'){ $cardColor = 'bg-danger'; } elseif ($response[$index]['option_colour'] == 'yellow'){ $cardColor = 'bg-warning'; } elseif ($response[$index]['option_colour'] == 'black'){ $cardColor = 'bg-dark'; } else{ $cardColor = 'bg-primary-light'; } @endphp @else @php $cardColor = 'bg-primary-light'; @endphp @endif
Q.{{$question_no}} @php $q = $question->question; @endphp @if(stripos($question->question, 'How likely is it that you will recommend') !== false) @if($campaign->aftermarket_touch_point == 1) @php $q = str_replace('< dealer name of dealership >', 'dealer '.$customer->workshop_name, $question->question); @endphp @elseif($campaign->aftermarket_touch_point == 2) @php $q = str_replace('< dealer name of dealership >', 'Volvos Site support', $question->question); @endphp @elseif($campaign->aftermarket_touch_point == 3) @php $q = str_replace('< dealer name of dealership >', 'Volvos services', $question->question); @endphp @endif @elseif(stripos($question->question, 'How likely is that you will prefer') !== false) @if($campaign->aftermarket_touch_point == 1) @php $q = str_replace('< visit Name of dealership >', 'visit '.$customer->workshop_name, $question->question); @endphp @elseif($campaign->aftermarket_touch_point == 2) @php $q = str_replace('< visit Name of dealership >', 'avail site support from Volvo', $question->question); @endphp @elseif($campaign->aftermarket_touch_point == 3) @php $q = str_replace('< visit Name of dealership >', 'avail services from Volvo', $question->question); @endphp @endif @endif {{$q}}
{{$question->commitment}}
{{$question->help_text}}
Select Answer :
@if($question->question_type == 'radio') @foreach(explode(',', $question->options) as $key => $option) @php $checked = ''; $option_id = explode(',', $question->option_ids)[$key]; @endphp @if(in_array($question->id, array_column($response, 'question_id'))) @php $index = array_search($question->id, array_column($response, 'question_id')); @endphp @if($response[$index]['response'] == $option_id) @php $checked = 'checked'; @endphp @endif @endif
@endforeach @endif @if($question->question_type == 'checkbox') @foreach(explode(',', $question->options) as $key => $option) @php $checked = ''; $option_id = explode(',', $question->option_ids)[$key]; @endphp @if(in_array($question->id, array_column($response, 'question_id'))) @php $index = array_search($question->id, array_column($response, 'question_id')); @endphp @if(in_array($option_id, explode(',', $response[$index]['response']))) @php $checked = 'checked'; @endphp @endif @endif
@endforeach @endif @if($question->question_type == 'select')
@endif
@if($question->additional_textbox == 1)
@php $remark = $textColour = $isRequired = ''; @endphp @if($question->textbox_mandatory == 1) @php $isRequired = 'required'; @endphp @endif @if(in_array($question->id, array_column($response, 'question_id'))) @php $index = array_search($question->id, array_column($response, 'question_id')); $remark = trim($response[$index]['response_remark']); @endphp @endif
@endif
@endforeach
Final Comment
is_complaint==1) checked @endif/>
{{ $campaign->closing_script }}
survey_status == 'Feedback Collected') style="display: none;" @endif>