Flag saluran bermasalah + pautan Call/WhatsApp

- 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>
This commit is contained in:
Saufi
2026-07-11 03:55:20 +08:00
parent 57c20353c7
commit 322687c1d1
11 changed files with 400 additions and 3 deletions

View File

@@ -3,10 +3,22 @@
namespace App\Models\Sppm;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Saluran extends Model
{
protected $connection = 'sppm';
protected $table = 'saluran';
protected $guarded = [];
public function pusatMengundi(): BelongsTo
{
return $this->belongsTo(PusatMengundi::class, 'pusat_mengundi_id');
}
public function assignments(): HasMany
{
return $this->hasMany(PetugasAssignment::class, 'saluran_id');
}
}