102 lines
2.8 KiB
PHP
102 lines
2.8 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.users.title') }}</h1>
|
|
<div class="subtitle">{{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d') }}</div>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th class="col-num">#</th>
|
|
<th>{{ __('users.fields.name') }}</th>
|
|
<th>{{ __('users.fields.username') }}</th>
|
|
<th>{{ __('users.fields.roles') }}</th>
|
|
<th>{{ __('users.fields.created_at') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($records as $index => $user)
|
|
<tr>
|
|
<td class="col-num">{{ $index + 1 }}</td>
|
|
<td>{{ $user->name }}</td>
|
|
<td>{{ $user->username }}</td>
|
|
<td>{{ $user->roles->pluck('name')->join('، ') }}</td>
|
|
<td>{{ $user->getRawOriginal('created_at')
|
|
? \Morilog\Jalali\Jalalian::fromCarbon(\Carbon\Carbon::parse($user->getRawOriginal('created_at')))->format('Y/m/d H:i')
|
|
: '' }}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="footer">
|
|
{{ __('navigation.users.title') }} — {{ \Morilog\Jalali\Jalalian::now()->format('Y/m/d H:i') }}
|
|
</div>
|
|
</body>
|
|
</html>
|