wip
This commit is contained in:
@@ -57,6 +57,10 @@ class DownloadCardTransaction extends Action
|
||||
if ($data->errCode != 0) {
|
||||
return ActionResponse::danger($data->message);
|
||||
}
|
||||
|
||||
info($data);
|
||||
|
||||
// $this->generateFile($data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,4 +123,11 @@ class DownloadCardTransaction extends Action
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate file
|
||||
*
|
||||
* @param ResponseTypes\AzatApiClientInfoAllResponse $data
|
||||
*/
|
||||
public function generateFile($data) {}
|
||||
}
|
||||
|
||||
@@ -57,9 +57,9 @@ class NovaMenuRepo
|
||||
|
||||
MenuGroup::make(__('Card department'), [
|
||||
MenuItem::resource(CardOrder::class)->name(__('Order new card')),
|
||||
MenuItem::resource(CardTransaction::class),
|
||||
MenuItem::resource(CardRequisite::class),
|
||||
MenuItem::resource(CardPin::class),
|
||||
MenuItem::resource(CardTransaction::class),
|
||||
])->collapsedByDefault(),
|
||||
|
||||
MenuGroup::make(__('International payments'), [
|
||||
|
||||
12
ok.html
Normal file
12
ok.html
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
$printLocation = "/var/www/sirk/backend/storage/app/public/tickets/{$booking->orderId}.pdf";
|
||||
$url = route('booking-ticket', ['q' => $request->q]);
|
||||
|
||||
$result = Process::run("/home/ubuntu/chrome-linux/chrome --headless --print-to-pdf=$printLocation $url --no-sandbox");
|
||||
|
||||
if ($result->successful()) {
|
||||
return redirect("https://atchylyksirk.gov.tm/storage/tickets/{$booking->orderId}.pdf");
|
||||
} else {
|
||||
return back();
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
body {font-family: DejaVu Sans, sans-serif; font-size: 12px; color: #000; margin: 40px; } h1, h2, h3 {margin: 0; padding: 0; } p {margin: 4px 0; } .title {font-weight: bold; font-size: 16px; margin-top: 10px; } .section {margin-top: 20px; } table {width: 100%; border-collapse: collapse; margin-top: 10px; } th, td {border: 1px solid #999; padding: 6px; text-align: left; font-size: 11px; } th {background-color: #f0f0f0; } .summary {margin-top: 20px; } strong {font-weight: bold; } </style>
|
||||
</head>
|
||||
<body>
|
||||
<p><strong>FM0</strong></p>
|
||||
<p>{{ $transactoin->depName }}</p>
|
||||
<p>Н/к: <strong>101301000408</strong></p>
|
||||
|
||||
<div class="section">
|
||||
<p>Текущая дата: <strong>15/05/2025 17:52:59</strong></p>
|
||||
<p class="title">ВЫПИСКА ПО СЧЕТУ КЛИЕНТА №9341304011</p>
|
||||
<p>Ф.И.О. владельца счета: <strong>MYRATLYÝEW DÖWRAN AŞYRMUHAMMEDOWIÇ</strong></p>
|
||||
<p>Исходящий остаток: <strong>7.73</strong></p>
|
||||
<p>Входящий остаток: <strong>361.92</strong></p>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Дата операции</th>
|
||||
<th>Дата транз.</th>
|
||||
<th>Карточка</th>
|
||||
<th>Тип операции</th>
|
||||
<th>Место провед. транзакции</th>
|
||||
<th>Валюта транз.</th>
|
||||
<th>Сумма в валюте транзакции</th>
|
||||
<th>Сумма в валюте карт-счета, 934</th>
|
||||
<th>Остаток карт-счета, 934</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- Fill rows here -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="summary">
|
||||
<p>Обороты за период:</p>
|
||||
<p>(+) поступило: <strong>6 225.65</strong></p>
|
||||
<p>(-) списано: <strong>6 579.84</strong></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user