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

Campaign Detail

{{$campaign->campaign_name}}
@if($userRole == 'admin')
{{$campaign->template_name}}
@endif
{{date('d M Y',strtotime($campaign->start_date))}}
{{date('d M Y',strtotime($campaign->end_date))}}
@if(isset($userPermission['change-campaign-end-date']))
@endif @if(isset($userPermission['campaign-end-date-history']))
@endif
{{ $campaign->quarter_name }} {{$campaign->quarter_year}}
{{ $campaign->survey_type }}
@if($campaign->survey_type != 'Sales Survey')
{{ $campaign->aftermarket_touch_point }}
@endif
{{count($customers)}}
{{$campaign->targeted_response_rate}}
{{$campaign->team_lead}}
{{$campaign->first_sms}}
{{$campaign->follow_up_sms}}
{{$campaign->thankyou_sms}}
Customers in this Campaign
@if($userRole!='cce' && $userRole !='rsm' && $userRole !='asm' )
@endif @if($userRole!='cce' && $userRole !='team_lead')
Status :
@endif
@if(isset($userPermission['campaign-pause-resume'])) @endif
@if(isset($userPermission['campaign-verify-drop']))
@endif
@if($userRole=='team_lead') @endif @if($userRole=='cce') @endif
@php $currentDate = date('m/d/Y'); $startDate = date('m/d/Y', strtotime($campaign->start_date)); $endDate = date('m/d/Y', strtotime($campaign->end_date)); // dd($currentDate, $startDate); @endphp @if($userRole != 'cce' && $userRole != 'team_lead') @endif
@if($userRole!='cce' && $userRole !='rsm' && $userRole !='asm' && $userRole != 'regional_coordinator' && $userRole != 'head_office') @endif @if($userRole !='rsm' && $userRole !='asm' ) @endif @if($userRole=='super_admin' || $userRole=='rsm' || $userRole=='asm') @endif @if($userRole !='rsm' && $userRole !='asm') @endif @foreach($customers as $customer) @if($customer->status==1) @if($userRole!='cce' && $userRole !='rsm' && $userRole !='asm' && $userRole != 'regional_coordinator' && $userRole != 'head_office') @endif @if($userRole !='rsm' && $userRole !='asm') @endif @if($userRole=='super_admin' || $userRole=='rsm' || $userRole=='asm') @endif @if($userRole!='cce') @if($customer->survey_status!='Not filled' && isset($userPermission['view-survey-response'])) @elseif($userRole!='asm' && $userRole!='rsm') @endif @elseif(strtotime($currentDate) >= strtotime($startDate) && strtotime($currentDate) <= strtotime($endDate) && $userRole=='cce' ) @elseif($userRole!='asm' && $userRole!='rsm') @endif @endif @endforeach
Customer Segment Contact Number Contact Person Contact Person Mobile Region Area Language Service CategoryAssign ToResponse Status Call AttemptsStatusActions
@if(isset($userPermission['view-customer-information'])) {{$customer->customer_name}} @else {{$customer->customer_name}} @endif {{$customer->segment}} @if($customer->contact_number==0) NA @else {{$customer->contact_number}} @endif {{$customer->contact_person_name}} {{$customer->contact_person_mobile}} {{$customer->region}} {{$customer->area}} @if($customer->source == 'FUT') @if($customer->vehicle_status == 1) Site Support @else Site Visit @endif @else {{$customer->vehicle_type}} @endif {{$customer->assign_to}} @php $surveyStatus = $customer->survey_status; $surveyStatusClass = 'badge-success'; if($surveyStatus=='Feedback Collected') { $surveyStatusClass = 'badge-success'; } elseif($surveyStatus=='Not filled') { $surveyStatusClass = 'badge-danger'; } else { $surveyStatusClass = 'badge-warning'; } @endphp {{$customer->survey_status}} {{$customer->call_attempt}} @if($customer->status==1) Verified @elseif($customer->status==2) Dropped @else Not Verified @endif View Response - @if($customer->survey_status=='Not filled') Add Responses @elseif($customer->survey_status=='Partially filled') Edit Response @endif -
@if($userRole!='cce' && $userRole !='rsm' && $userRole !='asm' && $userRole != 'regional_coordinator' && $userRole != 'head_office') @endif @if($userRole !='rsm' && $userRole !='asm' ) @endif @if($userRole=='super_admin' || $userRole=='rsm' || $userRole=='asm') @endif @if($userRole !='rsm' && $userRole !='asm') @endif @foreach($customers as $customer) @if($customer->status==0) @if($userRole!='cce' && $userRole !='rsm' && $userRole !='asm' && $userRole != 'regional_coordinator' && $userRole != 'head_office') @endif @if($userRole !='rsm' && $userRole !='asm') @endif @if($userRole=='super_admin' || $userRole=='rsm' || $userRole=='asm') @endif @if($userRole!='cce') @if($customer->survey_status!='Not filled' && isset($userPermission['view-survey-response'])) @elseif($userRole!='asm' && $userRole!='rsm') @endif @elseif(strtotime($currentDate) >= strtotime($startDate) && strtotime($currentDate) <= strtotime($endDate) && $userRole=='cce' ) @elseif($userRole!='asm' && $userRole!='rsm') @endif @endif @endforeach
Customer Segment Contact Number Contact Person Contact Person Mobile Region Area Language Service CategoryAssign ToResponse Status Call AttemptsStatusActions
@if(isset($userPermission['view-customer-information'])) {{$customer->customer_name}} @else {{$customer->customer_name}} @endif {{$customer->segment}} @if($customer->contact_number==0) NA @else {{$customer->contact_number}} @endif {{$customer->contact_person_name}} {{$customer->contact_person_mobile}} {{$customer->region}} {{$customer->area}} @if($customer->source == 'FUT') @if($customer->vehicle_status == 1) Site Support @else Site Visit @endif @else {{$customer->vehicle_type}} @endif {{$customer->assign_to}} @php $surveyStatus = $customer->survey_status; $surveyStatusClass = 'badge-success'; if($surveyStatus=='Completed') { $surveyStatusClass = 'badge-success'; } elseif($surveyStatus=='Not filled') { $surveyStatusClass = 'badge-danger'; } else { $surveyStatusClass = 'badge-warning'; } @endphp {{$customer->survey_status}} {{$customer->call_attempt}} @if($customer->status==1) Verified @elseif($customer->status==2) Dropped @else Not Verified @endif View Response - @if($customer->survey_status=='Not filled') Add Responses @elseif($customer->survey_status=='Partially filled') Edit Response @endif -
@endsection @push('footerScripts')