Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
6f1704c6
authored
2019-08-23 13:17:18 +0530
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added two more new columns into campaign wise report
1 parent
5ee2c380
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
application/app/Http/Controllers/ReportController.php
application/app/Http/Controllers/ReportController.php
View file @
6f1704c
...
...
@@ -20,7 +20,6 @@ use App\Models\UserLog;
use
DB
;
use
Log
;
use
Session
;
use
App\lib\PHP_XLSXWriter_master\XLSXWriter
;
class
ReportController
extends
Controller
{
...
...
@@ -70,7 +69,7 @@ class ReportController extends Controller
if
(
$id
==
"liveusers"
)
{
$campStr
=
""
;
/*
$campStr = "";
$ratio = 0;
$totalCall = 0;
$dialedCall = 0;
...
...
@@ -122,7 +121,7 @@ class ReportController extends Controller
$statusStr = "<span class='btn btn-xs btn-warning'><strong>Free</strong></span>";
$sipIdArr = Sipid::where('server', '=', env('app_ip'))->where('user', "=", $usr->id)->where('status', '=', 1)->select('id', 'status', 'ready', 'patched','prepare_call')->first();
//
if($sipIdArr->user!=$usr->id) continue;
if($sipIdArr->user!=$usr->id) continue;
if($sipIdArr->patched==0) $freeUsr++;
if($sipIdArr->ready==1)$statusStr = "<span class='btn btn-xs btn-success'><strong>Available</strong></span>";
...
...
@@ -150,9 +149,9 @@ class ReportController extends Controller
}
$data
[
'campStr'
]
=
$campStr
;
$data['campStr'] = $campStr;*/
return
view
(
"layout.module.
reports
.liveusers"
,
$data
);
return
view
(
"layout.module.
dialer
.liveusers"
,
$data
);
}
if
(
$id
==
"calllog"
)
...
...
@@ -221,6 +220,9 @@ class ReportController extends Controller
if
(
$crmcallObj
->
user_id
!=
0
)
$reportArr
[
$crmcallObj
->
client
][
'connects'
]
++
;
if
(
strstr
(
$crmcallObj
->
userstatus
,
"Contacted"
))
$reportArr
[
$crmcallObj
->
client
][
'contacts'
]
++
;
if
(
stristr
(
$crmcallObj
->
usersubstatus
,
"follow"
))
$reportArr
[
$crmcallObj
->
client
][
'callbacks'
]
++
;
if
(
strstr
(
$crmcallObj
->
status
,
"NOANSWER"
))
$reportArr
[
$crmcallObj
->
client
][
'no_answer'
]
++
;
if
(
stristr
(
$crmcallObj
->
status
,
"busy"
))
$reportArr
[
$crmcallObj
->
client
][
'busy'
]
++
;
if
(
$crmcallObj
->
status
==
"ANSWER"
&&
$crmcallObj
->
user_id
==
0
)
$reportArr
[
$crmcallObj
->
client
][
'abandoned'
]
++
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment