fix ui janasimulasi

This commit is contained in:
Amir
2022-07-28 14:05:26 +08:00
parent c10d435e86
commit 72bb8d4c27
2 changed files with 7 additions and 2 deletions
+4 -2
View File
@@ -4,6 +4,7 @@ namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Tetapan;
use Carbon\Carbon;
class TetapanSeeder extends Seeder
{
@@ -14,10 +15,11 @@ class TetapanSeeder extends Seeder
*/
public function run()
{
$currentdate = Carbon::now();
$currentdate = $currentdate->toDateString();
Tetapan::create([
'tetap_tarikh_lelong' => '2022-07-26',
'tetap_tarikh_lelong' => $currentdate,
'kali' => '1',
'cajlelong' => '3'
@@ -84,6 +84,8 @@
</div>
</div>
<script>
var date = '<?php echo $currentDate; ?>';
$('#caw').select2({
width: '100%',
placeholder: "Pilih Cawangan",
@@ -91,6 +93,7 @@
});
$(document).ready(function () {
document.getElementById('tarikh_lelong').setAttribute("min", date);
$("input[name=fasa]").change(function(){
if($("#fasa1").is(':checked')){