mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
updated streamline-setup v2
This commit is contained in:
+152
@@ -0,0 +1,152 @@
|
||||
@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/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">Add Dependants to Category Patient</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="{{ route('discounts.index') }}">Discounts</a></li>
|
||||
<li class="active">Add Dependants to Category Patient</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<h4> Add Dependants</h4>
|
||||
{{ Form::open(['method'=>'post','url' => 'store_dependants_to_category_patient']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="form-group">
|
||||
{{ Form::label('patient_name', 'Patient Name:') }}
|
||||
<div class="row">
|
||||
<div class="col-sm-10">
|
||||
{{ Form::text('patient_name',$patient->first_name.' '.$patient->last_name,['class' => 'form-control', 'readonly']) }}
|
||||
{{ Form::hidden('patient_id',$patient->id,['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('patient_category', 'Patient Category:') }}
|
||||
<div class="row">
|
||||
<div class="col-sm-10">
|
||||
{{ Form::text('patient_category', get_name($patient_category_id, "id", "name", "patient_categories"), ['class' => 'form-control', 'readonly']) }}
|
||||
{{ Form::hidden('patient_category_id', $patient_category_id, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$existing_dependants_record_collection = \Streamline\Models\CategoryPatientDependant::where('main_patient_id', $patient->id)->get();
|
||||
$existing_record = null;
|
||||
$dependants_array = [];
|
||||
if (count($existing_dependants_record_collection) > 0) {
|
||||
$existing_record = $existing_dependants_record_collection->first();
|
||||
$dependants_array = explode(",", $existing_record->dependant_patient_ids);
|
||||
}
|
||||
@endphp
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('current_dependants', 'Current Dependants:') }}
|
||||
<div class="row">
|
||||
<div class="col-sm-10">
|
||||
<ul>
|
||||
@for($i=0; $i < count($dependants_array); $i++)
|
||||
<li><a href="{{ url('patients/') }}/{{$dependants_array[$i]}}">{{ get_full_name($dependants_array[$i], "id", "first_name", "last_name", "patients") }}</a></li>
|
||||
@endfor
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('dependenants', 'Dependants') }}
|
||||
<div class="row">
|
||||
<div class="col-sm-10">
|
||||
<select class="patient_name form-control" name="dependants[]" id="patient_name" multiple="true">
|
||||
@if (count($dependants_array) > 0)
|
||||
@for($i=0; $i < count($dependants_array); $i++)
|
||||
@if ($patient->id != $dependants_array[$i])
|
||||
<option value="{{$dependants_array[$i]}}" selected>{{ get_full_name($dependants_array[$i], "id", "first_name", "last_name", "patients") }}</option>
|
||||
@endif
|
||||
@endfor
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('start_date', 'Start Date') }}
|
||||
<div class="row">
|
||||
<div class="col-sm-10 input-group">
|
||||
{{ Form::text('start_date',(is_null($existing_record) || is_null($existing_record->start_date)) ? '' : \Carbon\Carbon::createFromFormat('Y-m-d', $existing_record->start_date)->format('d/m/Y'),['class' => 'form-control compulsory','readonly','id'=>'start_date']) }}
|
||||
<span class="input-group-addon"><i class="icon-calender"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4"></div>
|
||||
</div>
|
||||
|
||||
{{ Form::submit('Submit dependants', ['class' => 'btn btn-success']) }}
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@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 type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#dependants').select2({
|
||||
minimumInputLength: 3,
|
||||
allowClear: true,
|
||||
placeholder: "Select dependants"
|
||||
});
|
||||
|
||||
$('.patient_name').select2({
|
||||
placeholder: "Search name",
|
||||
ajax: {
|
||||
url: '/search_dependant_name',
|
||||
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
|
||||
}
|
||||
});
|
||||
|
||||
$('#start_date').datepicker({
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
endDate: new Date()
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+189
@@ -0,0 +1,189 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
@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">{{ __('discounts.patient_category_discounts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('discounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('discounts.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('discounts.index') }}"><i class="fa fa-eye"></i> {{ __('discounts.view_discounts') }}</a></li>
|
||||
<li class="active"><i class="fa fa-plus"></i> {{ __('discounts.new_discount') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::open(['method'=>'post','route'=>'discounts.store']) }}
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="patient_category">{{ __('discounts.patient_category') }}</label>
|
||||
{{ Form::select('patient_category', $categories, '', ['class' => 'form-control col-sm-12 compulsory']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="pay_late">{{ __('discounts.pay_later') }}</label>
|
||||
<br>
|
||||
{{ Form::radio('pay_later', 1, false, ["required", 'id' => 'pay_later_yes','onclick' => 'setOptions()']) }} Yes
|
||||
{{ Form::radio('pay_later', 0, false, ["required", 'id' => 'pay_later_no', 'onclick' => 'setOptions()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group discount_div" style="display: none;">
|
||||
<label for="co_payment">{{ __('discounts.co_payment') }}</label>
|
||||
<br>
|
||||
{{ Form::radio('co_payment', 1, false, ['id' => 'co_payment_yes','onclick' => 'setCoPaymentOptions()']) }} Yes
|
||||
{{ Form::radio('co_payment', 0, false, ['id' => 'co_payment_no','onclick' => 'setCoPaymentOptions()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="display: none;" id="co_payment_share">
|
||||
<label for="co_payment_share">{{ __('discounts.co_payment_share') }}</label>
|
||||
{{ Form::number('co_payment_share',0,['class' => 'form-control', 'max' => '100']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group threshold_radios_div" style="display: none;">
|
||||
{{ Form::label('is_pay_later_threshold_discount','Does a patient have threshold amount') }}
|
||||
<br>
|
||||
{{ Form::radio('is_pay_later_threshold_discount', 1, false, ['id' => 'is_pay_later_threshold_discount_yes', 'onclick' => 'displayOfDiscountThresholdDivs()']) }} Yes
|
||||
{{ Form::radio('is_pay_later_threshold_discount', 0, false, ['id' => 'is_pay_later_threshold_discount_no', 'onclick' => 'displayOfDiscountThresholdDivs()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="set_threshold_div" style="display: none;">
|
||||
<div class="form-group">
|
||||
{{ Form::label('threshold_type','Threshold type') }}
|
||||
{{ Form::select('threshold_type', [''=>'--Select discount type','1'=>'Monthly threshold amount','2'=>'Yearly threshold amount'], '', ['class' => 'form-control compulsory', 'id' => 'threshold_type']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('threshold_amount','Threshold amount') }}
|
||||
{{ Form::number('threshold_amount', null, ['class' => 'form-control compulsory', 'id' => 'threshold_amount']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="discount">{{ __('discounts.discounts_percentage') }}</label>
|
||||
{{ Form::number('discount',0,['class' => 'form-control compulsory', 'max' => '100', 'min' => '0','onchange' => 'setDiscountPercentageOptions(this.value)']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="track_discount_div" style="display: none;">
|
||||
<label for="co_payment">Track Discounts</label>
|
||||
<br>
|
||||
{{ Form::radio('track_discounts', 1, false, ['id' => 'tracking_yes','onclick' => 'setTrackingOption()']) }} Yes
|
||||
{{ Form::radio('track_discounts', 0, false, ['id' => 'tracking_no','onclick' => 'setTrackingOption()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="display: none;" id="tracking_expense_account_div">
|
||||
<label for="tracking_expense_account">Expense Account</label>
|
||||
{{ Form::select('tracking_expense_account', $expense_accounts, null,['class' => 'form-control', 'id' => 'tracking_expense_account']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::submit('Save',['class'=>'btn btn-success'])}}
|
||||
{{ Form::reset('Cancel',['type'=>'reset','class'=>'btn btn-default'])}}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
function setOptions() {
|
||||
if (document.getElementById("pay_later_yes").checked) {
|
||||
$('.discount_div').show();
|
||||
$('.threshold_radios_div').show();
|
||||
$('#is_pay_later_threshold_discount_yes').attr('required', true);
|
||||
$('#is_pay_later_threshold_discount_no').attr('required', true);
|
||||
$('#co_payment_yes').attr('required', true);
|
||||
$('#co_payment_no').attr('required', true);
|
||||
}
|
||||
if (document.getElementById("pay_later_no").checked) {
|
||||
$('.discount_div').hide();
|
||||
$('.threshold_radios_div').hide();
|
||||
$('#is_pay_later_threshold_discount_yes').attr('required', false);
|
||||
$('#is_pay_later_threshold_discount_no').attr('required', false);
|
||||
$('#co_payment_yes').attr('required', false);
|
||||
$('#co_payment_no').attr('required', false);
|
||||
}
|
||||
}
|
||||
|
||||
function setCoPaymentOptions() {
|
||||
if (document.getElementById("co_payment_yes").checked) {
|
||||
$('#co_payment_share').show();
|
||||
}
|
||||
if (document.getElementById("co_payment_no").checked) {
|
||||
$('#co_payment_share').hide();
|
||||
}
|
||||
}
|
||||
|
||||
function setTrackingOption() {
|
||||
if (document.getElementById("tracking_yes").checked) {
|
||||
$('#tracking_expense_account_div').show();
|
||||
$('#tracking_expense_account').attr('required', true);
|
||||
}
|
||||
if (document.getElementById("tracking_no").checked) {
|
||||
$('#tracking_expense_account_div').hide();
|
||||
$('#tracking_expense_account').attr('required', false);
|
||||
}
|
||||
}
|
||||
|
||||
function displayOfDiscountThresholdDivs() {
|
||||
if (document.getElementById("is_pay_later_threshold_discount_yes").checked) {
|
||||
$('.set_threshold_div').show();
|
||||
$('#threshold_type').attr('required', true);
|
||||
$('#threshold_amount').attr('required', true);
|
||||
}
|
||||
if (document.getElementById("is_pay_later_threshold_discount_no").checked) {
|
||||
$('.set_threshold_div').hide();
|
||||
$('#threshold_type').attr('required', false);
|
||||
$('#threshold_amount').attr('required', false);
|
||||
}
|
||||
}
|
||||
|
||||
function setDiscountOption() {
|
||||
var selector = document.getElementById('threshold_type');
|
||||
var discountTypeValue = selector[selector.selectedIndex].value;
|
||||
|
||||
if (discountTypeValue == 1) {
|
||||
$('.discount_amount').hide();
|
||||
}
|
||||
|
||||
if (discountTypeValue == 2) {
|
||||
$('.discount_amount').show();
|
||||
}
|
||||
}
|
||||
|
||||
function setDiscountPercentageOptions(percentage) {
|
||||
if (percentage > 0) {
|
||||
$('#track_discount_div').show();
|
||||
$('#tracking_yes').attr('required', true);
|
||||
$('#tracking_no').attr('required', true);
|
||||
} else {
|
||||
$('#track_discount_div').hide();
|
||||
$('#tracking_yes').attr('required', false);
|
||||
$('#tracking_no').attr('required', false);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+192
@@ -0,0 +1,192 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-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">{{ __('discounts.patient_category_discounts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('discounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('discounts.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('discounts.index') }}"><i class="fa fa-eye"></i> {{ __('discounts.view_discounts') }}</a></li>
|
||||
<li class="active"><i class="fa fa-pencil"></i> {{ __('discounts.edit_discount') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="white-box">
|
||||
{{ Form::model($discount, ['method' => 'PUT', 'route' => ['discounts.update',$discount], 'data-toggle' => 'validator']) }}
|
||||
|
||||
{{ Form::hidden('id', $id) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="patient_category">{{ __('discounts.patient_category') }}</label>
|
||||
{{ Form::text('patient_category_text', $categories[$discount->patient_category] ?? 'Category Deleted', ['class' => 'form-control col-sm-12', 'readonly']) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="pay_late">{{ __('discounts.pay_later') }}</label>
|
||||
<br>
|
||||
{{ Form::radio('pay_later', 1, $discount->pay_later == 1, ["required", 'id' => 'pay_later_yes','onclick' => 'setOptions()']) }} Yes
|
||||
{{ Form::radio('pay_later', 0, $discount->pay_later == 0, ["required", 'id' => 'pay_later_no', 'onclick' => 'setOptions()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group discount_div" @if($discount->pay_later == 0) style="display: none;" @endif>
|
||||
<label for="co_payment">{{ __('discounts.co_payment') }}</label>
|
||||
<br>
|
||||
{{ Form::radio('co_payment', 1, $discount->co_payment == 1, ['id' => 'co_payment_yes','onclick' => 'setCoPaymentOptions()']) }} Yes
|
||||
{{ Form::radio('co_payment', 0, $discount->co_payment == 0, ['id' => 'co_payment_no','onclick' => 'setCoPaymentOptions()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" @if($discount->co_payment == 0) style="display: none;" @endif id="co_payment_share">
|
||||
<label for="co_payment_share">{{ __('discounts.co_payment_share') }}</label>
|
||||
{{ Form::number('co_payment_share',$discount->co_payment_share ?? 0,['class' => 'form-control', 'max' => '100']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group threshold_radios_div" @if($discount->pay_later == 0) style="display: none;" @endif>
|
||||
{{ Form::label('is_pay_later_threshold_discount','Does a patient have threshold amount') }}
|
||||
<br>
|
||||
{{ Form::radio('is_pay_later_threshold_discount', 1, !is_null($discount->threshold_type), ['id' => 'is_pay_later_threshold_discount_yes', 'onclick' => 'displayOfDiscountThresholdDivs()']) }} Yes
|
||||
{{ Form::radio('is_pay_later_threshold_discount', 0, is_null($discount->threshold_type), ['id' => 'is_pay_later_threshold_discount_no', 'onclick' => 'displayOfDiscountThresholdDivs()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="set_threshold_div" @if($discount->threshold_type == 0) style="display: none;" @endif>
|
||||
<div class="form-group">
|
||||
{{ Form::label('threshold_type','Threshold type') }}
|
||||
{{ Form::select('threshold_type', [''=>'--Select discount type','1'=>'Monthly threshold amount','2'=>'Yearly threshold amount'], $discount->threshold_type, ['class' => 'form-control compulsory', 'id' => 'threshold_type']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ Form::label('threshold_amount','Threshold amount') }}
|
||||
{{ Form::number('threshold_amount', $discount->threshold_amount, ['class' => 'form-control compulsory', 'id' => 'threshold_amount']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="discount">{{ __('discounts.discounts_percentage') }}</label>
|
||||
{{ Form::number('discount',$discount->discount,['class' => 'form-control compulsory', 'max' => '100', 'min' => '0','onchange' => 'setDiscountPercentageOptions(this.value)']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="track_discount_div" @if($discount->discount == 0) style="display: none;" @endif>
|
||||
<label for="track_discounts">Track Discounts</label>
|
||||
<br>
|
||||
{{ Form::radio('track_discounts', 1, !is_null($discount->tracking_expense_account), ['id' => 'tracking_yes','onclick' => 'setTrackingOption()']) }} Yes
|
||||
{{ Form::radio('track_discounts', 0, is_null($discount->tracking_expense_account), ['id' => 'tracking_no','onclick' => 'setTrackingOption()']) }} No
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" @if(is_null($discount->tracking_expense_account))style="display: none;" @endif id="tracking_expense_account_div">
|
||||
<label for="tracking_expense_account">Expense Account</label>
|
||||
{{ Form::select('tracking_expense_account', $expense_accounts, $discount->tracking_expense_account,['class' => 'form-control', 'id' => 'tracking_expense_account']) }}
|
||||
<div class="help-block with-errors"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ Form::submit('Save',['class'=>'btn btn-success'])}}
|
||||
{{ Form::reset('Cancel',['type'=>'reset','class'=>'btn btn-default'])}}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
function setOptions() {
|
||||
if (document.getElementById("pay_later_yes").checked) {
|
||||
$('.discount_div').show();
|
||||
$('.threshold_radios_div').show();
|
||||
$('#is_pay_later_threshold_discount_yes').attr('required', true);
|
||||
$('#is_pay_later_threshold_discount_no').attr('required', true);
|
||||
$('#co_payment_yes').attr('required', true);
|
||||
$('#co_payment_no').attr('required', true);
|
||||
}
|
||||
if (document.getElementById("pay_later_no").checked) {
|
||||
$('.discount_div').hide();
|
||||
$('.threshold_radios_div').hide();
|
||||
$('#is_pay_later_threshold_discount_yes').attr('required', false);
|
||||
$('#is_pay_later_threshold_discount_no').attr('required', false);
|
||||
$('#co_payment_yes').attr('required', false);
|
||||
$('#co_payment_no').attr('required', false);
|
||||
}
|
||||
}
|
||||
|
||||
function setCoPaymentOptions() {
|
||||
if (document.getElementById("co_payment_yes").checked) {
|
||||
$('#co_payment_share').show();
|
||||
}
|
||||
if (document.getElementById("co_payment_no").checked) {
|
||||
$('#co_payment_share').hide();
|
||||
}
|
||||
}
|
||||
|
||||
function setTrackingOption() {
|
||||
if (document.getElementById("tracking_yes").checked) {
|
||||
$('#tracking_expense_account_div').show();
|
||||
$('#tracking_expense_account').attr('required', true);
|
||||
}
|
||||
if (document.getElementById("tracking_no").checked) {
|
||||
$('#tracking_expense_account_div').hide();
|
||||
$('#tracking_expense_account').attr('required', false);
|
||||
}
|
||||
}
|
||||
|
||||
function displayOfDiscountThresholdDivs() {
|
||||
if (document.getElementById("is_pay_later_threshold_discount_yes").checked) {
|
||||
$('.set_threshold_div').show();
|
||||
$('#threshold_type').attr('required', true);
|
||||
$('#threshold_amount').attr('required', true);
|
||||
}
|
||||
if (document.getElementById("is_pay_later_threshold_discount_no").checked) {
|
||||
$('.set_threshold_div').hide();
|
||||
$('#threshold_type').attr('required', false);
|
||||
$('#threshold_amount').attr('required', false);
|
||||
}
|
||||
}
|
||||
|
||||
function setDiscountOption() {
|
||||
var selector = document.getElementById('threshold_type');
|
||||
var discountTypeValue = selector[selector.selectedIndex].value;
|
||||
|
||||
if (discountTypeValue == 1) {
|
||||
$('.discount_amount').hide();
|
||||
}
|
||||
|
||||
if (discountTypeValue == 2) {
|
||||
$('.discount_amount').show();
|
||||
}
|
||||
}
|
||||
|
||||
function setDiscountPercentageOptions(percentage) {
|
||||
if (percentage > 0) {
|
||||
$('#track_discount_div').show();
|
||||
$('#tracking_yes').attr('required', true);
|
||||
$('#tracking_no').attr('required', true);
|
||||
} else {
|
||||
$('#track_discount_div').hide();
|
||||
$('#tracking_yes').attr('required', false);
|
||||
$('#tracking_no').attr('required', false);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
|
||||
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
@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">{{ __('discounts.patient_category_discounts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('discounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('discounts.finance_home') }}</a></li>
|
||||
<li class="active"><i class="fa fa-eye"></i>{{ __('discounts.view_discounts') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
|
||||
{{ Form::open(['route' => 'discounts.store_edited_insured_drugs','data-toggle'=>'validator']) }}
|
||||
{{ Form::hidden('patient_category_id', $patient_category_id) }}
|
||||
|
||||
<h3>Drugs covered by {{ get_name($patient_category_id, 'id', 'name', 'patient_categories') }}</h3>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered color-bordered-table success-bordered-table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Drug Name</th>
|
||||
<th>Is Not Covered</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($drugs as $drug)
|
||||
@php
|
||||
$patient_category_coverage = explode(",", $drug->patient_category_coverage);
|
||||
$is_drug_covered = in_array($patient_category_id, $patient_category_coverage);
|
||||
@endphp
|
||||
<tr>
|
||||
<td>{{ $drug->name }}</td>
|
||||
<td>
|
||||
@if($is_drug_covered)
|
||||
{{ Form::hidden('current_covered[]', $drug->id) }}
|
||||
@endif
|
||||
|
||||
{{ Form::checkbox('is_covered[]', $drug->id, $is_drug_covered, ['class' => 'item_checkbox']) }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ Form::button(__('patients.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
|
||||
{{ Form::button(__('patients.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
|
||||
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
|
||||
<script src="{{ asset('elite/bower_components/datatables/jquery.dataTables.min.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('.table').DataTable({
|
||||
dom: 'Bfrtip',
|
||||
pageLength: 100
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Executable
+65
@@ -0,0 +1,65 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-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">{{ __('discounts.patient_category_discounts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('discounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('discounts.finance_home') }}</a></li>
|
||||
<li><a href="{{ route('discounts.index') }}"><i class="fa fa-eye"></i> {{ __('discounts.view_discounts') }}</a></li>
|
||||
<li class="active"><i class="fa fa-trash"></i> {{ __('discounts.inactive_discounts') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('discounts.patient_category') }}</th>
|
||||
<th>{{ __('discounts.discount') }}</th>
|
||||
<th>{{ __('discounts.pay_late') }}</th>
|
||||
<th class="text-center">{{ __('discounts.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(count($discounts) > 0)
|
||||
@foreach($discounts as $discount)
|
||||
<tr>
|
||||
<td>{{ $categories[$discount->patient_category] }}</td>
|
||||
<td>{{ $discount->discount }}</td>
|
||||
<td>{{ $discount->pay_later == 1 ? "Yes" : "No" }}</td>
|
||||
<td>
|
||||
{{ Form::model($discount->id ,['method' => 'POST', 'route' => ['discounts.activate', $discount->id]]) }}
|
||||
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> Restore</button>
|
||||
{{ Form::close() }}
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr class="warning"><td class="center" colspan="5">{{ __('discounts.no_discounts_found') }}</td></tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ $discounts->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
@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">{{ __('discounts.patient_category_discounts') }}</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('discounts.home') }}</a></li>
|
||||
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('discounts.finance_home') }}</a></li>
|
||||
<li class="active"><i class="fa fa-eye"></i>{{ __('discounts.view_discounts') }}</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
@include('flash::message')
|
||||
<div class="table-responsive">
|
||||
<table class="table color-bordered-table success-bordered-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ __('discounts.patient_category') }}</th>
|
||||
<th>{{ __('discounts.discount') }}</th>
|
||||
<th>{{ __('discounts.co_payment') }}</th>
|
||||
<th>{{ __('discounts.pay_later') }}</th>
|
||||
<th>Threshold</th>
|
||||
<th>Add dependants</th>
|
||||
<th>{{ __('discounts.action') }}</th>
|
||||
<th>{{ __('discounts.action') }}</th>
|
||||
<th>{{ __('discounts.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(count($discounts) > 0)
|
||||
@foreach($discounts as $discount)
|
||||
<tr>
|
||||
<td>{{ $categories[$discount->patient_category] ?? "" }}</td>
|
||||
<td>{{ $discount->discount }}</td>
|
||||
<td>@if($discount->co_payment_share) {{ $discount->co_payment_share }} @else <label class='label label-danger'>{{ __('discounts.not_set') }}</label>@endif</td>
|
||||
<td>{{ $discount->pay_later == 1 ? "Yes" : "No" }}</td>
|
||||
<td>{{ is_null($discount->threshold_amount) ? "" : ugandan_shillings($discount->threshold_amount) }}</td>
|
||||
<td>
|
||||
@if(!is_null($discount->threshold_type))
|
||||
@if( Auth::user()->can('view-dependants-to-patient'))
|
||||
{{ Form::open(['method'=>'post','url' => 'discounts/add_dependants']) }}
|
||||
{{ Form::hidden('discount_id', $discount->id) }}
|
||||
{{ Form::submit('View dependants', ['class' => 'btn btn-primary btn-rounded btn-sm']) }}
|
||||
{{ Form::close() }}
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($discount->pay_later == 1 && Auth::user()->can('change-drugs-covered-by-category'))
|
||||
<a href="/discounts/edit_insured_drugs/{{ $discount->patient_category }}/" class="btn btn-info btn-sm"><i class="fa fa-pencil"></i> Edit Insured Drugs</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('discount-list'))
|
||||
<a href="/discounts/{{ $discount->id }}/edit/" class="btn btn-info btn-sm"><i class="fa fa-pencil"></i> {{ __('discounts.edit') }}</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if(Auth::user()->can('discount-list'))
|
||||
{{ Form::model($discount->id ,['method' => 'DELETE', 'route' => ['discounts.destroy', $discount->id]]) }}
|
||||
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want to remove this patient discount?')"><i class="fa fa-trash"></i> {{ __('discounts.delete') }}</button>
|
||||
{{ Form::close() }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr class="warning"><td class="center" colspan="8">{{ __('discounts.no_discounts_found') }}</td></tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ $discounts->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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',
|
||||
order: [[3, 'desc']],
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
@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-6 col-md-4 col-sm-4 col-xs-12">
|
||||
<h4 class="page-title">Patient Category Dependants</h4>
|
||||
</div>
|
||||
<div class="col-lg-6 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li class="active">Patient Category Dependants</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
<h4> Showing patients for {{ $patient_discount->threshold_type == 1 ? "Monthly" : "Yearly" }} Discount <font color="blue">{{ get_name($patient_discount->patient_category, "id", "name", "patient_categories") }}, registered on {{ streamline_date($patient_discount->created_on) }}</font></h4>
|
||||
<div class="table-responsive">
|
||||
<table class="table color-table success-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Patient Name</th>
|
||||
<th>Threshold Amount</th>
|
||||
<th>Current Balance</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if(count($patient_category_patients) > 0)
|
||||
@foreach($patient_category_patients as $patient)
|
||||
<tr>
|
||||
<td>
|
||||
<b>Main patient:</b><br>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ url('patients/') }}/{{ $patient->id }}">{{ $patient->first_name }} {{ $patient->last_name }} ({{$patient->number}})</a>
|
||||
</li>
|
||||
</ul>
|
||||
@php
|
||||
$existing_dependants_record_collection = \Streamline\Models\CategoryPatientDependant::where('main_patient_id', $patient->id)->get();
|
||||
$existing_record = null;
|
||||
$dependants_array = [];
|
||||
if (count($existing_dependants_record_collection) > 0) {
|
||||
$existing_record = $existing_dependants_record_collection->first();
|
||||
$dependants_array = explode(",", $existing_record->dependant_patient_ids);
|
||||
echo "<b>Dependants</b>";
|
||||
}
|
||||
@endphp
|
||||
<ul>
|
||||
@for($i=0; $i < count($dependants_array); $i++)
|
||||
<li><a href="{{ url('patients/') }}/{{$dependants_array[$i]}}">{{ get_full_name($dependants_array[$i], "id", "first_name", "last_name", "patients") }} ({{ get_name($dependants_array[$i], "id", "number", "patients")}})</a></li>
|
||||
@endfor
|
||||
</ul>
|
||||
</td>
|
||||
<td>{{ ugandan_shillings($patient_discount->threshold_amount) }}</td>
|
||||
<td>
|
||||
{{ ugandan_shillings(get_balance_from_category_threshold($patient->id)) }}
|
||||
</td>
|
||||
<td>
|
||||
@if( Auth::user()->can('view-dependants-to-patient') && count($dependants_array) > 0)
|
||||
<a href="{{ url('view_dependants_to_category_patient') }}/{{ $patient->id }}" class="btn btn-info"><i class="fa fa-eye"></i> View dependants</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if( Auth::user()->can('add-dependants-to-patient'))
|
||||
{{ Form::open(['method'=>'post','url' => 'discounts/add_dependants_to_category_patient']) }}
|
||||
{{ Form::hidden('patient_id', $patient->id) }}
|
||||
{{ Form::hidden('patient_category', $patient_discount->patient_category) }}
|
||||
{{ Form::hidden('patient_discount_id', $patient_discount->id) }}
|
||||
{{ Form::submit('Add dependants', ['class' => 'btn btn-primary']) }}
|
||||
{{ Form::close() }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr class="warning"><td class="center" colspan="9">No records found</td></tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<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',
|
||||
order: [[3, 'desc']],
|
||||
pageLength: 100,
|
||||
buttons: [
|
||||
'copy', 'csv', 'excel', 'pdf', 'print'
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
@extends('layouts.main')
|
||||
|
||||
@push('styles')
|
||||
<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">List of dependants</h4>
|
||||
</div>
|
||||
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('home') }}">Dashboard</a></li>
|
||||
<li><a href="{{ route('discounts.index') }}">Discounts</a></li>
|
||||
<li class="active">List of dependants</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="white-box">
|
||||
|
||||
@include('flash::message')
|
||||
|
||||
@if(!is_null($dependants_record))
|
||||
<h4> List of dependants for <font color="blue">{{ $patient->first_name }} {{ $patient->last_name }} {{ $patient->number }} <strong>({{ get_name($dependants_record->patient_category_id, "id", "name", "patient_categories") }})</strong></font></h4>
|
||||
|
||||
@php
|
||||
$dependants_array = explode(",", $dependants_record->dependant_patient_ids);
|
||||
@endphp
|
||||
<ul>
|
||||
@for($i=0; $i < count($dependants_array); $i++)
|
||||
<li><a href="{{ url('patients/') }}/{{$dependants_array[$i]}}">{{ get_full_name($dependants_array[$i], "id", "first_name", "last_name", "patients") }} ({{ get_name($dependants_array[$i], "id", "number", "patients")}})</a></li>
|
||||
@endfor
|
||||
</ul>
|
||||
@else
|
||||
<font style="color: red; font-size: 18px;"><strong>There are no recorded dependants for this patient </strong></font>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('elite/bower_components/select2/select2.min.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#dependants').select2({
|
||||
placeholder: "Select dependants"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
|
||||
Reference in New Issue
Block a user