Tampilan awal

This commit is contained in:
2026-06-05 18:34:30 +07:00
parent dfff1f18e9
commit f7479770e6
12 changed files with 824 additions and 5 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PenerimaBantuan extends Model
{
use HasFactory;
protected $table = 'penerima_bantuan';
protected $fillable = [
'id_tempat_ibadah',
'nik_kepala_keluarga',
'nomor_kk',
'nama_kepala_keluarga',
'jumlah_tanggungan',
'foto_kondisi_rumah',
'lat',
'lng',
'alamat'
];
public function tempat_ibadah()
{
return $this->belongsTo(TempatIbadah::class, 'id_tempat_ibadah');
}
}
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TempatIbadah extends Model
{
use HasFactory;
protected $table = 'tempat_ibadah';
protected $fillable = [
'nama_tempat',
'jenis_tempat_ibadah',
'kontak_person',
'radius_meter',
'lat',
'lng',
'alamat'
];
public function penerima_bantuan()
{
return $this->hasMany(PenerimaBantuan::class, 'id_tempat_ibadah');
}
}