- Halaman baharu "Saluran Bermasalah": senarai semua saluran dalam DUN (dengan KTM & telefonnya), tanda/buang tanda bermasalah berserta catatan; admin DUN terhad ke DUN sendiri, superadmin semua DUN - Dashboard: baris saluran bermasalah diserlahkan kuning berserta lencana BERMASALAH dan catatan - No. telefon KTM kini ada butang "📞 Call" (tel:) dan "WhatsApp" (wa.me, dinormalkan ke format 60xxxxxxxxx) di dashboard dan halaman saluran bermasalah Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
37 lines
813 B
PHP
37 lines
813 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Sppm\PusatMengundi;
|
|
use App\Models\Sppm\Saluran;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class SaluranBermasalah extends Model
|
|
{
|
|
protected $table = 'saluran_bermasalah';
|
|
|
|
protected $fillable = [
|
|
'saluran_id',
|
|
'pusat_mengundi_id',
|
|
'dun_id',
|
|
'catatan',
|
|
'dilapor_oleh_user_id',
|
|
];
|
|
|
|
public function saluran(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Saluran::class, 'saluran_id');
|
|
}
|
|
|
|
public function pusatMengundi(): BelongsTo
|
|
{
|
|
return $this->belongsTo(PusatMengundi::class, 'pusat_mengundi_id');
|
|
}
|
|
|
|
public function dilaporOleh(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class, 'dilapor_oleh_user_id');
|
|
}
|
|
}
|