added seprated method for withdraw and deposit
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ $title }}</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
font-family: Tahoma, Arial, sans-serif;
|
||||
margin: 24px;
|
||||
color: #111827;
|
||||
background: #fff;
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 8px;
|
||||
font-size: 20px;
|
||||
}
|
||||
.meta {
|
||||
margin-bottom: 20px;
|
||||
color: #6b7280;
|
||||
font-size: 12px;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 11px;
|
||||
}
|
||||
th, td {
|
||||
border: 1px solid #d1d5db;
|
||||
padding: 6px 8px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
th {
|
||||
background: #f3f4f6;
|
||||
font-weight: 700;
|
||||
}
|
||||
tr:nth-child(even) td {
|
||||
background: #fafafa;
|
||||
}
|
||||
.actions {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.actions button {
|
||||
background: #2563eb;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 8px 16px;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
}
|
||||
@media print {
|
||||
.actions { display: none !important; }
|
||||
body { margin: 12px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ $title }}</h1>
|
||||
<div class="meta">
|
||||
تاریخ تهیه: {{ $generatedAt }} |
|
||||
تعداد ردیف: {{ $rows->count() }}
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ردیف</th>
|
||||
<th>نام مشتری</th>
|
||||
<th>کد کاربر</th>
|
||||
<th>علت تراکنش</th>
|
||||
<th>مقدار (ریال)</th>
|
||||
<th>طلا</th>
|
||||
<th>شماره کارت</th>
|
||||
<th>شماره شبا</th>
|
||||
<th>شماره پیگیری</th>
|
||||
<th>وضعیت</th>
|
||||
<th>تاریخ ثبت</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse($rows as $index => $row)
|
||||
<tr>
|
||||
<td>{{ $index + 1 }}</td>
|
||||
<td>{{ $row->customer->name ?? '-' }}</td>
|
||||
<td>{{ $row->customer_id ?? '-' }}</td>
|
||||
<td>{{ $row->note ?? '-' }}</td>
|
||||
<td>{{ number_format((float) ($row->cash ?? 0)) }}</td>
|
||||
<td>{{ $row->gold ?? '-' }}</td>
|
||||
<td>{{ $row->bank_account->cart_number ?? '-' }}</td>
|
||||
<td>{{ $row->bank_account->shaba_number ?? '-' }}</td>
|
||||
<td>{{ $row->tracked_number ?? '-' }}</td>
|
||||
<td>{{ $row->sts_str ?? '-' }}</td>
|
||||
<td>
|
||||
@if($row->created_at)
|
||||
{{ \Hekmatinasser\Verta\Verta::instance($row->created_at)->format('Y/n/j H:i:s') }}
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="11">موردی یافت نشد</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="actions">
|
||||
<button type="button" onclick="window.print()">چاپ / ذخیره PDF</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
window.addEventListener('load', function () {
|
||||
setTimeout(function () { window.print(); }, 400);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user