history
This commit is contained in:
parent
9d8898f630
commit
e0b9f4e37e
@ -50,7 +50,7 @@ public function dataTable(QueryBuilder $query): EloquentDataTable
|
||||
})
|
||||
->editColumn('show_study', function (Study $study) {
|
||||
$btn = '<a href="#" data-id="' . _h($study->id) . '" class="btn btn-outline-facebook btn-xs showStudy">Show</a>';
|
||||
$btn .= ' <a href="#" data-id="' . _h($study->id) . '" class="edit btn btn-primary btn-xs editStudy">Edit</a>';
|
||||
$btn .= '<a href="' . route('staff.history.edit', $study->hash) . '" class="edit btn btn-primary btn-xs editStudy">Edit</a>';
|
||||
$btn .= ' <a href="#" data-id="' . _h($study->id) . '" class="btn btn-danger btn-xs deleteStudy">Delete</a>';
|
||||
|
||||
return $btn;
|
||||
|
@ -1,14 +1,63 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
@php
|
||||
$configData = App\Services\ThemeHelper::appClasses();
|
||||
$container = 'container-fluid';
|
||||
$containerNav = 'container-fluid';
|
||||
/*
|
||||
$isNavbar = false;
|
||||
$navbarType = 'layout-navbar-hidden';
|
||||
$isMenu = false;
|
||||
$navbarHideToggle = false;
|
||||
*/
|
||||
@endphp
|
||||
|
||||
@extends('layouts.layoutMaster')
|
||||
|
||||
@section('title', 'Worklist')
|
||||
|
||||
@section('vendor-style')
|
||||
@vite([
|
||||
'resources/fontawesome/scss/fontawesome.scss',
|
||||
'resources/fontawesome/scss/light.scss',
|
||||
])
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.27.3/ui/trumbowyg.min.css"
|
||||
integrity="sha512-Fm8kRNVGCBZn0sPmwJbVXlqfJmPC13zRsMElZenX6v721g/H7OukJd8XzDEBRQ2FSATK8xNF9UYvzsCtUpfeJg=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer"/>
|
||||
@endsection
|
||||
|
||||
@section('vendor-script')
|
||||
<script src="//code.jquery.com/jquery-3.7.1.min.js" crossorigin="anonymous"></script>
|
||||
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.7.1.slim.js"><\/script>')</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.27.3/trumbowyg.min.js"
|
||||
integrity="sha512-YJgZG+6o3xSc0k5wv774GS+W1gx0vuSI/kr0E0UylL/Qg/noNspPtYwHPN9q6n59CTR/uhgXfjDXLTRI+uIryg=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.27.3/plugins/cleanpaste/trumbowyg.cleanpaste.min.js"
|
||||
integrity="sha512-UInqT8f+K1tkck6llPo0HDxlT/Zxv8t4OGeCuVfsIlXLrnP1ZKDGb+tBsBPMqDW15OcmV8NDfQe9+EaAG4aXeg=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
@endsection
|
||||
|
||||
@section('page-script')
|
||||
<script>
|
||||
|
||||
$('textarea').trumbowyg({
|
||||
btns: [
|
||||
['strong', 'em'],
|
||||
['removeformat'],
|
||||
['viewHTML'],
|
||||
['fullscreen']
|
||||
],
|
||||
removeformatPasted: true,
|
||||
autogrow: true,
|
||||
resetCss: true
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
|
||||
{{ __('History') }}
|
||||
</h2>
|
||||
</x-slot>
|
||||
|
||||
<div>
|
||||
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
|
||||
|
||||
<div class="mt-10 sm:mt-0">
|
||||
<h4>Clinical Information</h4>
|
||||
|
||||
<form action="{{ route('staff.history.save', $details->hash) }}" method="post">
|
||||
@ -44,8 +93,23 @@
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
|
@ -1,46 +1,58 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
@php
|
||||
$configData = App\Services\ThemeHelper::appClasses();
|
||||
$container = 'container-fluid';
|
||||
$containerNav = 'container-fluid';
|
||||
/*
|
||||
$isNavbar = false;
|
||||
$navbarType = 'layout-navbar-hidden';
|
||||
$isMenu = false;
|
||||
$navbarHideToggle = false;
|
||||
*/
|
||||
@endphp
|
||||
|
||||
@extends('layouts.layoutMaster')
|
||||
|
||||
@section('title', 'Worklist')
|
||||
|
||||
@section('vendor-style')
|
||||
@vite([
|
||||
'resources/fontawesome/scss/fontawesome.scss',
|
||||
'resources/fontawesome/scss/light.scss',
|
||||
])
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.27.3/ui/trumbowyg.min.css"
|
||||
integrity="sha512-Fm8kRNVGCBZn0sPmwJbVXlqfJmPC13zRsMElZenX6v721g/H7OukJd8XzDEBRQ2FSATK8xNF9UYvzsCtUpfeJg=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer"/>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
|
||||
{{ __('History View') }}
|
||||
{{ __('History') }}
|
||||
</h2>
|
||||
</x-slot>
|
||||
|
||||
<div>
|
||||
<div class="max-w-7xl mx-auto py-10 sm:px-6 lg:px-8">
|
||||
|
||||
<div class="mt-10 sm:mt-0">
|
||||
<h4>Clinical Information</h4>
|
||||
|
||||
<h5>Clinical History</h5>
|
||||
<div class="p-4 border-gray-100">
|
||||
{{ $details->clinical_history }}
|
||||
<div class="show-text" disabled name="clinical_history" id="clinical_history" >{!! $details->clinical_history !!}</di>
|
||||
</div>
|
||||
<x-section-border/>
|
||||
|
||||
<h5>surgical_history</h5>
|
||||
<h5>surgical history</h5>
|
||||
<div class="p-4 border-gray-100">
|
||||
{{ $details->surgical_history }}
|
||||
<div class="show-text" disabled name="surgical_history" id="surgical_history" >{!! $details->surgical_history !!}</div>
|
||||
</div>
|
||||
<x-section-border/>
|
||||
|
||||
<h5>lab_results</h5>
|
||||
<h5>lab results</h5>
|
||||
<div class="p-4 border-gray-100">
|
||||
{{ $details->lab_results }}
|
||||
<div class="show-text" disabled name="lab_results" id="lab_results" >{!! $details->lab_results !!}</div>
|
||||
</div>
|
||||
<x-section-border/>
|
||||
|
||||
<h5>clinical_diagnosis</h5>
|
||||
<h5>clinical diagnosis</h5>
|
||||
<div class="p-4 border-gray-100">
|
||||
{{ $details->clinical_diagnosis }}
|
||||
</div>
|
||||
<x-section-border/>
|
||||
|
||||
@can(\App\Models\Enums\Permission::StudyHistoryEdit)
|
||||
<a class="btn btn-sm" href="{{ route('staff.history.edit', _h($details->study_id)) }}">Edit</a>
|
||||
@endcan
|
||||
|
||||
<div class="show-text" disabled name="clinical_diagnosis" id="clinical_diagnosis" >{!! $details->clinical_diagnosis !!}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
|
||||
@endsection
|
||||
|
Loading…
Reference in New Issue
Block a user