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:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Saluran yang ditanda bermasalah oleh admin DUN. Satu rekod = satu
|
||||
* saluran (sppm.saluran) yang sedang bermasalah.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('saluran_bermasalah', function (Blueprint $table) {
|
||||
$table->id();
|
||||
// Rujukan ke pangkalan data sppm (tiada FK sebenar merentas DB)
|
||||
$table->unsignedBigInteger('saluran_id')->unique();
|
||||
$table->unsignedBigInteger('pusat_mengundi_id')->index();
|
||||
$table->unsignedBigInteger('dun_id')->index();
|
||||
$table->string('catatan', 500)->nullable();
|
||||
$table->foreignId('dilapor_oleh_user_id')->constrained('users');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('saluran_bermasalah');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user