This commit is contained in:
2025-05-28 22:11:41 +05:00
parent 10e6a6bbed
commit 72745e6360
3 changed files with 5 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ class ApiTesterController extends Controller
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{ "idSeria": "I-AS", "idNo": "314567", "clientType": "recipient", "cardMaskNumber": "993403******3258", "expDate": "07/49", "fromDate" : "01.01.2020", "toDate" : "09.05.2025" }',
CURLOPT_POSTFIELDS => '{ "idSeria": "I-AH", "idNo": "152304", "clientType": "recipient", "cardMaskNumber": "993403******8088", "expDate": "02/34", "fromDate" : "01.01.2020", "toDate" : "09.05.2025" }',
CURLOPT_HTTPHEADER => [
'Authorization: Basic dGJ1c2VyOlFBWndzeDEyMw==',
'Content-Type: application/json',

View File

@@ -144,14 +144,14 @@ class DownloadCardTransaction extends Action
{
$mpdf = new Mpdf;
// Write HTML content
// Write HTML content...
$html = Blade::render('orders.cards.card-transaction.download-card-transaction', [
'data' => $data,
]);
$mpdf->WriteHTML($html);
// Save the PDF to a file
// Save the PDF to a file...
$mpdf->Output($fileDest, \Mpdf\Output\Destination::FILE);
}
}

View File

@@ -6,10 +6,9 @@
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>{{ $data->depName }}</p>
<p>МФО: <strong>{{ $data->mfo }}</strong></p>
<p>Н/к: <strong>101301000408</strong></p>
<p>BAB: <strong>{{ $data->mfo }}</strong></p>
<p>S/b: <strong>ÝOK</strong></p>
<div class="section">
<p>Текущая дата: <strong>{{ now()->format('H:i, d.m.Y') }}</strong></p>