uppercese category qoshildi

This commit is contained in:
2026-04-06 20:23:17 +05:00
parent 551dcb390c
commit 4d0f9b6309
27 changed files with 236 additions and 102 deletions

View File

@@ -82,7 +82,8 @@ class ConclusionController extends Controller
$qrPath = storage_path('app/public/attachments/' . $dbType . $orderId . '/qr.png');
if (!file_exists($qrPath)) {
Storage::makeDirectory('public/attachments/' . $dbType . $orderId);
$qrContent = url(($orderType === 'AUTO' ? 'auto' : 'estate') . '/show/' . $orderId);
$cleanType = strtolower($orderType);
$qrContent = route('qr.verify', ['type' => $cleanType, 'id' => $orderId]);
$qrImage = QrCode::format('png')->size(150)->generate($qrContent);
file_put_contents($qrPath, $qrImage);
}
@@ -123,6 +124,11 @@ class ConclusionController extends Controller
'created_at' => now(),
'updated_at' => now(),
]);
DB::table($table)->where('id', $orderId)->update([
'status' => \App\Enums\OrderStatusEnum::FINISHED->name,
'updated_at' => now(),
]);
}
$route = $orderType === 'AUTO' ? 'auto.show' : 'estate.show';