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

{{ trans('Whatsapp survey') }}

Filter:
{!! Form::text('leads_id', null, ['class' => 'form-control', 'placeholder' => 'Enter Lead Id', 'id' => 'leads_id', 'min' => 0]) !!}
{!! Form::text('daterange', app('request')->input('daterange'), [ 'class' => 'form-control daterange', 'id' => 'daterange', 'placeholder' => 'Select Date', 'autocomplete' => 'off' ]) !!}
Clear
           
@if (count($errors) > 0) @if ($errors->any()) @endif @endif
@php $seenLeadIds = []; @endphp @foreach ($results as $index => $data) @php $fullName = $data->message_recipient_name; $productName = 'Guru'; $whastsCreated = $data->created_at ?? ''; $template = $data->template_name ?? ''; $telephone_no = $data->message_recipient_id ?? ''; $leadId = $data['leads_id']; @endphp @if (!in_array($leadId, $seenLeadIds)) @php $seenLeadIds[] = $leadId; @endphp @else @endif @endforeach
{{ trans('Customer Name') }} {{ trans('Mobile No.') }} {{ trans('Lead Id') }} @if(request('sort_by') == 'id') @if(request('sort_type') == 'desc') @else @endif @else @endif {{ trans('Product Name') }} {{ trans('Received Date') }} {{ trans('Template Name') }} {{ trans('Customer Feedback') }}
{{ $fullName }} {{ $telephone_no }} {{ $leadId }} {{ $productName }} {{ $whastsCreated }} @if ($template == "survey_master" || $template == "feedback_master" ) Dear Sir/Madam, will you please take a moment to share your feedback, were you satisfied with the service you received? @elseif ($template == "survey_one" || $template == "feedback_one") Did the customer service representative resolve your issue to your satisfaction? @elseif ($template == "survey_two" || $template == "feedback_two") Was the customer service representative knowledgeable and helpful? @elseif ($template == "survey_three" || $template == "feedback_three" || $template == "survey_third_update") How would you rate your overall experience? @endif @if ($data['message_type'] == "payload") {{ ucwords(str_replace("_", " ", $data['button_payload'])) }} @elseif ($data['message_type'] == "text") {{ ucwords(str_replace("_", " ", $data['text_body'])) }} @endif
{{ $whastsCreated }} @if ($template == "survey_master" || $template == "feedback_master" ) Dear Sir/Madam, will you please take a moment to share your feedback, were you satisfied with the service you received? @elseif ($template == "survey_one" || $template == "feedback_one") Did the customer service representative resolve your issue to your satisfaction? @elseif ($template == "survey_two" || $template == "feedback_two") Was the customer service representative knowledgeable and helpful? @elseif ($template == "survey_three" || $template == "feedback_three" || $template == "survey_third_update") How would you rate your overall experience with our brand ? @endif @if ($data['message_type'] == "payload") {{ ucwords(str_replace("_", " ", $data['button_payload'])) }} @elseif ($data['message_type'] == "text") {{ ucwords(str_replace("_", " ", $data['text_body'])) }} @endif
{!! $results->appends(request()->input())->links(); !!}
@endsection