'date', 'biaya_final' => 'decimal:2', 'status' => 'boolean', 'authorized_status' => 'boolean', 'authorized_at' => 'datetime', ]; // Relationship with Penawaran public function penawaran() { return $this->belongsTo(PenawaranTender::class, 'penawaran_id'); } public function permohonan(){ return $this->belongsTo(Permohonan::class, 'permohonan_id'); } // Relationship with Region public function region() { return $this->belongsTo(Region::class); } // Relationship with User (for authorized_by) public function authorizedBy() { return $this->belongsTo(User::class, 'authorized_by'); } }