Bladeren bron

Removed unused stuff

Samson Mutunga 1 jaar geleden
bovenliggende
commit
7222ddef92
1 gewijzigde bestanden met toevoegingen van 1 en 19 verwijderingen
  1. 1 19
      app/Http/Controllers/NoteController.php

+ 1 - 19
app/Http/Controllers/NoteController.php

@@ -41,21 +41,6 @@ class NoteController extends Controller
             }
         }
 
-        // load tickets created on note->effective_date for patient
-        $ticketsOnNote = Ticket::where('client_id', $patient->id)
-            ->where('is_entry_error', false)
-            ->where('note_id', $note->id)
-            ->get();
-
-        // other open tickets as of today
-        $otherOpenTickets = Ticket::where('client_id', $patient->id)
-            ->where('is_entry_error', false)
-            ->where('is_open', true)
-            ->where(function ($query) use ($note) {
-                $query->where('note_id', '<>', $note->id)->orWhereNull('note_id'); // weird, but just the <> isn't working!
-            })
-            ->get();
-
         // load supplyOrders created on note->effective_date for patient
         $supplyOrdersOnNote = SupplyOrder::where('client_id', $patient->id)
             ->where('is_cancelled', false)
@@ -67,8 +52,6 @@ class NoteController extends Controller
             ->where('is_cancelled', false)
             ->where('note_id', '<>', $note->id)
             ->get();
-
-        $templates =  $this->filterClientDocuments(get_doc_templates());
         
         $companyProIDs = DB::select('SELECT company_pro_id FROM company_pro_document WHERE related_client_id  = ?', [$patient->id]);
 
@@ -81,9 +64,8 @@ class NoteController extends Controller
 
         return view('app.patient.note.dashboard', compact('patient', 'note',
             'allSections',
-            'ticketsOnNote', 'otherOpenTickets',
             'companyPros',
-            'supplyOrdersOnNote', 'otherOpenSupplyOrders', 'templates'));
+            'supplyOrdersOnNote', 'otherOpenSupplyOrders'));
     }
 
     private function filterClientDocuments($documents){