|
@@ -0,0 +1,143 @@
|
|
|
+@extends ('layouts/template')
|
|
|
+
|
|
|
+@section('content')
|
|
|
+<link href="/select2/select2.min.css" rel="stylesheet" />
|
|
|
+<script src="/select2/select2.min.js"></script>
|
|
|
+
|
|
|
+<style>
|
|
|
+ #visit-template-segment-template-list .select2-container {
|
|
|
+ width: 100% !important;
|
|
|
+ }
|
|
|
+</style>
|
|
|
+
|
|
|
+<div class="p-3 mcp-theme-1" id="visit-template-segment-template-list">
|
|
|
+ <a href="{{ route('practice-management.visitTemplates') }}" class="d-block mb-1"><i class="fas fa-arrow-left"></i> Back to Visit Templates</a>
|
|
|
+ <div class="card mb-3">
|
|
|
+ <div class="card-header">
|
|
|
+ <div class="d-flex align-items-center justify-content-between">
|
|
|
+ <strong>{{ $visitTemplate->title }}</strong>
|
|
|
+ <div>
|
|
|
+ @include('app.practice-management.visit-templates.update', ['template' => $visitTemplate ])
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="card-body">
|
|
|
+ <div class="d-flex align-items-start">
|
|
|
+ <span class="mr-3"><b>Internal Name:</b> {{ $visitTemplate->internal_name }}</span>
|
|
|
+ <span class="mr-3"><b>Title:</b> {{ $visitTemplate->title }}</span>
|
|
|
+ <span class="mr-3"><b>Created At:</b> {{ friendly_date_time($visitTemplate->created_at) }}</span>
|
|
|
+ <span class="mr-3">
|
|
|
+ <b>Status:</b>
|
|
|
+ @if($visitTemplate->is_active)
|
|
|
+ <span class="text-success mr-2">ACTIVE</span>
|
|
|
+ @else
|
|
|
+ <span class="text-danger mr-2">INACTIVE</span>
|
|
|
+ @endif
|
|
|
+ @include('app.practice-management.visit-templates.activate-deactivate', ['template' => $visitTemplate, 'leftPosition' => true ])
|
|
|
+ </span>
|
|
|
+
|
|
|
+ <div class="mr-3 d-flex align-items-start">
|
|
|
+ @if($visitTemplate->is_active)
|
|
|
+ @if($visitTemplate->reactivation_memo)
|
|
|
+ <span class="mr-3"><b>Reactivation Memo:</b></span>
|
|
|
+ <div style="width:300px;">
|
|
|
+ <small class="text-muted"><b>Memo: </b>{{ $visitTemplate->reactivation_memo }}</small>
|
|
|
+ @include('app.practice-management.visit-templates.update-memo', ['template' => $visitTemplate ])
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @else
|
|
|
+ @if($visitTemplate->deactivation_memo)
|
|
|
+ <span class="mr-3"><b>Deactivation Memo:</b></span>
|
|
|
+ <div style="width:300px;">
|
|
|
+ <small class="text-muted"><b>Memo: </b>{{ $visitTemplate->deactivation_memo }}</small>
|
|
|
+ @include('app.practice-management.visit-templates.update-memo', ['template' => $visitTemplate ])
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="card">
|
|
|
+
|
|
|
+ <div class="card-header border-bottom-0 px-1 py-2 d-flex align-items-center">
|
|
|
+ <strong class="mr-4">
|
|
|
+ <i class="fas fa-notes-medical"></i>
|
|
|
+ Visit Template Segment Templates
|
|
|
+ </strong>
|
|
|
+ @include('app.practice-management.visit-templates.visit-template-segment-templates.create')
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="card-body p-0">
|
|
|
+ <table class="table table-sm table-striped border-top p-0 m-0">
|
|
|
+ <thead class="bg-light">
|
|
|
+ <tr>
|
|
|
+ <th class="border-0">Display title</th>
|
|
|
+ <th class="border-0">Heading</th>
|
|
|
+ <th class="border-0">Sub-heading</th>
|
|
|
+ <th class="border-0">Position Index</th>
|
|
|
+ <th class="border-0">Segment Template</th>
|
|
|
+ <th class="border-0">Created At</th>
|
|
|
+ <th class="border-0">Status</th>
|
|
|
+ <th class="border-0"> </th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach($visitTemplateSegmentTemplates as $template)
|
|
|
+ <tr>
|
|
|
+ <td>{{ $template->display_title }}</td>
|
|
|
+ <td>{{ $template->heading }}</td>
|
|
|
+ <td>{{ $template->subheading }}</td>
|
|
|
+ <td>{{ $template->position_index }}</td>
|
|
|
+ <td>{{ $template->segmentTemplate ? $template->segmentTemplate->default_display_title : '---' }}</td>
|
|
|
+ <td>{{ friendly_date_time($template->created_at) }}</td>
|
|
|
+ <td>
|
|
|
+ <div>
|
|
|
+ @if($template->is_active)
|
|
|
+ <span class="text-success">ACTIVE</span>
|
|
|
+ @if($template->reactivation_memo)
|
|
|
+ <div style="width:300px;">
|
|
|
+ <small class="text-muted"><b>Memo: </b>{{ $template->reactivation_memo }}</small>
|
|
|
+ @include('app.practice-management.visit-templates.visit-template-segment-templates.update-memo')
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @else
|
|
|
+ <span class="text-danger">INACTIVE</span>
|
|
|
+ @if($template->deactivation_memo)
|
|
|
+ <div style="width:300px;">
|
|
|
+ <small class="text-muted"><b>Memo: </b>{{ $template->deactivation_memo }}</small>
|
|
|
+ @include('app.practice-management.visit-templates.visit-template-segment-templates.update-memo')
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div class="d-flex align-items-center">
|
|
|
+ <div class="mr-2">
|
|
|
+ @include('app.practice-management.visit-templates.visit-template-segment-templates.update')
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ @include('app.practice-management.visit-templates.visit-template-segment-templates.activate-deactivate')
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+
|
|
|
+ @if(count($visitTemplateSegmentTemplates) === 0)
|
|
|
+ <tr>
|
|
|
+ <td colspan="8">No records found!</td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ </tbody>
|
|
|
+
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mt-3">
|
|
|
+ {{ $visitTemplateSegmentTemplates->appends(request()->input())->links() }}
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+@endsection
|