modified assests

This commit is contained in:
2026-06-15 11:25:16 +07:00
parent 3f115866d9
commit e96d58dcb4
1218 changed files with 1162 additions and 339502 deletions

View File

@@ -26,7 +26,7 @@
</li>
@endif
<li style=" position: absolute; top: 0; right: 50px;">
<a href="{{url('sample/search?kword=&sample_date=today')}}"><b>{{__('sidebar.view_sample')}}</b></a>
</li>
@@ -56,12 +56,12 @@
$fontName = ($configures->where('atrribute_code', 'FONT_NAME_FOR_RESULT')->pluck('assigned_attribute_value')->first());
$fontSize = ($configures->where('atrribute_code', 'FONT_SIZE_FOR_RESULT')->pluck('assigned_attribute_value')->first());
$resultColor = ($configures->where('atrribute_code', 'COLOR_FOR_RESULT')->pluck('assigned_attribute_value')->first());
$lineHeight = ($configures->where('atrribute_code', 'LINE_HEIGHT_FOR_RESULT_HEADER')->pluck('assigned_attribute_value')->first());
@endphp
@if(!empty($lineHeight))
p{
line-height 0 !important;
@@ -71,7 +71,7 @@
line-height: {{$lineHeight}} !important;
}
@endif
@font-face {
font-family: 'result_font';
/*src: url('{{url(env("APP_URL").'storage/assets/fonts/'.(empty($fontName) ? 'times_new_roman.ttf':$fontName))}}');*/
@@ -84,7 +84,7 @@
/*display:swap;*/
}
.result-page-color{
color: {{empty($resultColor) ? '#0000ff' : $resultColor}};
}
@@ -107,9 +107,9 @@
.result-font, .name{
/*font-family: "{{(empty($fontName) ? 'Time New Roman' : 'result_font')}}";*/
font-family: '{{empty($fontName) ? 'Times New Roman': $fontName }}';
}
._department-sample-info tr td{
padding-top: 0px !important;
padding-bottom: 0px !important;
@@ -274,7 +274,7 @@
@page {
margin: 1cm 1cm 0;
}
@media print {
@@ -284,7 +284,7 @@
margin-left: 0.2cm !important;
margin-bottom: 0cm;
}
body,
page[size="A4"] {
margin-left: 0cm !important;
@@ -309,15 +309,15 @@
vertical-align: top;
padding-bottom: 0px;
}
@if(Auth::id()==1)
#footer .page{
counter-increment:listCounter;
}
#footer .page:after{
content: counter(listCounter);
}
@endif
@@ -352,11 +352,11 @@
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Time New Roman' : 'label_header_font' ): 'Khmer OS Siemreap')}}";
font-size: {{empty($fontSizeHeader) ? '13pt' : $fontSizeHeader}};
}
#footer{
font-family: "{{(App::isLocale('en') ? 'Times New Roman' : 'Khmer OS Siemreap')}}";
}
.font-changable-base-on-localize{
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
}
@@ -508,7 +508,7 @@
<td width="30%" style="padding-bottom:2px; line-height:20px;" align="left">: {!!$samplePhysician->name_en!!}</td>
<td class="header-label-title-color" width="25%" style="padding-bottom:2px; line-height:20px; font-weight:bold;">{{__('sample.table_sample_source')}}</td>
<td width="25%" style="line-height:20px;" align="left">: {{@$sample->sample_source->name_en}}</td>
</tr>
<tr>
@@ -586,8 +586,8 @@
<td class="header-label-title-color font-changable-base-on-localize" width="15%" style="line-height:20px;">{{__('អាយុ/Age')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="21%" style="line-height:20px;" align="left">: {{\App\Helpers\Helpers::getAge($sample->patient->dob, $sample->admission_date)}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="13%" style="line-height:20px;">{{__('ភេទ/Sex')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="13%" style="line-height:20px;">{{__('ភេទ/Sex')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="20%" style="line-height:20px;" align="left">: {{$sample->patient->gender==1 ? 'Male':'Female'}}</td>
</tr>
@@ -595,10 +595,10 @@
<td class="header-label-title-color font-changable-base-on-localize" style="line-height:20px;">{{__('Patient ID')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="line-height:20px;" align="left">: {{$sample->patient->patient_uuid}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-top:2px; line-height:20px;">{{__('Lab ID')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-top:2px; line-height:20px;" align="left">: {{$sample->sample_number}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;">{{__('ទូរស័ព្ទ/Phone')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;" align="left">: {{$sample->patient->phone_number}}</td>
@@ -609,7 +609,7 @@
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;">{{__('Requested Date')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="line-height:20px;" align="left">: {{date('d-M-Y H:i',strtotime($sample->collected_date))}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;">{{__('Analysis Date')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;" align="left">: {{date('d-M-Y H:i');}}</td>
</tr>
@@ -674,8 +674,8 @@
<span class="page" style="position:fixed; bottom:12px; right: 10px; font-weight:bold;"></span>
</td>
</tr>
<tr class="result-footer-signature" id="dyn-signature" style="display:none;">
<td class="text-center text-no-wrap" style="font-size:15px" valign="bottom">
{{__('sample.verify_by')}} .
@@ -700,12 +700,12 @@
<span class="page" style="position:fixed; bottom:12px; right: 10px; font-weight:bold;"></span>
</td>
</tr>
@if($labSettings->show_result_footer==1)
<tr>
<td colspan="3" id="footer_line" class="result-page-color" style="text-align:center; border-top:1px solid #000 !important; padding-top:0px; letter-spacing: -0.5px !important;">
@if($sample->lab_id!=22)
@if($sample->organization_id!=22)
<span style="line-height: 10px !important; font-size:12px">{{ app()->getLocale()=='kh' ? $labSettings->address_kh : $labSettings->address_en}} <br>
{{$labSettings->phone_number}} {{$labSettings->email}}</span><br>
@endif
@@ -725,16 +725,16 @@
@if($sample->is_printed==0)
printRecorder()
@endif
printJS({
printable: "presult-1",
type: "html"
});
setTimeout(function(){ window.location.href=sample_base_url }, 10000)
}
function changeLogoAndPrint(){
$('#dyn-logo, #def-logo').toggle();
$('#dyn-signature, #def-signature').toggle();
@@ -745,14 +745,14 @@
setTimeout(function(){ window.location.href=sample_base_url }, 10000)
}
document.getElementById("doPrinting__").addEventListener("click", printTest)
@if(!empty($labSettings->alternative_logo))
document.getElementById("change_logo_print").addEventListener("click", changeLogoAndPrint);
@endif
</script>
</script>

View File

@@ -32,12 +32,12 @@
</li>
@endif
<li style=" position: absolute; top: 0; right: 50px;">
<a href="{{url('sample/search?kword=&sample_date=today')}}"><b>{{__('sidebar.view_sample')}}</b></a>
</li>
</ul>
<span class="close-preview" data-dismiss="modal" title="Close"><i class="fa fa-times"></i></span>
</div>
@endif
@@ -46,7 +46,7 @@
<title>Result</title>
<meta name="viewport" content="width=device-width, initial-scale=.5, maximum-scale=12.0, minimum-scale=.25, user-scalable=yes">
<style>
@font-face {
font-family: 'KhmerOS_muollight';
src: url('{{url(env("APP_URL").'storage/assets/fonts/KhmerOS_muollight.ttf')}}');
@@ -63,12 +63,12 @@
$fontName = ($configures->where('atrribute_code', 'FONT_NAME_FOR_RESULT')->pluck('assigned_attribute_value')->first());
$fontSize = ($configures->where('atrribute_code', 'FONT_SIZE_FOR_RESULT')->pluck('assigned_attribute_value')->first());
$resultColor = ($configures->where('atrribute_code', 'COLOR_FOR_RESULT')->pluck('assigned_attribute_value')->first());
$lineHeight = ($configures->where('atrribute_code', 'LINE_HEIGHT_FOR_RESULT_HEADER')->pluck('assigned_attribute_value')->first());
@endphp
@if(!empty($lineHeight))
p{
line-height 0 !important;
@@ -78,9 +78,9 @@
line-height: {{$lineHeight}} !important;
}
@endif
@font-face {
font-family: 'result_font';
}
@@ -108,7 +108,7 @@
.result-font, .name{
font-family: '{{empty($fontName) ? 'Times New Roman': $fontName }}';
}
._department-sample-info tr td{
padding-top: 0px !important;
padding-bottom: 0px !important;
@@ -116,7 +116,7 @@
.result-font-size{
font-size: {{empty($fontSize) ? '13pt' : $fontSize}};
}
.KhmerOS {
@@ -138,7 +138,7 @@
width: 21cm;
display: block;
margin: 10px auto;
{{(request()->segment(1)!='shared' ? 'margin-left: 0cm !important;':'')}}
{{(request()->segment(1)!='shared' ? 'margin-left: 0cm !important;':'')}}
box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
padding: 0cm 1cm 1cm 1cm;
/*font-family: 'result_font';*/
@@ -270,7 +270,7 @@
@page {
margin: 1cm 1cm 0;
}
@media print {
@@ -283,11 +283,11 @@
content: content
}
}
body,
page[size="A4"] {
margin-left: 0cm !important;
@@ -312,15 +312,15 @@
vertical-align: top;
padding-bottom: 0px;
}
@if(Auth::id()==1)
#footer .page{
counter-increment:listCounter;
}
#footer .page:after{
content: counter(listCounter);
}
@endif
@@ -355,11 +355,11 @@
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Time New Roman' : 'label_header_font' ): 'Khmer OS Siemreap')}}";
font-size: {{empty($fontSizeHeader) ? '13pt' : $fontSizeHeader}};
}
#footer{
font-family: "{{(App::isLocale('en') ? 'Times New Roman' : 'Khmer OS Siemreap')}}";
}
.font-changable-base-on-localize{
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
}
@@ -371,7 +371,7 @@
<input type="hidden" name="verify" id="verify" value="">
<page size="A4">
<table border="0" width="100%">
<thead>
<tr id="def-logo">
@@ -403,7 +403,7 @@
</tr>
<tr>
<td class="text-top text-center" style="padding-top:0" valign="top">
<div style="font-size: 13.5pt; text-transform: uppercase; font-weight: bold;" class="header-label-title-color header-label-font">{{__('sample.print_title')}}</div>
</td>
@@ -514,7 +514,7 @@
<td width="30%" style="padding-bottom:2px; line-height:20px;" align="left">: {!!$samplePhysician->name_en!!}</td>
<td class="header-label-title-color" width="25%" style="padding-bottom:2px; line-height:20px; font-weight:bold;">{{__('sample.table_sample_source')}}</td>
<td width="25%" style="line-height:20px;" align="left">: {{@$sample->sample_source->name_en}}</td>
</tr>
<tr>
@@ -592,8 +592,8 @@
<td class="header-label-title-color font-changable-base-on-localize" width="15%" style="line-height:20px;">{{__('អាយុ/Age')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="21%" style="line-height:20px;" align="left">: {{\App\Helpers\Helpers::getAge($sample->patient->dob, $sample->admission_date)}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="13%" style="line-height:20px;">{{__('ភេទ/Sex')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="13%" style="line-height:20px;">{{__('ភេទ/Sex')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" width="20%" style="line-height:20px;" align="left">: {{$sample->patient->gender==1 ? 'Male':'Female'}}</td>
</tr>
@@ -601,10 +601,10 @@
<td class="header-label-title-color font-changable-base-on-localize" style="line-height:20px;">{{__('Patient ID')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="line-height:20px;" align="left">: {{$sample->patient->patient_uuid}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-top:2px; line-height:20px;">{{__('Lab ID')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-top:2px; line-height:20px;" align="left">: {{$sample->sample_number}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;">{{__('ទូរស័ព្ទ/Phone')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;" align="left">: {{$sample->patient->phone_number}}</td>
@@ -615,7 +615,7 @@
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;">{{__('Requested Date')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="line-height:20px;" align="left">: {{date('d-M-Y H:i',strtotime($sample->collected_date))}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;">{{__('Analysis Date')}}</td>
<td class="header-label-title-color font-changable-base-on-localize" style="padding-bottom:2px; line-height:20px;" align="left">: {{date('d-M-Y H:i');}}</td>
</tr>
@@ -656,7 +656,7 @@
<td class="text-center text-no-wrap" style="width: 6.7cm; font-size:15px">
{{__('sample.report_date')}} : {{date('d-M-Y H:i')}} </td>
</tr>
<tr class="result-footer-signature" id="def-signature">
<td class="text-center text-no-wrap" style="font-size:15px" valign="bottom">
{{__('sample.verify_by')}}
@@ -680,8 +680,8 @@
<span class="page" style="position:fixed; bottom:12px; right: 10px; font-weight:bold;"></span>
</td>
</tr>
<tr class="result-footer-signature" id="dyn-signature" style="display:none;">
<td class="text-center text-no-wrap" style="font-size:15px" valign="bottom">
{{__('sample.verify_by')}} .
@@ -706,12 +706,12 @@
<span class="page" style="position:fixed; bottom:12px; right: 10px; font-weight:bold;"></span>
</td>
</tr>
@if($labSettings->show_result_footer==1)
<tr>
<td colspan="3" id="footer_line" class="result-page-color" style="text-align:center; border-top:1px solid #000 !important; padding-top:0px; letter-spacing: -0.5px !important;">
@if($sample->lab_id!=22)
@if($sample->organization_id!=22)
<span style="line-height: 10px !important; font-size:12px">{{ app()->getLocale()=='kh' ? $labSettings->address_kh : $labSettings->address_en}} <br>
{{$labSettings->phone_number}} {{$labSettings->email}}</span><br>
@endif
@@ -731,16 +731,16 @@
@if($sample->is_printed==0)
printRecorder()
@endif
printJS({
printable: "presult-1",
type: "html"
});
setTimeout(function(){ window.location.href=sample_base_url }, 10000)
}
function changeLogoAndPrint(){
$('#dyn-logo, #def-logo').toggle();
$('#dyn-signature, #def-signature').toggle();
@@ -751,14 +751,14 @@
setTimeout(function(){ window.location.href=sample_base_url }, 10000)
}
document.getElementById("doPrinting__").addEventListener("click", printTest)
@if(!empty($labSettings->alternative_logo))
document.getElementById("change_logo_print").addEventListener("click", changeLogoAndPrint);
@endif
</script>