add umur and jawatan sekarang for calon

This commit is contained in:
nurafrinaalimi16
2025-04-21 13:43:21 +08:00
parent 2dfc52c8ed
commit 64c8ff436c
5 changed files with 90 additions and 0 deletions
@@ -0,0 +1,34 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddUmurToNomineeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nominee', function (Blueprint $table) {
//
$table->integer('umur')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nominee', function (Blueprint $table) {
//
$table->dropColumn('umur');
});
}
}
@@ -0,0 +1,34 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddJawatanSekarangToNomineeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('nominee', function (Blueprint $table) {
//
$table->string('jawatan_sekarang')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('nominee', function (Blueprint $table) {
//
$table->dropColumn('jawatang_sekarang');
});
}
}
@@ -20,6 +20,16 @@
<input type="text" name="unit" class="form-control" required />
</div>
<div class="form-group">
<label for="unit">Umur</label>
<input type="text" name="umur" class="form-control" required />
</div>
<div class="form-group">
<label for="unit">Jawatan Sekarang</label>
<input type="text" name="jawatan_sekarang" class="form-control" required />
</div>
<div class="form-group">
<label for="education">Taraf Pendidikan</label>
<input type="text" name="education" class="form-control" placeholder="(Optional)" />
@@ -27,6 +27,16 @@
<input type="text" name="unit" class="form-control" :value="nominee.unit" required/>
</div>
<div class="form-group">
<label for="umur">Umur</label>
<input type="text" name="umur" class="form-control" :value="nominee.umur" required/>
</div>
<div class="form-group">
<label for="jawatan_sekarang">Jawatan Sekarang</label>
<input type="text" name="jawatan_sekarang" class="form-control" :value="nominee.jawatan_sekarang" required/>
</div>
<div class="form-group">
<label for="education">Taraf Pendidikan</label>
<input type="text" name="education" class="form-control" :value="nominee.education" placeholder="(Optional)" />
@@ -93,6 +93,8 @@
<div class="detail-section">
<span><b> Nama : </b>{{ nomineeViewed.name }}</span>
<span><b> Unit : </b>{{ nomineeViewed.unit }}</span>
<span><b> Umur : </b>{{ nomineeViewed.umur }}</span>
<span><b> Jawatan Sekarang : </b>{{ nomineeViewed.jawatan_sekarang }}</span>
<span> <b>Taraf Pendidikan :</b> </span>
<ol>
<li v-for="(item, index) in nomineeViewed.education" :key="index">{{ item }}</li>