mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
resolved conflicts
This commit is contained in:
+319
@@ -0,0 +1,319 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css"/>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-6">
|
||||
<h4 class="page-title">{{ __('insurance_members.create_insurance_member') }}</h4>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_members.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_members/">{{ __('insurance_members.insurance_members') }}</a></li>
|
||||
<li class="active">{{ __('insurance_members.register') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('insurance::insurance_members.menu')
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="white-box">
|
||||
<h3 class="box-title m-b-0">{{ __('insurance_members.patient_search') }}</h3>
|
||||
<div class="form-group">
|
||||
<select class="patient_full_name form-control" style="width:100%;" name="patient_full_name" id="patient_full_name"></select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="white-box">
|
||||
<h3 class="box-title m-b-0">{{ __('insurance_members.patient_information') }}</h3>
|
||||
<div id="patient_information"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
|
||||
<div class="panel-body">
|
||||
|
||||
{{ Form::open(['route' => 'insurance_members.create_insurance_patient', 'files' => 'required']) }}
|
||||
|
||||
{{ Form::hidden('patient_id', '', ['class' => 'patient_id', 'id' => 'patient_id']) }}
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('duplicate_research_id', __('insurance.research_id')) }}
|
||||
{{ Form::text('duplicate_research_id', null, ['class' => 'form-control']) }}
|
||||
@if (!empty($errors->get('duplicate_research_id')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('duplicate_research_id') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ Form::label('is_family_head',__('insurance_members.is_member_head_of_family')) }}
|
||||
<br>
|
||||
{{ Form::radio('is_family_head', 1, false, ["required",'onclick'=>'displayFamilies(1)']) }} Yes
|
||||
{{ Form::radio('is_family_head', 0, false, ["required",'onclick'=>'displayFamilies(0)']) }} No
|
||||
</div>
|
||||
|
||||
<div class="form-group family_div" style="display: none">
|
||||
{{ Form::label('family_id', __('insurance_members.select_family')) }}
|
||||
<select name="family_id" class="form-control compulsory family_id">
|
||||
<option value="">{{ __('insurance_members.select') }}</option>
|
||||
@foreach($families as $id)
|
||||
<option value="{{ $id }}">{{ get_name($id, 'id', 'name', 'insurance_heads_of_family') }} ({{ get_name(get_name($id, 'id', 'group_id', 'insurance_heads_of_family'), 'id', 'name', 'insurance_groups') }})</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group family_risk_div" style="display: none">
|
||||
<div class="form-group">
|
||||
{{ Form::label('family_risk_id', __('insurance_members.family_insurance_risk')) }}
|
||||
{{ Form::select('family_risk_id[]', $chi_risks, '',['class' => 'form-control compulsory risk_id', 'data-error'=>'Select the risk', 'multiple']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('relationship_to_head', __('insurance_members.relationship_to_head')) }}
|
||||
{{ Form::select('relationship_to_head', $relations, 1, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('group_id', __('insurance_members.insurance_group')) }}
|
||||
{{ Form::select('group_id', $insurance_groups, null, ['class' => 'form-control compulsory', 'required', 'id' => 'group_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_plan', __('insurance.chi_plan')) }}
|
||||
{{ Form::select('chi_plan', $chi_plans, null, ['class' => 'form-control compulsory', 'required', 'id' => 'chi_plan']) }}
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-group">
|
||||
{{ Form::label('other_plan', __('insurance.other_plan')) }}
|
||||
{{ Form::select('other_plan', $chi_plans, null, ['class' => 'form-control']) }}
|
||||
</div> --}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('risk_id',__('insurance.risk')) }}
|
||||
{{ Form::select('risk_id[]', $chi_risks, '',['class' => 'form-control compulsory risk_id', 'data-error'=>'Select the risk', 'required', 'multiple']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('member_premium', __('insurance.member_premium')) }}
|
||||
{{ Form::text('member_premium', null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
@if( Auth::user()->can('register-chi-members-with-pre-existing-premiums'))
|
||||
<div class="form-group">
|
||||
{{ Form::label('does_member_have_existing_premium',__('insurance_members.does_member_have_existing_premium')) }}
|
||||
<br>
|
||||
{{ Form::radio('does_member_have_existing_premium', 1, false, ["required",'onclick'=>'displayPremiumActiveDateDiv(1)']) }} {{ __('insurance_members.yes') }}
|
||||
{{ Form::radio('does_member_have_existing_premium', 0, false, ["required",'onclick'=>'displayPremiumActiveDateDiv(0)']) }} {{ __('insurance_members.no') }}
|
||||
</div>
|
||||
|
||||
<div class="existing_premiums_dates_div" style="display: none">
|
||||
<div class="form-group">
|
||||
{{ Form::label('existing_premium_start_date', __('insurance_members.existing_premium_start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('existing_premium_start_date','',['class' => 'form-control','readonly','id'=>'existing_premium_start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('existing_premium_end_date', __('insurance_members.existing_premium_end_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('existing_premium_end_date','',['class' => 'form-control','readonly','id'=>'existing_premium_end_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('title', __('insurance.title')) }}
|
||||
{{ Form::select('title', $person_titles, null, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('photo',__('insurance_members.photo')) }}
|
||||
{{ Form::file('photo',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('membership_start_date', __('insurance.membership_start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('membership_start_date','',['class' => 'form-control','readonly','id'=>'membership_start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('membership_registration_date', __('insurance.membership_registration_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('membership_registration_date','',['class' => 'form-control','readonly','id'=>'membership_registration_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('social_security_number', __('insurance.social_security_number')) }}
|
||||
{{ Form::text('social_security_number', null, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('research_id', __('insurance.research_id')) }}
|
||||
{{ Form::text('research_id', null, ['class' => 'form-control']) }}
|
||||
@if (!empty($errors->get('research_id')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('research_id') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('next_anniversary_date', __('insurance.next_anniversary_date_bracket_moved_with_rollover')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('next_anniversary_date','',['class' => 'form-control','readonly','id'=>'next_anniversary_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('insurance_members.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('insurance_members.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/insurance_members/create.js') }}"></script>
|
||||
<script src="{{ asset('elite/js/validator.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function displayFamilies(option){
|
||||
if (option == 0){
|
||||
document.querySelector(".family_div").style.display = "block";
|
||||
document.querySelector(".family_risk_div").style.display = "none";
|
||||
} else {
|
||||
document.querySelector(".family_div").style.display = "none";
|
||||
document.querySelector(".family_risk_div").style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
function displayPremiumActiveDateDiv(option){
|
||||
if (option == 0){
|
||||
document.querySelector(".existing_premiums_dates_div").style.display = "none";
|
||||
} else {
|
||||
document.querySelector(".existing_premiums_dates_div").style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
$('#membership_start_date,#membership_registration_date,#next_anniversary_date,#existing_premium_start_date,#existing_premium_end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
|
||||
});
|
||||
|
||||
$('.risk_id,.family_id, #group_id').select2({
|
||||
placeholder: "Select",
|
||||
width: "100%"
|
||||
});
|
||||
|
||||
$('#chi_plan').change(function(){
|
||||
let chi_plan = $(this).val();
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/get_chi_plan_amount/' + chi_plan,
|
||||
success: function(response){
|
||||
$('#member_premium').val(response);
|
||||
},
|
||||
error: function (error) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.family_id').change(function(){
|
||||
let family_id = $(this).val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/get_family_group_id/' + family_id,
|
||||
success: function(response){
|
||||
$('#group_id').val(response).attr("selected","selected");
|
||||
},
|
||||
error: function (error) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.patient_full_name').change(function() {
|
||||
let id = $('#patient_full_name').val();
|
||||
$('#patient_id').val(id);
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: "/insurance_members/update_patient_info/" + id,
|
||||
success: function(response){
|
||||
$('#patient_information').html(response).show();
|
||||
},
|
||||
error: function (error) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
}).select2({
|
||||
placeholder: "<?php echo "Search by patient name or number" ?>",
|
||||
ajax: {
|
||||
url: '/patients/search_patient_by_name_number',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.first_name + " " + item.last_name + " ("+ item.number + ") " + item.phone,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+1346
File diff suppressed because it is too large
Load Diff
+102
@@ -0,0 +1,102 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@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">{{ __('insurance_members.insurance_member_details') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_members.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_members/">{{ __('insurance_members.insurance_members') }}</a></li>
|
||||
<li class="active">{{ __('insurance_members.member_details') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('insurance::insurance_members.menu')
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h3>{{ __('insurance_members.member_details_bio') }}</h3>
|
||||
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.patient_number') }}</th>
|
||||
<td>{{ $patient_number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.full_names') }}</th>
|
||||
<td>{!! insurance_flag($patient_id) !!}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.relationship_to_head_of_family') }}</th>
|
||||
<td>{{ $patient_relationship }}</td>
|
||||
</tr>
|
||||
@if (!empty($research_id))
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.research_id') }}</th>
|
||||
<td>{{ $research_id }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>{{ __('insurance_members.head_of_family_details') }}</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.full_names') }}</th>
|
||||
<td>{{ title_case($head_of_family) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>{{ __('insurance_members.group_details') }}</h3>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.group_name') }}</th>
|
||||
<td>{{ $group_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.start_of_insurance') }}</th>
|
||||
<td>{{ streamline_date($start_date) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.end_of_insurance') }}</th>
|
||||
<td>{{ streamline_date($end_date) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.insurance_status') }}</th>
|
||||
<td>
|
||||
@if (date('Y-m-d') < $end_date)
|
||||
<font color="green" ><strong>{{ __('insurance_members.active') }}</strong></font>
|
||||
@else
|
||||
<font color="red"><strong>{{ __('insurance_members.inactive') }}</strong></font>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div>
|
||||
<h4>{{ __('insurance_members.member_picture') }}</h4>
|
||||
<img style='height: 140px; width: 250px;' src="{{ asset($member_photo) }}">
|
||||
</div>
|
||||
<hr>
|
||||
<div>
|
||||
<h4>{{ __('insurance_members.head_of_family_picture') }}</h4>
|
||||
<img style='height: 140px; width: 250px;' src="{{ asset($head_photo) }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
+235
@@ -0,0 +1,235 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('elite/bower_components/icheck/skins/all.css') }}" rel="stylesheet">
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css"/>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row bg-title">
|
||||
<div class="col-md-6">
|
||||
<h4 class="page-title">{{ __('insurance_members.edit_insurance_details_for') }} ({!! insurance_flag($insurance_member->patient_id) !!})</h4>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_members.dashboard') }}</a></li>
|
||||
<li><a href="/insurance/scheme_administration">{{ __('insurance.scheme_administration') }}</a></li>
|
||||
<li><a href="/insurance_members/">{{ __('insurance_members.insurance_members') }}</a></li>
|
||||
<li class="active">{{ __('insurance_members.edit') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('insurance::insurance_members.menu')
|
||||
|
||||
{{ Form::model($insurance_member, ['method' => 'PUT', 'route' => ['insurance_members.update',$insurance_member], 'files' => 'required']) }}
|
||||
|
||||
<div class="white-box">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('duplicate_research_id', __('insurance.research_id')) }}
|
||||
{{ Form::text('duplicate_research_id', $insurance_member->research_id, ['class' => 'form-control']) }}
|
||||
@if (!empty($errors->get('duplicate_research_id')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('duplicate_research_id') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('is_family_head',__('insurance_members.is_member_head_of_family')) }}
|
||||
<br>
|
||||
{{ Form::radio('is_family_head', 1, $insurance_member->is_family_head == 1, ["required",'onclick'=>'displayFamilies(1)']) }} Yes
|
||||
{{ Form::radio('is_family_head', 0, $insurance_member->is_family_head == 0, ["required",'onclick'=>'displayFamilies(0)']) }} No
|
||||
</div>
|
||||
|
||||
<div class="form-group family_div" @if($insurance_member->is_family_head == 1) style="display: none" @endif>
|
||||
{{ Form::label('family_id', __('insurance_members.select_family')) }}
|
||||
{{ Form::select('family_id', $families, $insurance_member->family_id, ['class' => 'form-control compulsory family_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('relationship_to_head', __('insurance_members.relationship_to_head')) }}
|
||||
{{ Form::select('relationship_to_head', $relations, $insurance_member->relationship_to_head, ['class' => 'form-control compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('group_id', __('insurance_members.insurance_group')) }}
|
||||
{{ Form::select('group_id', $insurance_groups, $insurance_member->group_id, ['class' => 'form-control compulsory', 'required', 'id' => 'group_id']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('chi_plan', __('insurance.chi_plan')) }}
|
||||
{{ Form::select('chi_plan', $chi_plans, $insurance_member->chi_plan, ['class' => 'form-control compulsory', 'required', 'id' => 'chi_plan']) }}
|
||||
</div>
|
||||
|
||||
{{-- <div class="form-group">
|
||||
{{ Form::label('other_plan', __('insurance.other_plan')) }}
|
||||
{{ Form::select('other_plan', $chi_plans, $insurance_member->other_plan, ['class' => 'form-control']) }}
|
||||
</div> --}}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('risk_id',__('insurance.risk')) }}
|
||||
@php
|
||||
$risk_ids_array = is_null($insurance_member->risk_ids) ? [] : explode(",", $insurance_member->risk_ids);
|
||||
@endphp
|
||||
{{ Form::select('risk_id[]', $chi_risks, $risk_ids_array,['class' => 'form-control compulsory risk_id', 'data-error'=>'Select the risk', 'required', 'multiple']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('member_premium', __('insurance.member_premium')) }}
|
||||
{{ Form::text('member_premium', $insurance_member->premium, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
@if( Auth::user()->can('register-chi-members-with-pre-existing-premiums'))
|
||||
<div class="form-group">
|
||||
{{ Form::label('does_member_have_existing_premium',__('insurance_members.does_member_have_existing_premium')) }}
|
||||
<br>
|
||||
{{ Form::radio('does_member_have_existing_premium', 1, false, ["required",'onclick'=>'displayPremiumActiveDateDiv(1)']) }} {{ __('insurance_members.yes') }}
|
||||
{{ Form::radio('does_member_have_existing_premium', 0, true, ["required",'onclick'=>'displayPremiumActiveDateDiv(0)']) }} {{ __('insurance_members.no') }}
|
||||
</div>
|
||||
|
||||
<div class="existing_premiums_dates_div" style="display: none">
|
||||
<div class="form-group">
|
||||
{{ Form::label('existing_premium_start_date', __('insurance_members.existing_premium_start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('existing_premium_start_date',$insurance_member->existing_premium_start_date,['class' => 'form-control','readonly','id'=>'existing_premium_start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('existing_premium_end_date', __('insurance_members.existing_premium_end_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('existing_premium_end_date', $insurance_member->existing_premium_end_date,['class' => 'form-control','readonly','id'=>'existing_premium_end_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
{{ Form::label('title', __('insurance.title')) }}
|
||||
{{ Form::select('title', $person_titles, $insurance_member->title, ['class' => 'form-control compulsory', 'required']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('photo',__('insurance_members.photo')) }}
|
||||
{{ Form::file('photo',['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('membership_start_date', __('insurance.membership_start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('membership_start_date',$insurance_member->membership_start_date,['class' => 'form-control','readonly','id'=>'membership_start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('membership_registration_date', __('insurance.membership_registration_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('membership_registration_date',$insurance_member->membership_registration_date,['class' => 'form-control','readonly','id'=>'membership_registration_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('social_security_number', __('insurance.social_security_number')) }}
|
||||
{{ Form::text('social_security_number', $insurance_member->social_security_number, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('research_id', __('insurance.research_id')) }}
|
||||
{{ Form::text('research_id', $insurance_member->research_id, ['class' => 'form-control']) }}
|
||||
@if (!empty($errors->get('research_id')))
|
||||
<div class="help-block with-errors alert alert-danger">
|
||||
@foreach ($errors->get('research_id') as $message)
|
||||
{{ $message }}
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('next_anniversary_date', __('insurance.next_anniversary_date_bracket_moved_with_rollover')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('next_anniversary_date', $insurance_member->next_anniversary_date,['class' => 'form-control','readonly','id'=>'next_anniversary_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('insurance_members.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('insurance_members.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#membership_start_date,#membership_registration_date,#next_anniversary_date,#existing_premium_start_date,#existing_premium_end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'yyyy-mm-dd',
|
||||
|
||||
});
|
||||
|
||||
$('.family_id').change(function(){
|
||||
let family_id = $(this).val();
|
||||
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: '/get_family_group_id/' + family_id,
|
||||
success: function(response){
|
||||
$('#group_id').val(response).attr("selected","selected");
|
||||
},
|
||||
error: function (error) {
|
||||
console.log(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.risk_id,.family_id').select2({
|
||||
placeholder: "Select",
|
||||
width: "100%"
|
||||
});
|
||||
});
|
||||
|
||||
function displayPremiumActiveDateDiv(option){
|
||||
if (option == 0){
|
||||
document.querySelector(".existing_premiums_dates_div").style.display = "none";
|
||||
} else {
|
||||
document.querySelector(".existing_premiums_dates_div").style.display = "block";
|
||||
}
|
||||
}
|
||||
|
||||
function displayFamilies(option){
|
||||
if (option == 0) {
|
||||
$('.family_div').show();
|
||||
} else {
|
||||
$('.family_div').hide();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
+164
@@ -0,0 +1,164 @@
|
||||
@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" />
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('insurance_members.inactive_insurance_members') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_members.dashboard') }}</a></li>
|
||||
<li><a href="/insurance_members/">{{ __('insurance_members.insurance_members') }}</a></li>
|
||||
<li class="active">{{ __('insurance_members.activate') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('insurance::insurance_members.menu')
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'insurance_members.search_inactive', 'method' => 'ANY', 'role' => 'search']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class="form-group" id="full_names">
|
||||
{{ Form::text('full_name', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient Name', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::select('group_id',$insurance_groups_select,'',['class' => 'form-control', 'id' => 'insurance_groups']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4"></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
@if(isset($criteria))
|
||||
<p>{{ __('insurance_members.search_criteria') }} : <code>{{ $criteria }}</code> <a href="{{ route('insurance_members.inactive') }}">{{ __('insurance_members.clear_search') }}</a></p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<button type="submit" class="btn btn-success pull-right"><span class="glyphicon glyphicon-search"></span> {{ __('insurance_members.search') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
|
||||
<hr>
|
||||
|
||||
<p class="text-muted m-b-30">{{ __('insurance_members.export_data_to_csv_and_excel') }}</p>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped color-bordered-table success-bordered-table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.patient_number') }}</th>
|
||||
<th>{{ __('insurance_members.name') }}</th>
|
||||
<th>{{ __('insurance_members.group_name') }}</th>
|
||||
<th>{{ __('insurance_members.family') }}</th>
|
||||
<th>{{ __('insurance_members.relationship_to_head') }}</th>
|
||||
<th>{{ __('insurance_members.patient_category') }}</th>
|
||||
<th>{{ __('insurance_members.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($insurance_members as $insurance_member)
|
||||
<tr>
|
||||
<td>{{ $insurance_member->number }}</td>
|
||||
<td>{!! insurance_flag($insurance_member->patient_id) !!}</td>
|
||||
<td>{{ isset($insurance_groups[$insurance_member->group_id]) ? $insurance_groups[$insurance_member->group_id] : 'N/A' }}</td>
|
||||
<td>{{ isset($insurance_family[$insurance_member->family_id]) ? $insurance_family[$insurance_member->family_id] : 'N/A' }}</td>
|
||||
<td>{{ isset($relations[$insurance_member->relationship_to_head]) ? $relations[$insurance_member->relationship_to_head] : 'N/A' }}</td>
|
||||
<td>{{ isset($patient_categories[$insurance_member->category_id]) ? $patient_categories[$insurance_member->category_id] : 'N/A' }}</td>
|
||||
<td>
|
||||
{{ Form::model($insurance_member->id ,['method' => 'POST', 'route' => ['insurance_members.activate', $insurance_member->id]]) }}
|
||||
<button type="submit" class="btn btn-warning btn-rounded" onclick="return confirm('<?php echo __("insurance_members.are_you_sure")?>')"><i class="fa fa-check"></i> {{ __('insurance_members.activate') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
{{ $insurance_members->links() }}
|
||||
</div>
|
||||
</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 src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
$('#insurance_groups').select2({
|
||||
placeholder: "-- select group --"
|
||||
});
|
||||
|
||||
var substringMatcher = function (strs) {
|
||||
return function findMatches(q, cb) {
|
||||
var matches, substringRegex;
|
||||
|
||||
// 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);
|
||||
};
|
||||
};
|
||||
|
||||
$('#full_names .typeahead').typeahead(
|
||||
{
|
||||
hint: true,
|
||||
highlight: true,
|
||||
minLength: 1
|
||||
},
|
||||
{
|
||||
name: 'full_names',
|
||||
source: substringMatcher(<?php echo json_encode($full_names); ?>)
|
||||
}
|
||||
);
|
||||
</script>
|
||||
@endpush
|
||||
+237
@@ -0,0 +1,237 @@
|
||||
@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" />
|
||||
<link href="{{ asset('elite/bower_components/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('insurance_members.insurance_members') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_members.dashboard') }}</a></li>
|
||||
<li><a href="/insurance/scheme_administration">{{ __('insurance.scheme_administration') }}</a></li>
|
||||
<li><a href="/insurance_members/">{{ __('insurance_members.insurance_members') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('insurance::insurance_members.menu')
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th><b>{{ __('insurance_members.currently_registered_members') }}</b></th>
|
||||
<td>{{ $total_registered }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>{{ __('insurance_members.members_with_active_insurance') }}</b></th>
|
||||
<td>{{ $total_active_insurance }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>{{ __('insurance_members.members_with_expired_insurance') }}</b></th>
|
||||
<td>{{ $total_inactive_insurance }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
{{ Form::open(['route' => 'insurance_members.search', 'method' => 'ANY', 'role' => 'search']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group" id="full_names">
|
||||
{{ Form::text('full_name', '', ['class' => 'form-control typeahead', 'placeholder' => 'Patient Name', 'autocomplete' => 'off', 'spellcheck' => false]) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::select('group_id',$insurance_groups_select,'',['class' => 'form-control', 'id' => 'insurance_groups']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::select('member_type',[0 => 'All Members', 1 => __('insurance_members.members_with_active_insurance'), 2 => __('insurance_members.members_with_expired_insurance')],0,['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
@if(isset($criteria))
|
||||
<p>{{ __('insurance_members.search_criteria') }} : <code>{{ $criteria }}</code> <a href="{{ route('insurance_members.index') }}">{{ __('insurance_members.clear_search') }}</a></p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<button type="submit" class="btn btn-success pull-right"><span class="glyphicon glyphicon-search"></span> {{ __('insurance_members.search') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped color-bordered-table success-bordered-table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('insurance_members.patient_number') }}</th>
|
||||
<th>{{ __('insurance_members.name') }}</th>
|
||||
<th>{{ __('insurance.premium') }}</th>
|
||||
<th>{{ __('insurance.plan') }}</th>
|
||||
<th>{{ __('insurance_members.group_name') }}</th>
|
||||
<th>{{ __('insurance_members.family') }}</th>
|
||||
<th>{{ __('insurance_members.relationship_to_head') }}</th>
|
||||
<th>{{ __('insurance_members.patient_category') }}</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($insurance_members as $insurance_member)
|
||||
<tr>
|
||||
<td>{{ $insurance_member->number }}</td>
|
||||
<td>{!! insurance_flag($insurance_member->patient_id) !!}</td>
|
||||
<td>{{ ugandan_shillings($insurance_member->premium) }}</td>
|
||||
<td>{{ $plans[$insurance_member->chi_plan] ?? 'N/A' }}</td>
|
||||
<td>{{ $insurance_groups[$insurance_member->group_id] ?? 'N/A' }}</td>
|
||||
<td>{{ $insurance_family[$insurance_member->family_id] ?? 'N/A' }}</td>
|
||||
<td>{{ $relations[$insurance_member->relationship_to_head] ?? 'N/A' }}</td>
|
||||
<td>{{ $patient_categories[$insurance_member->category_id] ?? 'N/A' }}</td>
|
||||
<td>
|
||||
<a href="/insurance_members/{{ $insurance_member->id }}/edit/" class="btn btn-rounded btn-info btn-sm"><i class="fa fa-pencil"></i> {{ __('insurance_members.edit') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ Form::model($insurance_member->id ,['method' => 'DELETE', 'route' => ['insurance_members.destroy', $insurance_member->id]]) }}
|
||||
<button type="submit" class="btn btn-rounded btn-danger btn-sm" onclick="return confirm('<?php echo __("insurance_members.are_you_sure")?>')"><i class="fa fa-trash"></i> {{ __('insurance_members.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
<td>
|
||||
<a href="/insurance_members/details/{{ $insurance_member->id }}" class="btn btn-rounded btn-info btn-sm">{{ __('insurance_members.details') }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</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 src="{{ asset('elite/tables/js/buttons.colVis.min.js') }}"></script>
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#insurance_groups').select2({
|
||||
placeholder: "-- select group --"
|
||||
});
|
||||
|
||||
var substringMatcher = function (strs) {
|
||||
return function findMatches(q, cb) {
|
||||
var matches, substringRegex;
|
||||
|
||||
// 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);
|
||||
};
|
||||
};
|
||||
|
||||
$('#full_names .typeahead').typeahead(
|
||||
{
|
||||
hint: true,
|
||||
highlight: true,
|
||||
minLength: 1
|
||||
},
|
||||
{
|
||||
name: 'full_names',
|
||||
source: substringMatcher(<?php echo json_encode($full_names); ?>)
|
||||
}
|
||||
);
|
||||
|
||||
$('.sorting').removeClass('sorting');//remove the sorting class
|
||||
$('.sorting_asc').removeClass('sorting_asc');//remove the sorting class
|
||||
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength:20,
|
||||
buttons: [
|
||||
'copy',
|
||||
{extend: 'csv',
|
||||
message: 'LIST OF INSURANCE MEMBERS'
|
||||
},
|
||||
{extend: 'excel',
|
||||
message: 'LIST OF DRUGS',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5]
|
||||
},
|
||||
sheetName: 'LIST OF INSURANCE MEMBERS'
|
||||
},
|
||||
{extend: 'pdf',
|
||||
message: 'LIST OF INSURANCE MEMBERS',
|
||||
orientation: 'portrait',
|
||||
pageSize: 'LETTER',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5]
|
||||
},
|
||||
customize: function (doc) {
|
||||
doc.defaultStyle.fontSize = 10;
|
||||
}
|
||||
},
|
||||
{extend: 'print',
|
||||
message: 'LIST OF INSURANCE MEMBERS',
|
||||
exportOptions: {
|
||||
columns: [0, 1, 2, 3, 4, 5]
|
||||
},
|
||||
customize: function (win) {
|
||||
$(win.document.body)
|
||||
.css('font-size', '10pt')
|
||||
.css('background', '#fff')
|
||||
.prepend(
|
||||
'<img src="<?php echo asset('uploads/logo/logo-sm.png'); ?>" style="position:absolute; top:0; right:0;" />'
|
||||
);
|
||||
$(win.document.body).find('table')
|
||||
.addClass('compact')
|
||||
.css('font-size', 'inherit');
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
@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/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@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">{{ __('insurance_members.insurance_members') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_members.dashboard') }}</a></li>
|
||||
<li><a href="/insurance/scheme_administration">{{ __('insurance.scheme_administration') }}</a></li>
|
||||
<li><a href="/insurance_members/">{{ __('insurance_members.insurance_members') }}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@include('insurance::insurance_members.menu')
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
{{ Form::open(['route' => 'insurance_members.search', 'method' => 'ANY', 'role' => 'search']) }}
|
||||
|
||||
{{ Form::hidden('patient_id', 0, ['id' => 'patient_id']) }}
|
||||
{{ Form::hidden('is_from_card_print', 1) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<select class="patient_full_name form-control" style="width:100%;" name="patient_full_name" id="patient_full_name"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::select('group_id',$insurance_groups_select,'',['class' => 'form-control', 'id' => 'insurance_groups']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
{{ Form::select('insurance_family', $insurance_family_select, '', ['class' => 'form-control', 'id' => 'insurance_family']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
@if(isset($criteria))
|
||||
<p>{{ __('insurance_members.search_criteria') }} : <code>{{ $criteria }}</code> <a href="{{ route('insurance_card_print_index') }}">{{ __('insurance_members.clear_search') }}</a></p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<button type="submit" class="btn btn-success pull-right"><span class="glyphicon glyphicon-search"></span> {{ __('insurance_members.search') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
|
||||
<hr>
|
||||
|
||||
{{ Form::open(['method' => 'POST', 'route' => 'print_insurance_cards', 'target' => "_blank", 'id' =>'print_form']) }}
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped color-bordered-table success-bordered-table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_members.patient_number') }}</th>
|
||||
<th>{{ __('insurance_members.name') }}</th>
|
||||
<th>{{ __('insurance.premium') }}</th>
|
||||
<th>{{ __('insurance_members.group_name') }}</th>
|
||||
<th>{{ __('insurance_members.family') }}</th>
|
||||
<th>{{ __('insurance_members.relationship_to_head') }}</th>
|
||||
<th>{{ __('insurance_members.patient_category') }}</th>
|
||||
<th>{{ __('insurance.plan') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($insurance_members as $insurance_member)
|
||||
<tr>
|
||||
<td><input type="checkbox" name="checked_members[]" value="{{ $insurance_member->id }}" /></td>
|
||||
<td>{{ $insurance_member->number }}</td>
|
||||
<td>{!! insurance_flag($insurance_member->patient_id) !!}</td>
|
||||
<td>{{ ugandan_shillings($insurance_member->premium) }}</td>
|
||||
<td>{{ $insurance_groups[$insurance_member->group_id] ?? 'N/A' }}</td>
|
||||
<td>{{ $insurance_family[$insurance_member->family_id] ?? 'N/A' }}</td>
|
||||
<td>{{ $relations[$insurance_member->relationship_to_head] ?? 'N/A' }}</td>
|
||||
<td>{{ $patient_categories[$insurance_member->category_id] ?? 'N/A' }}</td>
|
||||
<td>{{ $plans[$insurance_member->chi_plan] ?? 'N/A' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::submit('Print Selected Cards', ['class' => 'btn btn-rounded btn-success', 'id' => 'print_cards']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</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/select2/select2.min.js') }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#print_cards').hide();
|
||||
|
||||
$('#insurance_groups').select2({
|
||||
placeholder: "-- Select Group --"
|
||||
});
|
||||
|
||||
$('#insurance_family').select2({
|
||||
placeholder: "-- Select Family --"
|
||||
});
|
||||
|
||||
$('.patient_full_name').change(function() {
|
||||
let id = $('#patient_full_name').val();
|
||||
$('#patient_id').val(id);
|
||||
}).select2({
|
||||
placeholder: "<?php echo 'Search by patient name or number' ?>",
|
||||
ajax: {
|
||||
url: '/search_insured_patient_by_name_or_number',
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.first_name + " " + item.last_name + " ("+ item.number + ") " + item.phone,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
|
||||
$("input[type=checkbox]").on("click", function () {
|
||||
var count = $("input[type=checkbox]:checked").length;
|
||||
if (count < 5) { // we only want to allow 10 to be checked here.
|
||||
$("input[type=checkbox]").removeAttr("disabled");
|
||||
} else {
|
||||
$("input[type=checkbox]").prop("disabled","disabled");
|
||||
// disable all checkboxes
|
||||
$("input[type=checkbox]:checked").removeAttr("disabled");
|
||||
}
|
||||
|
||||
if(count > 0) {
|
||||
$('#print_cards').show();
|
||||
} else {
|
||||
$('#print_cards').hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
<!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('public/uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'CHI Membership Card - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
th{
|
||||
font-weight: bolder;
|
||||
position: absolute;
|
||||
/* color: #fff; */
|
||||
}
|
||||
|
||||
td{
|
||||
padding-top: 5px;
|
||||
/* color: #fff; */
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.front_card{
|
||||
/* background: url("{{ asset('uploads/insurance_members/card-background.png') }}") no-repeat center; */
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
background-size: cover;
|
||||
height: 280px;
|
||||
width: 450px;
|
||||
border-radius: 3.5%;
|
||||
border-color: #0A0A0A;
|
||||
border: solid;
|
||||
line-height: 1.7 !important;
|
||||
}
|
||||
|
||||
.back_card{
|
||||
/* background-color: rgb(43, 116, 91); */
|
||||
padding: 10px;
|
||||
height: 280px;
|
||||
width: 450px;
|
||||
border-radius: 3.5%;
|
||||
border-color: #0A0A0A;
|
||||
border: solid;
|
||||
line-height: 1.2 !important;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 75px;
|
||||
width: 100px;
|
||||
}
|
||||
table
|
||||
{
|
||||
table-layout:fixed;
|
||||
width:95%;
|
||||
height: 95%;
|
||||
max-height: inherit;
|
||||
position:relative;
|
||||
overflow-y:auto;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="padding: 80px">
|
||||
<div class="front_card">
|
||||
<div class="row">
|
||||
<div class="col-4" style="margin-top: -15px;margin-left: 20px">
|
||||
<img class='logo' src="{{ asset("uploads/logo/logo-sm.png") }}" style='object-fit: contain; float:left;' alt="Stre@mine Logo">
|
||||
</div>
|
||||
<div class="col-7 text-right" style="font-size: 12px; line-height: 1.1 !important;">
|
||||
<b style="font-size: 20px !important">HEALTH CARE</b><br>ACCESS CARD
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding: 0px 20px 10px;">
|
||||
<div class="col-12">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="3"><b>NAME: </b>{{ strtoupper(get_full_name($insurance_member->patient_id, "id", "first_name", "last_name", "patients")) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><b>STRE@MLINE NUMBER: </b>{{ $insurance_member->number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>D.O.B: </b> {{ date('d/m/Y', strtotime($insurance_member->date_of_birth)) }}</td>
|
||||
<td> <b>GENDER: </b> {{ ($insurance_member->gender == 1) ? "M" : "F" }}</td>
|
||||
<td><b>NIN:</b>{{ $insurance_member->national_id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><b>SIGNATURE:</b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row float-right">
|
||||
<div class="col-6"></div>
|
||||
<div class="col-5">
|
||||
<img class='logo' src="{{ asset("uploads/logo/logo-sm.png") }}" style='object-fit: contain; float:right; bottom: 0px;' alt="Stre@mine Logo">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br><br><br>
|
||||
|
||||
<div class="back_card">
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td colspan="2" style="white-space: unset;"><b>GROUP NAME: </b>
|
||||
{{-- I excel in all things, at all times, with all people, under every circumstance. He that is in me is greater than he who is in the world. --}}
|
||||
|
||||
{{ get_name($insurance_member->group_id, "id", "name", "insurance_groups") }}
|
||||
</td>
|
||||
{{-- <td style="white-space: unset; ">{{ get_name($insurance_member->group_id, "id", "name", "insurance_groups") }}</td> --}}
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><b>HOST HEALTH FACILITY:</b> {{ $hospitalInfo->name }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<b>DISTRICT: </b>{{ ucwords(get_name($insurance_member->district_id, "id", "name", "districts")) }}
|
||||
|
||||
<b>VILLAGE: </b>{{ ucwords(get_name($insurance_member->village_id, "id", "name", "villages")) }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="padding: 15px">
|
||||
{{ getDNS1DBarcodePNGOtherOption(sprintf("%04u", $insurance_member->patient_id)) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="white-space: unset;"><p class="text-center">This card should only be used for identification at a Stre@mline network hospital.</p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<img class='logo' src="{{ asset("uploads/logo/logo-sm.png") }}" style='object-fit: contain; float:right; bottom: 0px;' alt="Stre@mine Logo">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<a href="/insurance_members/create" class="nav-item btn btn-success ti-plus"> {{ __('insurance_members.create_insurance_member') }}</a>
|
||||
<a href="/insurance_members/add_existing_patient_to_insurance" class="nav-item btn btn-success ti-plus"> {{ __('insurance_members.add_exisitng_patient') }}</a>
|
||||
<a href="/insurance_members/" class="nav-item btn btn-primary ti-eye"> {{ __('insurance_members.view_active_members') }}</a>
|
||||
<a href="/insurance_members/inactive" class="nav-item btn btn-danger ti-eye"> {{ __('insurance_members.view_inactive_members') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.css') }}" rel="stylesheet" type="text/css" />
|
||||
<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-4 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">{{ __('insurance.members_with_pre_existing_premiums') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-8 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">{{ __('insurance_reports.dashboard') }}</a></li>
|
||||
<li class="active">{{ __('insurance.members_with_pre_existing_premiums') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('flash::message')
|
||||
@include('errors.list')
|
||||
|
||||
<div class="row">
|
||||
<div class="panel panel-default col-md-3">
|
||||
<div class="panel-body">
|
||||
|
||||
{{ Form::open(['route' => 'insurance_members.pre_existing_premiums_report']) }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', __('insurance_reports.start_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('start_date', '', ['class'=>'form-control', 'readonly', 'id'=>'start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('end_date', __('insurance_reports.end_date')) }}
|
||||
<div class="input-group">
|
||||
{{ Form::text('end_date', '', ['class'=>'form-control', 'readonly', 'id'=>'end_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::submit(__('insurance_reports.submit'), ['class'=>'btn btn-success pull-right']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h4><label class="label label-info">{{ $search_text }}</label></h4>
|
||||
<h4>Report of members with cover cover whose premiums was not received through Stre@mline</h4>
|
||||
<br><br>
|
||||
<div class="table-responsive">
|
||||
<table id="table" class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{{ __('insurance_members.name') }}</th>
|
||||
<th>{{ __('insurance_members.premium_amount') }}</th>
|
||||
<th>{{ __('insurance_reports.start_date') }}</th>
|
||||
<th>{{ __('insurance_reports.end_date') }}</th>
|
||||
<th>{{ __('insurance_members.created_at') }}</th>
|
||||
<th>{{ __('insurance_members.created_by') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php $counter = 1 @endphp
|
||||
@foreach($pre_insurance_members as $member)
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
<td>{{ get_full_name($member->patient_id,"id", "first_name", "last_name", "patients") }} ({{get_name($member->patient_id,"id", "number", "patients")}})</td>
|
||||
<td>{{ ugandan_shillings($member->premium) }}</td>
|
||||
<td>{{ streamline_date($member->existing_premium_start_date) }}</td>
|
||||
<td>{{ streamline_date($member->existing_premium_end_date) }}</td>
|
||||
<td>{{ streamline_date($member->created_at) }}</td>
|
||||
<td>{{ get_full_name($member->created_by, "id", "first_name", "last_name", "users") }}</td>
|
||||
</tr>
|
||||
@php $counter++ @endphp
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Date Picker Plugin JavaScript -->
|
||||
<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 src="{{ asset('elite/bower_components/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$('#table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
|
||||
$('#end_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
|
||||
$('#start_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy'
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; 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('public/uploads/streamline/color/streamline_icon-02.png') }}">
|
||||
<title>{{ config('app.name', 'CHI Membership Card - Stre@mline') }}</title>
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="{{ asset('bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body {
|
||||
padding-top: 0px;
|
||||
padding-right: 10px;
|
||||
padding-bottom: 0px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 10px;
|
||||
height: 66.447mm;
|
||||
width: 105.348mm;
|
||||
border-radius: 3.5%;
|
||||
border-color: #0A0A0A;
|
||||
border: solid;
|
||||
line-height: 1.0 !important;
|
||||
font-size: 14px;
|
||||
margin-left: 14px;
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.bar-code img {
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@php $count = 1; @endphp
|
||||
@foreach ($insurance_members as $insurance_member)
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="container">
|
||||
<div class="card">
|
||||
<div class="row">
|
||||
<div class="col-4" style="margin-top: -12px;margin-left: 10px">
|
||||
<img style="margin-top: 10px; height: 50px; width: 100px;"
|
||||
src="{{ asset('uploads/logo/logo-sm.png') }}" alt="Stre@mine Logo">
|
||||
</div>
|
||||
<div class="col-7 text-right" style="font-size: 12px;line-height: 1.1 !important;">
|
||||
<b style="font-size: 25px !important">HEALTH CARE</b><br>ACCESS CARD
|
||||
</div>
|
||||
</div>
|
||||
<hr style="margin-top:3px; border-color:black;">
|
||||
<table class="col table-sm">
|
||||
<tr>
|
||||
<td colspan="2"><b>NAME: </b>{{ strtoupper(get_full_name($insurance_member->patient_id, "id", "first_name", "last_name", "patients")) }} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><b>STRE@MLINE NUMBER: </b>{{ $insurance_member->number }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>D.O.B: </b> {{ date('d-M-Y', strtotime($insurance_member->date_of_birth)) }}</td>
|
||||
<td> <b>GENDER: </b> {{ ($insurance_member->gender == 1) ? "M" : "F" }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><b>NIN:</b> {{ $insurance_member->national_id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@if (str_contains($insurance_member->category_name, 'CO-PAYMENT'))
|
||||
@php
|
||||
$words = explode(' ', $insurance_member->category_name);
|
||||
$last = array_slice($words,4);
|
||||
@endphp
|
||||
@if ($words[2] == '0')
|
||||
<td colspan="2"><b>OUTPATIENT CO-PAYMENT: {{ $words[2].' '.$words[3] }}</b> <br>{{ implode(' ', $last) }}, 5000 UGX after 10 visits.</td>
|
||||
@else
|
||||
<td colspan="2"><b>OUTPATIENT CO-PAYMENT: {{ $words[2].' '.$words[3] }}</b> <br>{{ implode(' ', $last) }}</td>
|
||||
@endif
|
||||
@else
|
||||
<td colspan="2"><b>Category:</b> {{ $insurance_member->category_name }}</td>
|
||||
@endif
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<img src="{{ asset($hospitalInfo->logo) }}" style='float:right; margin-bottom: 20px; max-height: 25px; max-width: 80px;'>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="container">
|
||||
<div class="card" style="font-size: 13px;">
|
||||
<table class="col-md-12">
|
||||
<tr>
|
||||
<td><b>GROUP NAME: </b>
|
||||
{{ get_name($insurance_member->group_id, "id", "name", "insurance_groups") }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding-top: 8px;"><b>HOST HEALTH FACILITY:</b> {{ $hospitalInfo->name }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding-top: 8px;">
|
||||
<b>DISTRICT: </b>{{ ucwords(get_name($insurance_member->district_id, "id", "name",
|
||||
"districts")) }}
|
||||
|
||||
<b>VILLAGE: </b>{{ ucwords(get_name($insurance_member->village_id, "id", "name",
|
||||
"villages")) }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="text-center" style="padding-top: 15px;">
|
||||
<div class="bar-code">
|
||||
{{ insuranceCardBarcode(sprintf("%04u", $insurance_member->patient_id)) }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="padding-top: 15px;">
|
||||
<p class="text-center">This card should only be used for identification at a Stre@mline
|
||||
network hospital.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<img src="{{ asset('uploads/logo/logo-sm.png') }}"
|
||||
style='float:right; margin-bottom: 20px; height: 25px; width: 80px;'
|
||||
alt="Stre@mine Logo">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($count != count($insurance_members))
|
||||
<br>
|
||||
@endif
|
||||
@php $count++; @endphp
|
||||
@endforeach
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user