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
e837975b
authored
2019-01-09 18:00:37 +0530
by
G Manojkumar
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Virtual channel Template
1 parent
4a7ea0e4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
159 additions
and
0 deletions
application/app/Http/Controllers/VirtualController.php
application/app/Http/routes.php
application/config/app.php
application/resources/views/layout/module/virtualchannel/VirtualFieldsArray.php
application/resources/views/layout/module/virtualchannel/Virtualdata.blade.php
application/app/Http/Controllers/VirtualController.php
0 → 100644
View file @
e837975
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
App\Http\Requests
;
class
VirtualController
extends
Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public
function
index
()
{
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public
function
create
()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public
function
store
(
Request
$request
)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
show
(
$id
)
{
if
(
$id
==
"virtualdata"
)
{
return
view
(
"layout.module.virtualchannel.virtualdata"
,
array
());
}
return
view
(
"layout.module.virtualchannel.
$id
"
,
array
());
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
edit
(
$id
)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
update
(
Request
$request
,
$id
)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
destroy
(
$id
)
{
//
}
}
application/app/Http/routes.php
View file @
e837975
...
...
@@ -50,6 +50,7 @@ Route::group(['middleware' => ['web']], function () {
Route
::
resource
(
'hr'
,
'HRController'
);
Route
::
resource
(
'social'
,
'SocialController'
);
Route
::
resource
(
'web'
,
'WebController'
);
Route
::
resource
(
'virtualchannel'
,
'VirtualController'
);
Route
::
get
(
'notes'
,
array
(
'uses'
=>
'NotesController@loadQuestions'
,
'as'
=>
'questionare.load_questions'
));
Route
::
post
(
'notes'
,
array
(
'uses'
=>
'NotesController@store'
,
'as'
=>
'notes.store'
));
...
...
application/config/app.php
View file @
e837975
...
...
@@ -97,6 +97,7 @@ return [
"Dialer"
=>
[
"disp"
=>
"Dialer"
,
"icon"
=>
"phone"
,
"dash"
=>
"Dialer"
,
"submenu"
=>
[
"Dialer"
=>
[
"kDialerModel();"
],
"Reports"
=>
[
"menuAction('dialer/reports');"
],
"Virtual channels"
=>
[
"menuAction('virtualchannel/Virtualdata');"
],
]],
"DialerCampaign"
=>
[
"disp"
=>
"Dialer"
,
"icon"
=>
"phone"
,
"dash"
=>
""
,
"submenu"
=>
[
...
...
application/resources/views/layout/module/virtualchannel/VirtualFieldsArray.php
0 → 100644
View file @
e837975
<?php
//Here array is Productname=>array(LG,ExpectedAmt,LC,Amount)
$Product
=
array
(
'Term'
=>
array
(
''
,
''
,
''
,
''
),
'SmartPay'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'BillPay'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'BillPay+SI'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'CC LE'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'CC Upgrade'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'PL10Sec'
=>
array
(
''
,
''
,
''
,
''
),
'Quick Money'
=>
array
(
''
,
''
,
''
,
''
),
'Jaldi5'
=>
array
(
''
,
''
,
''
,
''
),
'GI'
=>
array
(
''
,
''
,
''
,
''
),
'MF'
=>
array
(
''
,
''
,
''
,
''
),
'FD/RD'
=>
array
(
''
,
''
,
''
,
''
),
'LI'
=>
array
(
''
,
''
,
''
,
''
),
'AL'
=>
array
(
''
,
''
,
''
,
''
),
'PL-CRM'
=>
array
(
''
,
''
,
''
,
''
),
'PL-DAP'
=>
array
(
''
,
''
,
''
,
''
),
'HL'
=>
array
(
''
,
''
,
''
,
''
),
'Other Assets'
=>
array
(
''
,
''
,
''
,
''
),
'DEMAT'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'CDL'
=>
array
(
''
,
''
,
''
,
''
),
'CC-Fresh'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'CC-STP'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'CASA'
=>
array
(
''
,
'NA'
,
''
,
'NA'
),
'PayZapp Registration'
=>
array
(
''
,
'NA'
,
''
,
'NA'
));
?>
application/resources/views/layout/module/virtualchannel/Virtualdata.blade.php
0 → 100644
View file @
e837975
<?php
use
App\Models\CRMCall
;
use
App\Models\User
;
use
App\Jobs\KHRMSLib
;
$attempts
=
CRMCall
::
where
(
'userstatus'
,
'!='
,
'InboundDROP'
)
->
where
(
'created_at'
,
'>'
,
date
(
'Y-m-d'
,
time
()))
->
where
(
'user_id'
,
'='
,
Auth
::
user
()
->
id
)
->
count
();
//print_r(($attempts));
$Contacts
=
CRMCall
::
where
(
'userstatus'
,
'NOT IN'
,
"('NORECORD','InboundDROP')"
)
->
where
(
'created_at'
,
'>'
,
date
(
'Y-m-d'
,
time
()))
->
where
(
'user_id'
,
'='
,
Auth
::
user
()
->
id
)
->
count
();
$uniqueContacts
=
DB
::
select
(
"select count(distinct(number)) as uniquecount from crmcalls where userstatus NOT IN ('InboundDROP','NORECORD') and user_id="
.
Auth
::
user
()
->
id
.
" group by number"
);
//print_r($uniqueContacts);
//include(resource_path().'/views/layout/module/virtualchannel/VirtualFieldsArray.php');
//print_r($Product);
//echo "<div>Virtual</div>";
?>
<div
class=
"table-responsive"
style=
"background: #fff;"
>
<br>
<div><h4>
Virtual Channels
</h4></div>
<table
class=
"table"
>
<thead>
<tr>
<th>
No.of Attempts
</th>
<th>
<?php
echo
$attempts
;
?>
</th>
</tr>
<tr>
<th>
No.of Contacts
</th>
<th>
<?php
echo
$Contacts
;
?>
</th>
</tr>
<tr>
<th>
Unique Contacts
</th>
<th>
<?php
foreach
(
$uniqueContacts
as
$uniquecounts
){
echo
$uniquecounts
->
uniquecount
;
}
?>
</th>
</tr>
<tr>
<th>
Income Achievement
</th>
<th></th>
</tr>
<tr>
<th>
Product
</th>
<th>
LG
</th>
<th>
Expected Amount(If Applicable)
</th>
<th>
LC
</th>
<th>
Amount(If Applicable)
</th>
</tr>
<?php
include
(
resource_path
()
.
'/views/layout/module/virtualchannel/VirtualFieldsArray.php'
);
foreach
(
$Product
as
$ProductType
=>
$value
)
{
$i
=
1
;
?>
<tr>
<td>
<?php
echo
$ProductType
;
?>
</td>
<?php
foreach
(
$value
as
$key
=>
$ProductAmt
)
{
?>
<td>
<?php
if
(
$ProductAmt
==
''
){
?>
<input
type=
"number"
name=
<?php
echo
$ProductType
.
""
.
$i
;
?>
id=
<?php
echo
$ProductType
.
""
.
$i
;
?>
>
<?php
}
else
echo
$ProductAmt
;
$i
++
;}
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
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