DONE: add allowance payout trace for admin, improve UI on voting side, increase pagination number

This commit is contained in:
ISMAIL MASSERAN
2026-04-28 11:44:02 +08:00
parent b08232731e
commit 76ae46f8d9
17 changed files with 913 additions and 76578 deletions
+15
View File
@@ -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');
}
}