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
0d07fdc6
authored
2019-01-14 19:32:53 +0530
by
prami
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
output-report fetch data from output products
1 parent
0da9967f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
29 deletions
application/app/Http/Controllers/VirtualController.php
application/resources/views/layout/module/virtualchannel/VirtualFieldsArray.php
application/resources/views/layout/module/virtualchannel/Virtualdata.blade.php
custom/.env
application/app/Http/Controllers/VirtualController.php
View file @
0d07fdc
...
...
@@ -3,6 +3,7 @@
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\DB
;
use
App\Http\Requests
;
...
...
@@ -47,9 +48,10 @@ class VirtualController extends Controller
*/
public
function
show
(
$id
)
{
if
(
$id
==
"virtualdata"
)
{
return
view
(
"layout.module.virtualchannel.virtualdata"
,
array
());
if
(
$id
==
"Virtualdata"
)
{
$products
=
DB
::
table
(
'output_products'
)
->
select
(
'id'
,
'name'
,
'status'
)
->
get
();
return
view
(
"layout.module.virtualchannel.Virtualdata"
)
->
with
(
'products'
,
$products
);
}
return
view
(
"layout.module.virtualchannel.
$id
"
,
array
());
...
...
application/resources/views/layout/module/virtualchannel/VirtualFieldsArray.php
View file @
0d07fdc
<?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'
));
/*$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
View file @
0d07fdc
...
...
@@ -4,21 +4,34 @@ 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));
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"
);
/**
Output Products
**/
//$Product = DB::table('output_products')->select('id','name','status')->where('status', '1')->get();
//print_r($Product);
//print_r($uniqueContacts);
//include(resource_path().'/views/layout/module/virtualchannel/VirtualFieldsArray.php');
//print_r($Product);
//echo "<div>Virtual</div>";
?>
<div
class=
"container"
>
<div
style=
"text-align:center"
>
<h2>
Virtual Channels
</h2>
<p></p>
</div>
<div
class=
"row"
>
<div
class=
"column"
>
<form
class=
"form-horizontal"
>
<div
class=
"table-responsive"
style=
"background: #fff;"
>
<br>
<div><h4>
Virtual Channels
</h4></div>
<table
class=
"table"
>
<table
class=
"table"
>
<thead>
<tr>
<th>
No.of Attempts
</th>
...
...
@@ -43,19 +56,57 @@ $uniqueContacts = DB::select("select count(distinct(number)) as uniquecount from
<th>
LC
</th>
<th>
Amount(If Applicable)
</th>
</tr>
<?php
include
(
resource_path
()
.
'/views/layout/module/virtualchannel/VirtualFieldsArray.php'
);
foreach
(
$Product
as
$ProductType
=>
$value
)
{
</thead>
<tbody>
<?php
//include(resource_path().'/views/layout/module/virtualchannel/VirtualFieldsArray.php');
foreach
(
$products
as
$key
=>
$value
)
{
//print_r($value);
//print_r($ProductType);
$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>
<td>
<?php
echo
$value
->
name
;
?>
</td>
<td><input
type=
"number"
name=
"lg[
<?php
echo
$value
->
name
;
?>
]"
></td>
<td><input
type=
"text"
name=
"lg-amt[
<?php
echo
$value
->
name
;
?>
]"
></td>
<td><input
type=
"number"
name=
"lc[
<?php
echo
$value
->
name
;
?>
]"
></td>
<td><input
type=
"text"
name=
"lc-amt[
<?php
echo
$value
->
name
;
?>
]"
></td>
</tr>
<?php
}
?>
<?php
}
?>
<tr>
<td><button
type=
"submit"
class=
"btn btn-primary"
onclick=
'createOutputReport();return false;'
>
Save
</button></td></tr>
</tbody>
</table>
</div>
</form>
<script>
function
createOutputReport
()
{
var
putdata
=
"csrftoken={!!Session::token()!!}"
;
putdata
+=
"&lc="
+
$
(
"#lc"
).
val
();
doAjax
(
'user'
,
putdata
,
'__fake__div__'
,
'ajax_users_create'
,
'singlethis'
,
'POST'
,
function
(
retstr
)
{
if
(
retstr
.
responseText
.
indexOf
(
'Error'
)
<
0
)
{
simpleNotification
(
"success"
,
"topRight"
,
"User Created Successfully"
);
doAjax
(
'user/'
+
retstr
.
responseText
+
'/edit'
,
''
,
'userformdiv'
,
'ajax_users_create'
,
'singlethis'
,
'GET'
);
}
else
{
simpleNotification
(
"error"
,
"topRight"
,
retstr
.
responseText
);
}
});
}
</script>
</div>
</div>
</div>
...
...
custom/.env
View file @
0d07fdc
...
...
@@ -2,26 +2,24 @@ APP_ENV=local
APP_DEBUG=true
APP_ADMIN_DEBUG=true
APP_KEY=LEynnBaQoqsLncOWZwgdtfxxWU2hEyfp
APP_PROTOCOL=http
s
://
APP_PROTOCOL=http://
app_name=Flexydial
app_title=Flexydial
app_domain=10.125.14.55
web_domain=10.125.14.55
app_ip=10.125.14.55
central_ip=10.125.14.127
didnumber=-8
asterisk_slaves=10.125.14.55:1001:2000:1:240
asterisk_manager=10.125.14.55
app_domain=192.168.3.252
web_domain=192.168.3.252
app_ip=192.168.3.252
asterisk_slaves=192.168.3.252:1001:2000:1:240
asterisk_manager=192.168.3.252
asterisk_extensions=31330,_X!
sip_dialstr=SIP/
APP_Multiple_Logins=yes
APP_Multiple_Logins=no
kDialer_keeplocalconf=1
kstych_viewportMeta=responsive:1:1
DB_HOST=
localhost
DB_DATABASE=
kstych_flexydial
DB_HOST=
192.168.3.252
DB_DATABASE=
flexydial_hdfc_vrm
DB_USERNAME=root
DB_PASSWORD=yb9738z
...
...
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