Merge branch 'atie' into 'main'

update view image cdm page account

See merge request online-sistem1/lelong!365
This commit is contained in:
Nur Izzati Zulkifli
2023-01-17 03:14:18 +00:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -609,7 +609,7 @@ class AccountController extends Controller
$fileresit = FileResit::where('lelong_id', $lelong_id)
->where('user_id', $user_id)
->where('kodcaw', $caw_code)
->where('photo_type', '=', '2')
// ->where('photo_type', '=', '2')
->get();
// dd($fileresit);
foreach ($fileresit as $index => $itemresit) {
+2 -2
View File
@@ -41,9 +41,9 @@ class ResitPhotoService
$fileresit_id = $resit->id;
// dd($fileresit_id);;
$photo_type_name = $resit->photo_type === 1 ? '1' : '2';
// $photo_type_name = $resit->photo_type === 1 ? '1' : '2';
$directory = $user_id.$DS.$lelong_id.$DS.$photo_type_name.$DS;
$directory = $user_id.$DS.$lelong_id.$DS;
// dd($directory);
$imageExtension = $resit->file_type;
// dd($imageExtension);