Explorar o código

Merge branch 'master' of rav.triplestart.com:jmudaka/stagfe2

= %!s(int64=4) %!d(string=hai) anos
pai
achega
4d5c50f2cc

+ 9 - 4
resources/views/app/practice-management/treatment-services-util.blade.php

@@ -18,16 +18,18 @@
                     <thead>
                     <tr>
                         <th>Date</th>
-                        <th>Day</th>
                         <th>Total hrs.</th>
                     </tr>
                     </thead>
                     <tbody>
+                    <?php
+                    $dowMap = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
+                    ?>
                     @foreach($view_treatment_service_utilization_org as $x)
                         <tr>
-                            <td>{{$x->effective_date}}</td>
                             <td>
-                                {{ date('w', strtotime($x->effective_date)) }}
+                                {{$x->effective_date}} ---
+                                {{ $dowMap[date('w', strtotime($x->effective_date))] }}
                             </td>
                             <td>{{$x->total_hrs}}</td>
                         </tr>
@@ -52,7 +54,10 @@
                     @foreach($view_treatment_service_utilization as $x)
                         <tr>
                             <td>{{$x->name_last}}, {{$x->name_first}}</td>
-                            <td>{{$x->effective_date}}</td>
+                            <td>
+                                {{$x->effective_date}} ---
+                                {{ $dowMap[date('w', strtotime($x->effective_date))] }}
+                            </td>
                             <td>{{$x->total_hrs}}</td>
                         </tr>
                     @endforeach