diff --git a/app/Models/LelongBidMarhun.php b/app/Models/LelongBidMarhun.php index ecb0ed06..679f70ce 100644 --- a/app/Models/LelongBidMarhun.php +++ b/app/Models/LelongBidMarhun.php @@ -22,4 +22,8 @@ class LelongBidMarhun extends Model 'n_marhun', 'hargaasas', ]; + + public function pengesahan() { + return $this->hasOne(Pengesahan::class, 'lelongbidmarhun_id'); + } } diff --git a/database/migrations/2022_03_07_061858_create_pengesahan_table.php b/database/migrations/2022_03_07_061858_create_pengesahan_table.php index 17859029..97bd6523 100644 --- a/database/migrations/2022_03_07_061858_create_pengesahan_table.php +++ b/database/migrations/2022_03_07_061858_create_pengesahan_table.php @@ -25,6 +25,9 @@ class CreatePengesahanTable extends Migration $table->datetime('diminta_pada'); $table->integer('status')->default(0); //1 = terima, 2 = tangguh lelong $table->integer('status_ubah')->default(0); //1 = ubah mutu, 2 = tambah marhun, 3 = hapus marhun, 4 = ubah berat, 5 = ubah mutu & berat, 6 = tangguh lelong pc + $table->string('request_berat')->nullable(); + $table->string('request_karat')->nullable(); + $table->string('request_marhun')->nullable(); $table->timestamps(); }); diff --git a/resources/views/marhun/marhun.blade.php b/resources/views/marhun/marhun.blade.php index 5def0387..e3dd1738 100644 --- a/resources/views/marhun/marhun.blade.php +++ b/resources/views/marhun/marhun.blade.php @@ -114,6 +114,18 @@