From 1a7efd40b365b91435e9da4c87c265bc845a1619 Mon Sep 17 00:00:00 2001 From: Ronald-pro <36841157+Ronald-pro@users.noreply.github.com> Date: Tue, 7 Dec 2021 22:50:40 +0300 Subject: [PATCH] latest changes --- app/Http/Controllers/PatientController.php | 3 +- resources/views/dashboard.blade.php | 210 ++++++++++++--------- routes/web.php | 2 +- 3 files changed, 119 insertions(+), 96 deletions(-) diff --git a/app/Http/Controllers/PatientController.php b/app/Http/Controllers/PatientController.php index 832b6ec..5db8ecd 100644 --- a/app/Http/Controllers/PatientController.php +++ b/app/Http/Controllers/PatientController.php @@ -11,7 +11,8 @@ class PatientController extends Controller public function index() { $patient_data = Patient::all(); - return view('patient.register', compact('patient_data')); + // dd($patient_data); + return view('dashboard', compact('patient_data')); } public function add_patient(Request $request) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 4c47ba4..94cbebf 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -6,6 +6,7 @@ Covid Screening | Dashboard + @@ -139,65 +140,52 @@
-
+
-

+

{{count($patient_data)}}

-

+

Total Visits

- +
-
+
-

+

{{count($patient_data)}}

-

+

No of Patients in Queue

- +
-
+
-

+

{{count($patient_data)}}

-

+

No of Screened Patients

- +
-
- -
-
-

- -

-
-
- -
-
-
@@ -224,32 +212,45 @@
-
-
- -
- -
- - - - - - - - - - - - - -
No.First NameLast TypePhoneAddress
- -
- -
-
-
+
+
+ +
+ +
+ + + + + + + + + + + + @if (count($patient_data) > 0) + @foreach($patient_data as $patient) + + + + + + + + @endforeach + @endif + + + + +
No.First NameLast NamePhoneAddress
{{$loop->iteration}}{{$patient->f_name}}{{$patient->l_name}}{{$patient->phone}}{{$patient->address}}
+ +
+ +
+
+
@@ -266,58 +267,58 @@
-