mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
135 lines
5.8 KiB
PHP
Executable File
135 lines
5.8 KiB
PHP
Executable File
@extends('layouts.main')
|
|
|
|
@push('styles')
|
|
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
|
|
<link href="{{ asset('/elite/bower_components/datatables/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link href="{{ asset('elite/tables/css/buttons.dataTables.min.css') }}" rel="stylesheet" type="text/css" />
|
|
@endpush
|
|
|
|
@section('content')
|
|
<div class="row bg-title">
|
|
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
|
|
<h4 class="page-title">{{ __('frequently_asked_questions.faq') }}</h4>
|
|
</div>
|
|
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="{{ route('home') }}">{{ __('frequently_asked_questions.dashboard') }}</a></li>
|
|
<li><a class="btn btn-outline-success btn-sm btn-rounded" href="{{ route('frequently_asked_questions.create') }}">{{ __('frequently_asked_questions.add_faqs') }}</a></li>
|
|
<li class="active">{{ __('frequently_asked_questions.add_faq') }}</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
|
|
@include('frequently_asked_questions.menu')
|
|
|
|
@include('flash::message')
|
|
|
|
<div class="panel">
|
|
<div class="panel-body">
|
|
<div class="row">
|
|
<div class="col-sm-6 offset-3">
|
|
<h2 style="text-align: center;"><b>Stre@mline {{ __('frequently_asked_questions.faq') }}</b></h2>
|
|
<br/>
|
|
{{ Form::open(['route'=>'frequently_asked_questions.result', 'data-toggle' => 'validator']) }}
|
|
<div class="input-group" id="questions">
|
|
{{ Form::text('question', '', ['class' => 'form-control typeahead', 'required', 'placeholder' => 'Search for...', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
|
<span class="input-group-btn">
|
|
{{ Form::submit(__('frequently_asked_questions.search'), ['class'=>'btn btn-info']) }}
|
|
</span>
|
|
</div>
|
|
{{ Form::close() }}
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<div class="row">
|
|
<div class="col-sm-6 offset-3 text-center">
|
|
<h3><b>{{ __('frequently_asked_questions.search_categories') }}</b></h3>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<div class="row">
|
|
@foreach($modules as $module)
|
|
<div class="col-md-3 col-sm-6">
|
|
<div class="white-box">
|
|
<a href="{{ route('frequently_asked_questions.result', ['module'=>$module->id]) }}">
|
|
<div class="r-icon-stats">
|
|
<i class="ti-user bg-megna"></i>
|
|
<div class="bodystate">
|
|
<h4>{{ $module->name }}</h4><br/>
|
|
@php if($questions_per_module[$module->id] > 0){ $color = 'success'; }else{ $color = 'danger'; } @endphp
|
|
<label class="label label-{{ $color }}">
|
|
{{ $questions_per_module[$module->id] }}
|
|
</label>
|
|
<span class="text-muted" style="margin-left: 10px;">{{ __('frequently_asked_questions.questions_answered') }}</span>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
|
|
<script src="{{ asset('elite/bower_components/typeahead.js-master/dist/typeahead.bundle.min.js') }}"></script>
|
|
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/dataTables.buttons.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.flash.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/jszip.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/pdfmake.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/vfs_fonts.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.html5.min.js') }}"></script>
|
|
<script src="{{ asset('elite/tables/js/buttons.print.min.js') }}"></script>
|
|
|
|
<script>
|
|
$('.table').DataTable({
|
|
dom: 'Bfrtip',
|
|
buttons: [
|
|
'copy', 'csv', 'excel', 'pdf', 'print'
|
|
]
|
|
});
|
|
|
|
let substringMatcher = function(strs) {
|
|
return function findMatches(q, cb) {
|
|
let matches, substrRegex;
|
|
|
|
// an array that will be populated with substring matches
|
|
matches = [];
|
|
|
|
// regex used to determine if a string contains the substring `q`
|
|
substrRegex = new RegExp(q, 'i');
|
|
|
|
// iterate through the pool of strings and for any string that
|
|
// contains the substring `q`, add it to the `matches` array
|
|
$.each(strs, function(i, str) {
|
|
if (substrRegex.test(str)) {
|
|
matches.push(str);
|
|
}
|
|
});
|
|
|
|
cb(matches);
|
|
};
|
|
};
|
|
|
|
$('#questions .typeahead').typeahead(
|
|
{
|
|
hint: true,
|
|
highlight: true,
|
|
minLength: 1
|
|
},
|
|
{
|
|
name: 'patient_numbers',
|
|
source: substringMatcher(<?php echo json_encode($faqs); ?>)
|
|
}
|
|
);
|
|
</script>
|
|
@endpush
|