// return "<script>simpleNotification('error','topRight','Campaign name should not be blank.');</script><br/><p class='text-danger text-center'>Campaign name should not be blank.</p>";
$data['dataCountByStatus']=DB::table("records")->select(DB::Raw('status, count(*) as recordCount'))->where("client","=",$campaign)->groupBy('status')->get();
$data['dataCountByDisposition']=DB::table("records")->select(DB::Raw('dialer_status, count(*) as recordCount'))->where("client","=",$campaign)->groupBy('dialer_status')->get();
return"<script>simpleNotification('error','topRight','Campaign name should not be blank.');</script><br/><p class='text-danger text-center'>Campaign name should not be blank.</p>";
DB::table('campaign_query')->insert(['campaign'=>$campaign,'query'=>$selQuery,'select_col'=>$querySelect,'where_cond'=>"client = '$campaign' AND $queryConditions"]);
<p><spanstyle="color:#f00;"><strong>Instruction</strong></span> (Works only if you have 'Write access" to the records) Please create an Excel-2003 format file with header as field-keys and rows containing record data. Extream Care is should be taken during bulk upload as previous values will be overwritten and lost.</p>
<hrstyle="margin-bottom: 10px;"/>
<divclass="row">
<divclass="col-sm-3">
<p><strong>Get Format</strong></p>
<buttontype="submit"class="btn btn-success"onclick="getDataFormat();return false;"><iclass="fa fa-download"></i> Get Format</button>
// var checkedValue = $('.saveQryChck:checked').val();
// var data = 'campaign={{ is_array($campaignDetails)?$campaignDetails["mkey"]:$campaignDetails->mkey }}&querySelect='+$("#querySelect").val()+'&queryConditions='+$("#queryConditions").val()+'&queryLimit='+$("#queryLimit").val()+'&queryOffset='+$("#queryOffset").val()+'&checkedValue='+checkedValue;