|
|
@@ -16,7 +16,6 @@ $project_ids = json_decode(Auth::user()->progetti);
|
|
16
|
16
|
@include('footer_pdf')
|
|
17
|
17
|
<body>
|
|
18
|
18
|
|
|
19
|
|
- @foreach($project_ids as $project_id)
|
|
20
|
19
|
<?php
|
|
21
|
20
|
$timeEntries = Http::get(config('redmine.url').'/time_entries.json', [
|
|
22
|
21
|
'key' => $redmineUser->api_key,
|
|
|
@@ -60,17 +59,9 @@ $project_ids = json_decode(Auth::user()->progetti);
|
|
60
|
59
|
|
|
61
|
60
|
?>
|
|
62
|
61
|
|
|
63
|
|
- @if($collectionIssue->count() == 0)
|
|
64
|
|
- @continue
|
|
65
|
|
- @endif
|
|
66
|
|
-
|
|
67
|
62
|
|
|
68
|
63
|
|
|
69
|
64
|
<div style="width: 100%;">
|
|
70
|
|
- @if($loop->iteration > 1)
|
|
71
|
|
- <div class="page-break"></div>
|
|
72
|
|
- @endif
|
|
73
|
|
-
|
|
74
|
65
|
<div style="width: 100%; padding-top: 0px; height: 100px; margin-bottom: 15px;" >
|
|
75
|
66
|
<div style="width: 25%; float: left;">
|
|
76
|
67
|
<img src="{{ public_path('assets/logo_bgw.png') }}" style="height: 100%"/>
|
|
|
@@ -92,8 +83,7 @@ $project_ids = json_decode(Auth::user()->progetti);
|
|
92
|
83
|
$sedeClienteCorrente = null;
|
|
93
|
84
|
foreach($collectionIssue as $issue){
|
|
94
|
85
|
$sedeCliente = $issue['sede_cliente'];
|
|
95
|
|
-
|
|
96
|
|
- if($sedeClienteCorrente != $sedeCliente){
|
|
|
86
|
+ if($sedeClienteCorrente !== $sedeCliente){
|
|
97
|
87
|
if($sedeClienteCorrente != null){
|
|
98
|
88
|
echo "</table>";
|
|
99
|
89
|
}
|
|
|
@@ -101,7 +91,12 @@ $project_ids = json_decode(Auth::user()->progetti);
|
|
101
|
91
|
echo "<table class='table' style='width: 100%; margin-bottom: 40px;'>
|
|
102
|
92
|
<thead>
|
|
103
|
93
|
<tr>
|
|
104
|
|
- <th style='width: 430px;'>Segnalazione - Sede: ".$sedeCliente."</th>
|
|
|
94
|
+ <th style='width: 430px;'>Segnalazione";
|
|
|
95
|
+ if($sedeCliente != '' && $sedeCliente != null){
|
|
|
96
|
+ echo "- Sede: ".$sedeCliente;
|
|
|
97
|
+ }
|
|
|
98
|
+
|
|
|
99
|
+ echo "</th>
|
|
105
|
100
|
<th style='width: 60px;'>Data</th>
|
|
106
|
101
|
<th style='width: 60px;'>On Site</th>
|
|
107
|
102
|
<th style='width: 60px;'>Remota</th>
|
|
|
@@ -115,6 +110,7 @@ $project_ids = json_decode(Auth::user()->progetti);
|
|
115
|
110
|
|
|
116
|
111
|
$index=0;
|
|
117
|
112
|
|
|
|
113
|
+ // dd($tempoImpiegatoOnSite);
|
|
118
|
114
|
foreach($tempoImpiegatoOnSite as $tempo){
|
|
119
|
115
|
echo "<tr>";
|
|
120
|
116
|
if($index == 0){
|
|
|
@@ -139,7 +135,6 @@ $project_ids = json_decode(Auth::user()->progetti);
|
|
139
|
135
|
echo "<td>".$tempo->hours."h</td>";
|
|
140
|
136
|
echo "</tr>";
|
|
141
|
137
|
}
|
|
142
|
|
-
|
|
143
|
138
|
}
|
|
144
|
139
|
|
|
145
|
140
|
|
|
|
@@ -151,7 +146,6 @@ $project_ids = json_decode(Auth::user()->progetti);
|
|
151
|
146
|
|
|
152
|
147
|
</div>
|
|
153
|
148
|
|
|
154
|
|
-@endforeach
|
|
155
|
149
|
</table>
|
|
156
|
150
|
|
|
157
|
151
|
|