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

@@ -21,7 +21,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>
@php
$configures = collect($labConfigures);
@@ -33,18 +33,18 @@
$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());
@endphp
.patient-info tr td{
/*font-family: '{{(empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader)}}' !important;*/
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
font-size:10px !important;
}
.font-changeable{
/*font-family: '{{(empty($fontName) ? 'Times New Roman':$fontName)}}' !important;*/
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
}
table td, table th{
padding: 3px !important; font-size:10pt !important;
}
@@ -119,7 +119,7 @@
margin: 0.5cm;
}
@media print {
body,
page[size="A4"] {
box-shadow: none;
@@ -148,7 +148,7 @@
position: fixed;
bottom: 0;
}
.font-changable{
/*font-family: "{{(App::isLocale('en') ? 'Times New Roman' : 'Khmer OS Siemreap')}}";*/
/*font-family: '{{(empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader)}}' !important;*/
@@ -169,18 +169,18 @@
.border-0{
border:none !important;
}
.font-changable{
/*font-family: "{{(App::isLocale('en') ? 'Times New Roman' : 'Khmer OS Siemreap')}}";*/
/*font-family: '{{(empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader)}}' !important;*/
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
}
.table-inv tr td{
font-size:11px !important;
}
</style>
<page size="A4">
<div style="width: 297mm; padding: 0px; background-image: linear-gradient(#fafafa, #fafafa); background-size: 1px 100%; background-repeat: no-repeat; background-position: 49.6% center;">
@@ -224,8 +224,8 @@
</tr>
<tr>
<td class="text-top text-center">
<div style="font-size: 11.5pt; font-weight: 700;" class="font-changeable">{{$sample->lab_id != 21 ? __('invoice.tittle') : 'Laboratory' }}</div>
<div style="font-size: 11.5pt; font-weight: 700;" class="font-changeable">{{$sample->organization_id != 21 ? __('invoice.tittle') : 'Organization' }}</div>
</td>
</tr>
<tr>
@@ -233,7 +233,7 @@
<table width="100%" class="patient-info font-changable" style="line-height: 15px !important;">
<tbody>
<tr>
<td class="text-left" style="font-size:10pt !important;" width="20%">{{$sample->lab_id != 21 ? __('invoice.form_invoice_number') : 'Reference No' }}</td>
<td class="text-left" style="font-size:10pt !important;" width="20%">{{$sample->organization_id != 21 ? __('invoice.form_invoice_number') : 'Reference No' }}</td>
<td class="text-left" style="font-size:10pt !important;" width="30%">: {{$invoice->invoice_code}}</td>
<td class="text-left" style="font-size:10pt !important;" width="20%">{{__('sample.table_sample_number')}}</td>
<td class="text-left" style="font-size:10pt !important;" width="30%">: {{$sample->sample_number}}</td>
@@ -291,7 +291,7 @@
<td style="padding:0 5px;" class="text-right font-changable">$ {{$invItem->unit_price}}</td>
</tr>
@endforeach
@for($i=$total; $i<=11; $i++)
<tr>
<td class=" text-center font-changable" style="padding:0 5px;">{{$i+1}}</td>
@@ -325,10 +325,10 @@
</tr>
<tr class="font-changable">
<td class="text-left border-0" colspan="2">
<span style="padding-left: {{ $sample->lab_id != 21 ? '70px' : '45px' }} !important;">
{{ $sample->lab_id != 21 ? __('invoice.received_by') : 'Lab. Tech' }}
<span style="padding-left: {{ $sample->organization_id != 21 ? '70px' : '45px' }} !important;">
{{ $sample->organization_id != 21 ? __('invoice.received_by') : 'Lab. Tech' }}
</span>
</td>
<td class="text-right border-0">{{__('invoice.table_net_cost_riel')}} :</td>
@@ -403,7 +403,7 @@
</tr>
<tr>
<td class="text-top text-center">
<div style="font-size: 11.5pt; font-weight: 700;" class="font-changeable">{{$sample->lab_id != 21 ? __('invoice.tittle') : 'Laboratory' }}</div>
<div style="font-size: 11.5pt; font-weight: 700;" class="font-changeable">{{$sample->organization_id != 21 ? __('invoice.tittle') : 'Organization' }}</div>
</td>
</tr>
@@ -412,7 +412,7 @@
<table width="100%" class="patient-info font-changable" style="line-height: 15px !important;">
<tbody>
<tr>
<td class="text-left" style="font-size:10pt !important;" width="20%">{{$sample->lab_id != 21 ? __('invoice.form_invoice_number') : 'Reference No' }}</td>
<td class="text-left" style="font-size:10pt !important;" width="20%">{{$sample->organization_id != 21 ? __('invoice.form_invoice_number') : 'Reference No' }}</td>
<td class="text-left" style="font-size:10pt !important;" width="30%">: {{$invoice->invoice_code}}</td>
<td class="text-left" style="font-size:10pt !important;" width="20%">{{__('sample.table_sample_number')}}</td>
<td class="text-left" style="font-size:10pt !important;" width="30%">: {{$sample->sample_number}}</td>
@@ -460,9 +460,9 @@
<td width="15%" class="text-center" style="width:110px !important;">{{__('invoice.form_qty')}}</td>
<td width="15%" class="text-center" style="width:110px !important;">{{__('invoice.form_unit_price')}}</td>
</tr>
@foreach($invoice->invoiceDetail->sortBy('weight') as $k=>$invItem)
<tr>
<td class=" text-center font-changable">{{$k+1}}</td>
<td class="font-changable">{{$invItem->test_name}}</td>
@@ -488,7 +488,7 @@
<td class="text-right border-0">{{__('invoice.table_total_cost')}} ($) :</td>
<td class="text-right bg-light"> {{number_format($invoice->total,2)}}</td>
</tr>
@if($invoice->is_hide_discount == 0)
<tr class="font-changable">
@@ -497,18 +497,18 @@
<td class="text-right bg-light"> {{ ($invoice->discount_type==1 ? $invoice->discount : number_format($invoice->discount,2))}}</td>
<!--<td class="text-right bg-light"> {{ ($invoice->discount_type==1 ? ($invoice->discount > 0? number_format($invoice->total * (1-($invoice->discount/100))) : 0) : number_format($invoice->discount,2))}}</td>-->
</tr>
<tr class="font-changable">
<td class="text-left border-0" colspan="2"></td>
<td class="text-right border-0">{{__('invoice.table_net_cost')}} :</td>
<td class="text-right bg-light"> {{number_format(($invoice->gross_total) ,2)}}</td>
</tr>
<tr class="font-changable">
<td class="text-left border-0" colspan="2">
<span style="padding-left: {{ $sample->lab_id != 21 ? '70px' : '45px' }} !important;">
{{ $sample->lab_id != 21 ? __('invoice.received_by') : 'Lab. Tech' }}
<span style="padding-left: {{ $sample->organization_id != 21 ? '70px' : '45px' }} !important;">
{{ $sample->organization_id != 21 ? __('invoice.received_by') : 'Lab. Tech' }}
</span>
</td>
@@ -516,13 +516,13 @@
<td class="text-right bg-light"> {{number_format((($invoice->gross_total) * ($invoice->exchange_rate <=0 ? $labSettings->exchange_rate : $invoice->exchange_rate)),2)}}</td>
</tr>
@else
<tr class="font-changable">
<td class="text-left border-0" colspan="2"></td>
<td class="text-right border-0">{{__('invoice.table_net_cost')}} :</td>
<td class="text-right bg-light"> {{number_format(($invoice->total) ,2)}}</td>
</tr>
<tr class="font-changable">
<td class="text-left border-0" colspan="2"><span style="padding-left: 70px !important;">{{__('invoice.received_by')}}</span></td>
<td class="text-right border-0">{{__('invoice.table_net_cost_riel')}} :</td>
@@ -573,8 +573,8 @@
setTimeout(function(){ window.location.href=sample_base_url }, 10000)
}
@if(!empty($labSettings->alternative_logo))
document.getElementById("change_logo_print").addEventListener("click", changeLogoAndPrint);
@endif
</script>
</script>

View File

@@ -8,7 +8,7 @@
<li style="display: inline-block;" class="print">
<a href="javascript:void(0)" onclick="printJS('presult-a4', 'html')" id="doPrinting"><i class="fa fa-print"></i>&nbsp;<b>{{__('invoice.print')}}</b></a>
</li>
</ul>
<span class="close-preview" data-dismiss="modal" title="Close"><i class="fa fa-times"></i></span>
</div>
@@ -17,7 +17,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>
@php
$configures = collect($labConfigures);
@@ -29,18 +29,18 @@
$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());
@endphp
.patient-info tr td{
/*font-family: '{{(empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader)}}' !important;*/
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
font-size:10px !important;
}
#print_invoice_modal_a4 .font-changeable{
/*font-family: '{{(empty($fontName) ? 'Times New Roman':$fontName)}}' !important;*/
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
}
#print_invoice_modal_a4 table td, #print_invoice_modal_a4 table th{
padding: 3px !important; font-size:10pt !important;
}
@@ -115,7 +115,7 @@
margin: 0.5cm;
}
#print_invoice_modal_a4 @media print {
body,
page[size="A4"] {
box-shadow: none;
@@ -144,7 +144,7 @@
position: fixed;
bottom: 0;
}
.font-changable{
/*font-family: "{{(App::isLocale('en') ? 'Times New Roman' : 'Khmer OS Siemreap')}}";*/
/*font-family: '{{(empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader)}}' !important;*/
@@ -168,18 +168,18 @@
.border-1{
border: 1px solid #ffffff !important;
}
.font-changable{
/*font-family: "{{(App::isLocale('en') ? 'Times New Roman' : 'Khmer OS Siemreap')}}";*/
/*font-family: '{{(empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader)}}' !important;*/
font-family: "{{(App::isLocale('en') ? (empty($fontNameHeader) ? 'Times New Roman':$fontNameHeader) : 'Khmer OS Siemreap')}}";
}
#print_invoice_modal_a4 .table-inv tr td{
font-size:11px !important;
}
p.value-pair {
position: relative;
width: 100%;
@@ -198,45 +198,45 @@
line-height: 0;
border-bottom: 2px dotted #858585;
}
</style>
<page size="A4">
<div style="width: 21cm; padding: 0px; background-image: linear-gradient(#fafafa, #fafafa); background-size: 1px 100%; background-repeat: no-repeat; background-position: 49.6% center;">
<?php
$grouped = [];
foreach($invoice->invoiceDetail->sortBy('weight') as $r=>$d)
{
$departmentId = $d->testSample->sample->department->name_en;
$sampleTypeId = $d->testSample->sample->name_en;
if (!isset($grouped[$departmentId])) {
$grouped[$departmentId] = [];
}
if (!isset($grouped[$departmentId][$sampleTypeId])) {
$grouped[$departmentId][$sampleTypeId] = [];
}
// Add the item to the appropriate group
$grouped[$departmentId][$sampleTypeId][] = $d->toArray();
}
?>
<div style="width: 100%; display: inline-block; clear: both; vertical-align: top;">
<table border="0" width="100%" style="font-size: 8pt !important;">
<thead>
<tr>
<td style="width:100%; text-align: center">
@if((!empty($sample->physician->logo)) && ($sample->lab_id!=22))
@if((!empty($sample->physician->logo)) && ($sample->organization_id!=22))
<img width="100%" class="rounded-0" src="{{url(env("APP_URL").'storage/images/physician/'.$sample->physician->logo)}}" />
@else
<table width="100%">
<tr>
<td style="width:70px; vertical-align: top;" class="text-center">
@@ -258,7 +258,7 @@
</tr>
</table>
@endif
</td>
</tr>
<tr>
@@ -335,7 +335,7 @@
@endforeach
@endforeach
@endforeach
@for($i=$total; $i<=19; $i++)
<tr>
<td style="padding:0 5px; padding-left:15px !important;" class="font-changable border-1"><i style="position: absolute;">&nbsp;</td>