Dr-Panel/resources/views/exports/surgery-centers-pdf.blade.php

50 lines
2.1 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.surgery_centers.title') }}</h1>
<div class="subtitle">{{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d') }}</div>
<table>
<thead>
<tr>
<th class="col-num">#</th>
<th>{{ __('surgery_centers.fields.name') }}</th>
<th>{{ __('surgery_centers.fields.phone') }}</th>
<th>{{ __('surgery_centers.fields.contact_person') }}</th>
<th>{{ __('surgery_centers.fields.address') }}</th>
</tr>
</thead>
<tbody>
@foreach ($records as $index => $item)
<tr>
<td class="col-num">{{ $index + 1 }}</td>
<td>{{ $item->name }}</td>
<td>{{ $item->phone ?: '-' }}</td>
<td>{{ $item->contact_person ?? '-' }}</td>
<td>{{ $item->address ?? '-' }}</td>
</tr>
@endforeach
</tbody>
</table>
<div class="footer">
{{ __('navigation.surgery_centers.title') }} &mdash; {{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d H:i') }}
</div>
</body>
</html>