feat: initial project setup with Laravel 12 and Filament v4
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<!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.treatments.title') }}</h1>
|
||||
<div class="subtitle">{{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d') }}</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-num">#</th>
|
||||
<th>{{ __('treatments.fields.treatment_name') }}</th>
|
||||
<th>{{ __('treatments.fields.treatment_type') }}</th>
|
||||
<th>{{ __('treatments.fields.treatment_cost') }}</th>
|
||||
<th>{{ __('treatments.fields.descriptions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($records as $index => $item)
|
||||
<tr>
|
||||
<td class="col-num">{{ $index + 1 }}</td>
|
||||
<td>{{ $item->treatment_name }}</td>
|
||||
<td>{{ $item->treatment_type ?? '-' }}</td>
|
||||
<td>{{ $item->treatment_cost !== null ? number_format($item->treatment_cost) : '-' }}</td>
|
||||
<td>{{ $item->descriptions ?? '-' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="footer">
|
||||
{{ __('navigation.treatments.title') }} — {{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d H:i') }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user