resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 deletions
@@ -0,0 +1,233 @@
@extends('layouts.main')
@push('styles')
<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/icheck/skins/all.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">{{ __('service_items.add_service') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('service_items.dashboard') }}</a></li>
<li><a href="/service_items/">{{ __('service_items.services') }}</a></li>
<li class="active">{{ __('service_items.add_service') }}</li>
</ol>
</div>
</div>
@include('flash::message')
@include('clinical_data::service_items.menu')
<div class="row">
<div class="col-sm-12">
<div class="white-box">
@if (session()->has('streamline_setup'))
<h3><font color="blue">{{ __('service_items.streamline_setup') }}</font></h3>
{{ Form::open(['route' => 'service_items.store','data-toggle'=>'validator']) }}
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('name', __('service_items.service_name')) }}
{{ Form::text('name', '', ['class' => 'form-control compulsory']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('non_insured_price', __('service_items.non_insured_price')) }}
{{ Form::number('non_insured_price', '', ['class' => 'form-control compulsory']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('account_id', __('service_items.chart_account_name')) }}
{{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('description', __('service_items.description')) }}
{{ Form::textArea('description', '', ['class'=>'form-control', 'rows' => 4]) }}
</div>
<div class="form-group">
{{ Form::label('type_of_service',__('service_items.type_of_service')) }}
<br>
<div>
{{ Form::radio('type_of_service', 'Consultation', false, []) }} {{ __('service_items.consultation') }}<br>
{{ Form::radio('type_of_service', 'Co_Payment', false, []) }} {{ __('service_items.copayment') }}<br>
{{ Form::radio('type_of_service', 'Service', false, []) }} {{ __('service_items.service') }}<br>
</div>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6" style="background: #eceeef;">
<h4>{{ __('service_items.select_any_list') }}</h4>
@foreach ($services as $service)
<div class="form-group">
{{ Form::checkbox('selected_services[]', $service['Item_Name'], false) }} {{ $service['Item_Name'] }} &nbsp;&nbsp;
</div>
@endforeach
</div>
</div>
{{ Form::button(__('service_items.next'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('service_items.skip'),['type'=>'submit','name' => 'skip', 'value' => 'skip','class'=>'btn btn-default waves-effect waves-light m-r-10']) }}
@else
{{ Form::open(['route' => 'service_items.store','data-toggle'=>'validator']) }}
<div class="row">
<div class="col-md-6">
<div class="form-group">
{{ Form::label('name', __('service_items.service_name')) }}
{{ Form::text('name', '', ['class' => 'form-control compulsory']) }}
<div class="help-block with-errors"></div>
</div>
{{--
<div class="form-group">
{{ Form::label('attach_to_staff_name', __('service_items.attach_staff_name')) }}
<br>
<div>
&nbsp;{{ Form::radio('attach_to_staff_name', 1, false, ["id"=> "attach_staff_name", "onclick" => "show('attach_staff_name_div')"]) }} {{ __('service_items.yes') }}
&nbsp;{{ Form::radio('attach_to_staff_name', 0, false, ["id"=> "do_not_attach_staff","onclick" => "hide('attach_staff_name_div')"]) }} {{ __('service_items.no') }}
</div>
<div class="help-block with-errors"></div>
</div>
--}}
<div class="form-group" id="attach_staff_name_div" style="display: none;">
{{ Form::label('staff', 'Staff:') }}
{{ Form::select('user_id', $users_array, '', ['class' => 'form-control', 'id' => 'staff_id']) }}
</div>
<div class="form-group">
{{ Form::label('non_insured_price', 'Cash Price') }}
{{ Form::number('non_insured_price', '', ['class' => 'form-control compulsory', 'id' => 'non_insured_price']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('available', __('service_items.is_service_available')) }}&ensp;
{{ Form::radio('available', 1, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }} {{ __('service_items.yes') }} &nbsp;&nbsp;
{{ Form::radio('available', 0, false, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }} {{ __('service_items.no') }}
<div class="help-block with-errors"></div>
</div>
@php
$price_list_categories = \Streamline\Models\PriceListCategories::select('patient_category_id', 'id')->get();
@endphp
@foreach($price_list_categories as $record)
<div class="form-group">
{{ Form::label('non_insured_price', get_name($record->patient_category_id, 'id', 'name', 'patient_categories').' Price') }}
{{ Form::hidden('price_list_category_id[]', $record->id) }}
{{ Form::number('price_list_price[]', '', ['class'=>'form-control price_list_price']) }}
</div>
@endforeach
<div class="form-group">
{{ Form::label('account_id', __('service_items.chart_account_name')) }}
{{ Form::select('account_id', $chart_of_accounts, null, ['class'=>'form-control compulsory']) }}
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
{{ Form::label('description', __('service_items.description')) }}
{{ Form::textArea('description', '', ['class'=>'form-control', 'rows' => 4]) }}
</div>
<div class="form-group">
{{ Form::label('type_of_service',__('service_items.type_of_service')) }}
<br>
<div>
{{ Form::radio('type_of_service', 'Consultation', false, []) }} {{ __('service_items.consultation') }}<br>
{{ Form::radio('type_of_service', 'Co_Payment', false, []) }} {{ __('service_items.copayment') }}<br>
{{ Form::radio('type_of_service', 'Service', false, []) }} {{ __('service_items.service') }}<br>
</div>
<div class="help-block with-errors"></div>
</div>
</div>
</div>
{{ Form::button(__('service_items.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('service_items.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
@endif
{{ Form::close() }}
</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>
<!-- icheck -->
<script src="{{ asset('elite/bower_components/icheck/icheck.min.js') }}"></script>
<script src="{{ asset('elite/bower_components/icheck/icheck.init.js') }}"></script>
<script>
$('.table').DataTable({
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
});
function show(id) {
if (document.getElementById(id).style.display == 'none') {
document.getElementById(id).style.display = '';
}
}
function hide(id) {
document.getElementById(id).style.display = 'none';
}
</script>
<script type="text/javascript">
$(document).ready(function () {
$(".next,.submit-btn").click(function (e) { // make sure that all compulsory fields have been filled out
var empty_compulsory_fields = [];
$(".compulsory").each(function () {
if ($(this).val() == "") {
var textname = $(this).attr('name');
$(this).focus();
empty_compulsory_fields.push(textname);
$(this).css('border','1px solid #F08080');
}
});
/* check if the array containing empty compulsory fields is not empty then return false */
if (empty_compulsory_fields.length != 0) {
alert("Please fill in all compulsory fields");
console.log(empty_compulsory_fields);
e.preventDefault();
return false;
}
});
$('#non_insured_price').change(function(e) {
var non_insured_price = $(this).val();
if (non_insured_price > 0) {
$(".price_list_price").each(function () {
$(this).val(non_insured_price);
});
}
});
});
</script>
@endpush