Files
streamline-emr/docker/streamline-src/resources/views/audit_trail/online_user_print.blade.php
T
alec.turner a424394109 Build modified streamline images
The official image from streamline does not currently work for the arm64
platform. As a temporary measure, the source code and docker build scripts
have been lifted from the official images and are used to build locally.

Some additional modifications are made to reduce overall image size, these
are documented in docker/README.md
2024-03-10 16:17:50 -07:00

100 lines
3.3 KiB
PHP

<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/png" sizes="16x16"
href="{{ asset('uploads/streamline/color/streamline_icon-02.png') }}">
<title>{{ config('app.name', 'Online User - Stre@mline') }}</title>
<!-- Bootstrap Core CSS -->
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<style>
body {
font-size: 0.8em;
}
/*thead, tfoot { display: table-row-group }*/
thead {
display: table-header-group;
}
tfoot {
display: table-row-group;
}
tr {
page-break-before: always;
page-break-after: always;
page-break-inside: avoid;
}
</style>
</head>
<body>
<div class="container-fluid">
@include('layouts.header_pdf_print')
<table class="table table-bordered">
{{-- <tr>
<td><b>{{ __('patient_finance.date') }}</b></td>
<td colspan="2">{{ streamline_date_time_short($receipt_date) }}</td>
<td><b>{{ __('patient_finance.receipt_number') }}</b></td>
<td colspan="2">{{ $receipt_number }}</td>
<td><b>{{ __('family_accounts.deposit_date') }}</b></td>
<td colspan="2">{{ $new_family_deposit->deposit_date }}</td>
</tr> --}}
</table>
<table class="table table-bordered" id="receipt_table">
<thead>
<th style="width: 10px;">No</th>
<th style="width: 10px;">Name</th>
<th style="width: 5px;">Email</th>
<th style="width: 10px;">Status</th>
</thead>
<tbody>
@foreach ($online_users as $key => $value)
@php
$now = \Carbon\Carbon::now();
$check_online_status =
\Carbon\Carbon::parse($value['last_seen'])->diffInDays(\Carbon\Carbon::parse($now));
@endphp
<tr>
<td>{{ $value['id'] }}</td>
<td>{{ $value['first_name'] }} {{ $value['last_name'] }}</td>
<td>{{ $value['email'] }}</td>
<td>
@if(Cache::has('user-is-online-' . $value['id']))
<span class="badge badge-success">Online</span>
@else
<span class="badge badge-primary">Offline</span>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="row">
<div class="col">
<i style="font-size: 0.8em; float: left">&copy; {{ date('Y') }} Stre@mline</i>
</div>
<div class="col">
<i style="float: right">Printed On {{ date(" d M Y h:ia") }} By {{ auth()->user()->first_name }} {{
auth()->user()->last_name }}</i>
</div>
</div>
</div>
</body>
</html>