51 lines
2.2 KiB
PHP
51 lines
2.2 KiB
PHP
<!DOCTYPE html>
|
|
<html dir="rtl" lang="fa">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
* { font-family: 'tahoma', sans-serif; }
|
|
body { font-size: 12px; direction: rtl; margin: 0; padding: 0; color: #333; }
|
|
h1 { font-size: 16px; text-align: center; margin-bottom: 4px; color: #1e40af; font-weight: bold; }
|
|
.subtitle { text-align: center; color: #6b7280; font-size: 10px; margin-bottom: 14px; }
|
|
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
|
|
th { background-color: #1e40af; color: #ffffff; padding: 7px 8px; text-align: right; font-size: 11px; font-weight: bold; border: 1px solid #1e3a8a; }
|
|
th.col-num { text-align: center; width: 30px; }
|
|
td { padding: 6px 8px; border: 1px solid #e5e7eb; font-size: 11px; text-align: right; }
|
|
td.col-num { text-align: center; }
|
|
tr:nth-child(even) td { background-color: #f9fafb; }
|
|
.footer { margin-top: 14px; text-align: center; font-size: 9px; color: #9ca3af; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>{{ __('navigation.prescriptions.title') }}</h1>
|
|
<div class="subtitle">{{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d') }}</div>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th class="col-num">#</th>
|
|
<th>{{ __('prescriptions.fields.patient') }}</th>
|
|
<th>{{ __('prescriptions.fields.doctor') }}</th>
|
|
<th>{{ __('prescriptions.fields.issue_date') }}</th>
|
|
<th>{{ __('prescriptions.fields.content') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($records as $index => $item)
|
|
<tr>
|
|
<td class="col-num">{{ $index + 1 }}</td>
|
|
<td>{{ $item->patientRecord?->full_name ?? '-' }}</td>
|
|
<td>{{ $item->doctor ?? '-' }}</td>
|
|
<td>{{ $item->issue_date ?? '-' }}</td>
|
|
<td>{{ strip_tags($item->content ?? '-') }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="footer">
|
|
{{ __('navigation.prescriptions.title') }} — {{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d H:i') }}
|
|
</div>
|
|
</body>
|
|
</html>
|