Kaynağa Gözat

Dashboard labs, imaging tabs basic

Vijayakrishnan 4 yıl önce
ebeveyn
işleme
58a05bc6db

+ 8 - 3
resources/views/app/dashboard/imaging.blade.php

@@ -11,12 +11,17 @@
     </thead>
     <tbody>
     @foreach($tickets as $ticket)
-        @if($ticket->category === 'lab')
+        @if($ticket->category === 'imaging')
             <?php $data = json_decode($ticket->data); ?>
             <tr>
-                <td class="px-2 text-nowrap">{{friendlier_date_time($ticket->created_at)}}</td>
                 <td class="px-2 text-nowrap">
-                    <a href="/patients/view/{{$ticket->patient->uid}}/tickets/lab">
+                    <a href="/patients/view/{{$ticket->patient->uid}}/tickets/imaging/{{$ticket->uid}}">
+                        <i class="fa fa-arrow-right"></i>
+                        {{friendlier_date_time($ticket->created_at)}}
+                    </a>
+                </td>
+                <td class="px-2 text-nowrap">
+                    <a href="/patients/view/{{$ticket->patient->uid}}/tickets/imaging">
                         {{$ticket->patient->displayName()}}
                     </a>
                 </td>

+ 6 - 1
resources/views/app/dashboard/labs.blade.php

@@ -14,7 +14,12 @@
         @if($ticket->category === 'lab')
             <?php $data = json_decode($ticket->data); ?>
             <tr>
-                <td class="px-2 text-nowrap">{{friendlier_date_time($ticket->created_at)}}</td>
+                <td class="px-2 text-nowrap">
+                    <a href="/patients/view/{{$ticket->patient->uid}}/tickets/lab/{{$ticket->uid}}">
+                        <i class="fa fa-arrow-right"></i>
+                        {{friendlier_date_time($ticket->created_at)}}
+                    </a>
+                </td>
                 <td class="px-2 text-nowrap">
                     <a href="/patients/view/{{$ticket->patient->uid}}/tickets/lab">
                         {{$ticket->patient->displayName()}}

+ 1 - 1
resources/views/app/patient/tickets.blade.php

@@ -941,7 +941,7 @@
                             setTimeout(() => {
                                 let currentTicket = this.tickets.filter(_x => _x.uid === '{{$currentTicket->uid}}');
                                 if (currentTicket && currentTicket.length)
-                                    this.erxShowPopup(currentTicket[0]);
+                                    this['{{$currentTicket->category}}ShowPopup'](currentTicket[0]);
                             }, 250);
                         @endif