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