Merged in izzati-feat-format-notis-lelong-baru-30jun (pull request #40)

Izzati feat format notis lelong baru 30jun
This commit is contained in:
izzati zulkifli
2024-07-08 02:40:42 +00:00
28 changed files with 1865 additions and 96 deletions
+1
View File
@@ -13,6 +13,7 @@ class Lelong extends Model
protected $fillable = [
'tarikh_lelong',
'masamula_lelong',
'masatamat_lelong',
'kali',
'harga_emas_asas',
+40
View File
@@ -0,0 +1,40 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class LelongBidderTemp extends Model
{
use HasFactory;
protected $table = 'lelongbidder_temp';
protected $fillable = [
'user_id',
'lelongbid_id',
'nama_bidder',
'hargabida',
'notelbimbit',
'nilaimarhun',
'cajlelong',
'status_bidder',
'status_payment',
'masa_bidaan'
];
public function lelongbid() {
return $this->hasOne(LelongBid::class,'id', 'lelongbid_id');
}
public function payment()
{
return $this->hasOne(Payment::class, 'lelongbid_id', 'lelongbid_id')->where('remark', '<>', '');
}
public function scanjual() {
return $this->hasOne(ScanJual::class, 'lelongbid_id', 'lelongbid_id');
}
}