Memperbarui UI/UX

This commit is contained in:
2026-06-07 23:32:06 +07:00
parent f7479770e6
commit 76a8782409
47 changed files with 4378 additions and 685 deletions
+19 -2
View File
@@ -14,15 +14,32 @@ class TempatIbadah extends Model
protected $fillable = [
'nama_tempat',
'jenis_tempat_ibadah',
'kontak_person',
'nama_pengurus',
'kontak_pengurus',
'radius_meter',
'lat',
'lng',
'alamat'
'alamat',
'password',
'kode_lapor',
];
protected static function booted()
{
static::creating(function ($tempatIbadah) {
if (empty($tempatIbadah->kode_lapor)) {
$tempatIbadah->kode_lapor = \Illuminate\Support\Str::random(10);
}
});
}
public function penerima_bantuan()
{
return $this->hasMany(PenerimaBantuan::class, 'id_tempat_ibadah');
}
public function users()
{
return $this->hasMany(User::class, 'id_tempat_ibadah');
}
}