|
@@ -1,10 +1,108 @@
|
|
@extends ('layouts.patient')
|
|
@extends ('layouts.patient')
|
|
|
|
+@section('inner-content')
|
|
|
|
+ <?php $pro->pro_type = 'ADMIN'; ?>
|
|
|
|
+ <link href="/select2/select2.min.css" rel="stylesheet" />
|
|
|
|
+ <script src="/select2/select2.min.js"></script>
|
|
|
|
+ <div>
|
|
|
|
+ <div class="d-flex align-items-center pb-3">
|
|
|
|
+ <h4 class="font-weight-bold m-0">Flowsheets</h4>
|
|
|
|
+ {{-- progams filter --}}
|
|
|
|
+{{-- <select class="ml-4 max-width-200px form-control form-control-sm"--}}
|
|
|
|
+{{-- onchange="return flowsheetsFilterChanged()">--}}
|
|
|
|
+{{-- <option value="all" {{ $filter === 'all' ? 'selected' : '' }}>All Programs</option>--}}
|
|
|
|
+{{-- @foreach($patient->clientPrograms as $program)--}}
|
|
|
|
+{{-- <option value="{{$program->uid}}" {{ $filter === $program->uid ? 'selected' : '' }}>--}}
|
|
|
|
+{{-- {{$program->title}}--}}
|
|
|
|
+{{-- </option>--}}
|
|
|
|
+{{-- @endforeach--}}
|
|
|
|
+{{-- </select>--}}
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
|
-@section('section-title')
|
|
|
|
- Flowsheets
|
|
|
|
-@endsection
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $dates = [];
|
|
|
|
+ // todo: get from filter/query
|
|
|
|
+ for ($i=30; $i>=0; $i--) {
|
|
|
|
+ $d = date_sub(date_create(), date_interval_create_from_date_string($i . " day" . ($i === 1 ? '' : 's')));
|
|
|
|
+ $dates[] = date_format($d, "Y-m-d");
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
|
|
-@section('inner-content')
|
|
|
|
- CONTENT
|
|
|
|
|
|
+ <div class="d-flex align-items-stretch overflow-hidden flowsheets-table">
|
|
|
|
+ <div class="col-2 px-0 flex-grow-0">
|
|
|
|
+ <table class="table table-sm border border-top-0 m-0">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr class="bg-light font-weight-bold text-secondary">
|
|
|
|
+ <td class="pl-3">Measurement Type</td>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ @foreach($patient->clientPrograms as $program)
|
|
|
|
+ <?php
|
|
|
|
+ $programCategories = explode('|', $program->measurement_labels);
|
|
|
|
+ $programCategories = array_filter($programCategories, function($_item) {
|
|
|
|
+ return !empty($_item);
|
|
|
|
+ });
|
|
|
|
+ $programICDs = explode('|', $program->icds);
|
|
|
|
+ $programICDs = array_filter($programICDs, function($_item) {
|
|
|
|
+ return !empty($_item);
|
|
|
|
+ });
|
|
|
|
+ $programMonth = $program->getProgramMonth(strtoupper(date('F')), date('Y'));
|
|
|
|
+ ?>
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="px-3 font-weight-bold text-nowrap">{{$program->title}}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ @foreach($programCategories as $category)
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="pl-5 text-nowrap">{{$category}}</td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="flex-grow-1 overflow-auto border-right">
|
|
|
|
+ <table class="table table-sm table-bordered border border-top-0 border-left-0 border-right-0 m-0">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr class="bg-light font-weight-bold text-secondary">
|
|
|
|
+ @foreach($dates as $date)
|
|
|
|
+ <td class="text-nowrap border-bottom-0">{{ $date }}</td>
|
|
|
|
+ @endforeach
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ @foreach($patient->clientPrograms as $program)
|
|
|
|
+ <?php
|
|
|
|
+ $programCategories = explode('|', $program->measurement_labels);
|
|
|
|
+ $programCategories = array_filter($programCategories, function($_item) {
|
|
|
|
+ return !empty($_item);
|
|
|
|
+ });
|
|
|
|
+ $programICDs = explode('|', $program->icds);
|
|
|
|
+ $programICDs = array_filter($programICDs, function($_item) {
|
|
|
|
+ return !empty($_item);
|
|
|
|
+ });
|
|
|
|
+ $programMonth = $program->getProgramMonth(strtoupper(date('F')), date('Y'));
|
|
|
|
+ ?>
|
|
|
|
+ <tr>
|
|
|
|
+ <td colspan="{{count($dates)}}"> </td>
|
|
|
|
+ </tr>
|
|
|
|
+ @foreach($programCategories as $category)
|
|
|
|
+ <tr>
|
|
|
|
+ @foreach($dates as $date)
|
|
|
|
+ <td>100 gm</td>
|
|
|
|
+ @endforeach
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <script>
|
|
|
|
+ function flowsheetsFilterChanged() {
|
|
|
|
+ alert(1);
|
|
|
|
+ }
|
|
|
|
+ </script>
|
|
@endsection
|
|
@endsection
|