feat: improve print views, SQLite config, and file upload performance
This commit is contained in:
@@ -139,6 +139,26 @@
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.surgery-type {
|
||||
position: absolute;
|
||||
top: 37.5%;
|
||||
right: 48%;
|
||||
font-size: 13pt;
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.surgery-center {
|
||||
position: absolute;
|
||||
top: 23.5%;
|
||||
right: 22%;
|
||||
font-size: 14pt;
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.print-toolbar { display: none !important; }
|
||||
.page-body { padding: 0 !important; min-height: unset !important; }
|
||||
@@ -227,18 +247,16 @@
|
||||
}
|
||||
$surgeryTextClass = str_replace('patient-name', 'surgery-text', $nameClass);
|
||||
|
||||
$dateStr = $prescription->issue_date ?? '';
|
||||
if ($dateStr && preg_match('/^\d{4}-\d{2}-\d{2}/', $dateStr)) {
|
||||
try {
|
||||
$dateStr = \Morilog\Jalali\Jalalian::fromCarbon(\Carbon\Carbon::parse($dateStr))->format('Y/m/d');
|
||||
} catch (\Exception $e) {}
|
||||
}
|
||||
@endphp
|
||||
|
||||
<div class="{{ $nameClass }}">{{ $patientName }}</div>
|
||||
<div class="patient-date">{{ $dateStr }}</div>
|
||||
<div class="patient-date">{{ $surgeryDate }}</div>
|
||||
<div class="{{ $surgeryTextClass }}">{{ $patientName }}</div>
|
||||
<div class="surgery-date-center">{{ $dateStr }}</div>
|
||||
<div class="surgery-type">سپتورینوپلاستی</div>
|
||||
<div class="surgery-date-center">{{ $surgeryDate }}</div>
|
||||
@if($centerName)
|
||||
<div class="surgery-center">{{ $centerName }}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user