DONE: add allowance payout trace for admin, improve UI on voting side, increase pagination number
This commit is contained in:
@@ -23,5 +23,20 @@ class AllowanceClaimCode extends Model
|
||||
'expires_at' => 'datetime',
|
||||
'used_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function election()
|
||||
{
|
||||
return $this->belongsTo(Election::class);
|
||||
}
|
||||
|
||||
public function voter()
|
||||
{
|
||||
return $this->belongsTo(Voter::class);
|
||||
}
|
||||
|
||||
public function usedByAdmin()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'used_by_admin_id');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user