This commit is contained in:
meusinfirmary
2025-06-17 10:05:09 +09:00
parent 7b85e1e376
commit 564a18ce8f
2 changed files with 12 additions and 12 deletions

View File

@ -115,7 +115,7 @@ class DriversController extends Controller
];
$rulesInput = [
"ktp_photo" => "nullable|string", // required
"nik" => "nullable|integer", // required
"nik" => "nullable", // required
"fullname" => "required|string|min:3|max:125",
"phone" => "required|integer|not_in:0",
"email" => "nullable|email", // required
@ -240,7 +240,7 @@ class DriversController extends Controller
"fulladdress" => $req->fulladdress,
"password" => Hash::make("0" . $req->phone),
"role" => Users::ROLE_VENDOR_DRIVER,
"is_driver" => 1,
"is_driver" => 0,
"status" => 1,
"crt" => $now,
"crt_by" => $req->auth->uid,

View File

@ -141,7 +141,7 @@
<div class="col-6">
<div class="mb-0">
<label for="add-nik" class="col-form-label">ID Number</label>
<input type="number" id="add-nik" class="form-control">
<input type="text" id="add-nik" class="form-control">
</div>
<div class="mb-0">
<label for="add-dob" class="col-form-label">Date of Birth</label>
@ -298,7 +298,7 @@
<div class="col-6">
<div class="mb-0">
<label for="edt-nik" class="col-form-label">ID Number</label>
<input type="number" id="edt-nik" class="form-control">
<input type="text" id="edt-nik" class="form-control">
</div>
<div class="mb-0">
<label for="edt-dob" class="col-form-label">Date of Birth</label>
@ -1283,8 +1283,8 @@
let fileSize = window.atob(pureDataURL).length // in Byte
// (fileSize/1000) + ' Kb'
$('#add-group_' + x + '_spinner').addClass('d-none');
$('#add-' + x + '-status').html('Compressed')
$('#add-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>')
// $('#add-' + x + '-status').html('Compressed')
// $('#add-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>')
$('#add-' + x + '-img').attr('src', res.data)
$('#add-' + x + '-img').removeClass('d-none')
$('#add-' + x + '-base64').val(res.data)
@ -1361,7 +1361,7 @@
DUploadAdd.readFile(reader, newFile);
$('#add-' + x + '-filesize').html('')
$('#add-' + x + '-status').html('Loading on compressing...')
// $('#add-' + x + '-status').html('Loading on compressing...')
// $('#add-' + x + '-img').attr('src', '')
$('#add-' + x + '-base64').val('')
} else {
@ -1518,8 +1518,8 @@
let fileSize = window.atob(pureDataURL).length // in Byte
// (fileSize/1000) + ' Kb'
$('#edt-group_' + x + '_spinner').addClass('d-none');
$('#edt-' + x + '-status').html('Compressed')
$('#edt-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>')
// $('#edt-' + x + '-status').html('Compressed')
// $('#edt-' + x + '-filesize').html('<samp>(' + fileSize / 1000 + ' Kb)</samp>')
$('#edt-' + x + '-img').attr('src', res.data)
$('#edt-' + x + '-img').removeClass('d-none');
$('#edt-' + x + '-base64').val(res.data)
@ -1596,7 +1596,7 @@
DUploadEdt.readFile(reader, newFile);
$('#edt-' + x + '-filesize').html('')
$('#edt-' + x + '-status').html('Loading on compressing...')
// $('#edt-' + x + '-status').html('Loading on compressing...')
// $('#edt-' + x + '-img').attr('src', '')
$('#edt-' + x + '-base64').val('')
} else {