supervisorreport.blade.php
3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<div class="container">
<div style="text-align:center">
<h2>Output Report</h2>
<p></p>
</div>
<div class="row">
<div class="column">
<form class="form-horizontal" id="output-report-supervisor" name="output-report-supervisor">
<div class="table-responsive" style="background: #fff;">
<br>
<div class="dropdown">
<label style="text-indent: 2em;">
<h5>
Select RM/PB :
</h5>
</label>
<select id="supervisorid" style="border:3px solid #efefef;" onchange='userchange("");'>
<option value="ALL">ALL
</option>
<?php
foreach($supervisor as $user){
$selected = ($user->id == $users)?"selected":"";
?>
<option value="{{$user->id }}" {{$selected}}>{{$user->username}}</option>
<?php } ?>
</select>
</div>
<br>
<table class="table">
<thead>
<tr>
<th>No.of Attempts</th>
<th>{{ $Contacts->call_attempts }}
</th>
</tr>
<tr>
<th>No.of Contacts</th>
<th> {{ $Contacts->call_contacts }}
</th>
</tr>
<tr>
<th>Unique Contacts</th>
<th> {{ $Contacts->call_unique_contacts }}
</th>
</tr>
<tr>
<th>Income Achievement</th>
<th>{{ $totalIncome }}</th>
</tr>
<tr>
<th>Product</th>
<th>LG</th>
<th>Expected Amount(If Applicable)</th>
<th>LC</th>
<th>Amount(If Applicable)</th>
</tr>
</thead>
<tbody>
<?php foreach($report as $key => $val){ //print_r($val); ?>
<tr>
<td>{{$val->product_name}}</td>
<td>{{$val->totallead}}</td>
<td>{{$val->totalleadamt}}</td>
<td>{{$val->totalleadclosed}}</td>
<td>{{$val->leadcloseamt}}</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</form>
<script>
function userchange()
{
var user = $('#supervisorid').val();
//console.log(user);
doAjax('outputreport/supervisordata?user='+user,'','middlemainreportdiv','ajax_create_supervisor_report','singlethis','GET', function(retstr){
menuAction('outputreport/supervisordata?user='+user);
});
}
</script>
</div>
</div>