update form menu surveyor
This commit is contained in:
46
app/Models/Analisa.php
Normal file
46
app/Models/Analisa.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\AnalisaFactory;
|
||||
|
||||
class Analisa extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'analisa';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['permohonan_id', 'type', 'luas', 'jenis_jaminan_id'];
|
||||
|
||||
|
||||
public function analisaTanahBangunan(){
|
||||
return $this->hasOne(AnalisaTanahBagunan::class, 'analisa_id');
|
||||
}
|
||||
|
||||
|
||||
public function analisaLingkungan(){
|
||||
return $this->hasOne(AnalisaLingkungan::class, 'analisa_id');
|
||||
}
|
||||
|
||||
|
||||
public function analisaFakta(){
|
||||
return $this->hasOne(AnalisaFakta::class, 'analisa_id');
|
||||
}
|
||||
|
||||
public function jenisJaminan(){
|
||||
return $this->belongsTo(JenisJaminan::class, 'jenis_jaminan_id');
|
||||
}
|
||||
|
||||
public function analisaUnit(){
|
||||
return $this->hasOne(AnalisaUnit::class, 'analisa_id');
|
||||
}
|
||||
|
||||
|
||||
protected static function newFactory(): AnalisaFactory
|
||||
{
|
||||
//return AnalisaFactory::new();
|
||||
}
|
||||
}
|
||||
29
app/Models/AnalisaFakta.php
Normal file
29
app/Models/AnalisaFakta.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\AnalisaFaktaFactory;
|
||||
|
||||
class AnalisaFakta extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'analisa_fakta';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['analisa_id', 'fakta_positif', 'fakta_negatif','rute_menju','batas_batas','kondisi_linkungan','kondisi_lain_bangunan','informasi_dokument','peruntukan','kdb','kdh','gsb','max_lantai','klb','gss','pelebaran_jalan','nama_petugas','foto_tempat','lat','lng', 'keterangan'];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
protected static function newFactory(): AnalisaFaktaFactory
|
||||
{
|
||||
//return AnalisaFaktaFactory::new();
|
||||
}
|
||||
}
|
||||
23
app/Models/AnalisaLingkungan.php
Normal file
23
app/Models/AnalisaLingkungan.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\AnalisaLingkunganFactory;
|
||||
|
||||
class AnalisaLingkungan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'analisa_lingkungan';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['analisa_id', 'jarak_jalan_utama', 'alamat', 'jarak_cbd_point','lebar_perkerasan_jalan','perkerasan_jalan','lalu_lintas','gol_mas_sekitar','tingkat_keramaian','terletak_diarea','disekitar_lokasi','dekat_makam','dekat_tps','merupakan_daerah','fasilitas_dekat_object'];
|
||||
|
||||
protected static function newFactory(): AnalisaLingkunganFactory
|
||||
{
|
||||
//return AnalisaLingkunganFactory::new();
|
||||
}
|
||||
}
|
||||
40
app/Models/AnalisaTanahBagunan.php
Normal file
40
app/Models/AnalisaTanahBagunan.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\AnalisaTanahBagunanFactory;
|
||||
|
||||
class AnalisaTanahBagunan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'analisa_tanah_bangunan';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['bentuk_tanah', 'kontur_tanah', 'posisi_kavling', 'ketinggian_jalan','kontur_jalan', 'kondisi_fisik_tanah','jenis_bangunan', 'kondisi_bangunan', 'sifat_bangunan', 'sarana_pelengkap', 'analisa_id', 'tusuk_sate','lockland'];
|
||||
|
||||
|
||||
public function analisa()
|
||||
{
|
||||
return $this->belongsTo(Analisa::class);
|
||||
}
|
||||
|
||||
public function spekBangunanAnalisa()
|
||||
{
|
||||
return $this->hasMany(SpekBangunanAnalisa::class, 'analisa_tanah_bangunan_id');
|
||||
}
|
||||
|
||||
public function spekBagunanAnalisaDetail()
|
||||
{
|
||||
return $this->hasMany(SpekBagunanAnalisaDetail::class, 'analisa_tanah_bangunan_id');
|
||||
}
|
||||
|
||||
protected static function newFactory(): AnalisaTanahBagunanFactory
|
||||
{
|
||||
//return AnalisaTanahBagunanFactory::new();
|
||||
}
|
||||
}
|
||||
23
app/Models/AnalisaUnit.php
Normal file
23
app/Models/AnalisaUnit.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\AnalisaUnitFactory;
|
||||
|
||||
class AnalisaUnit extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'analisa_unit';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['jenis_unit', 'analisa_id', 'kondisi_unit','posisi_unit', 'lantai', 'view', 'bentuk_unit'];
|
||||
|
||||
protected static function newFactory(): AnalisaUnitFactory
|
||||
{
|
||||
//return AnalisaUnitFactory::new();
|
||||
}
|
||||
}
|
||||
27
app/Models/Denah.php
Normal file
27
app/Models/Denah.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\DenahFactory;
|
||||
|
||||
class Denah extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'denah';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['permohonan_id', 'foto_denah', 'luas', 'jenis_jaminan_id'];
|
||||
|
||||
public function jenisJaminan(){
|
||||
return $this->belongsTo(JenisJaminan::class, 'jenis_jaminan_id');
|
||||
}
|
||||
|
||||
protected static function newFactory(): DenahFactory
|
||||
{
|
||||
//return DenahFactory::new();
|
||||
}
|
||||
}
|
||||
41
app/Models/FotoJaminan.php
Normal file
41
app/Models/FotoJaminan.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\FotoJaminanFactory;
|
||||
|
||||
class FotoJaminan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'foto_jaminan';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['permohonan_id', 'pendamping', 'jenis_jaminan_id'];
|
||||
|
||||
|
||||
|
||||
public function objekJaminan(){
|
||||
|
||||
return $this->hasMany(ObjekJaminan::class, 'foto_jaminan_id');
|
||||
}
|
||||
|
||||
|
||||
public function ruteJaminan(){
|
||||
return $this->hasMany(RuteJaminan::class, 'foto_jaminan_id');
|
||||
}
|
||||
|
||||
|
||||
public function lingkungan(){
|
||||
return $this->hasMany(Lingkungan::class, 'foto_jaminan_id');
|
||||
}
|
||||
|
||||
|
||||
public function lantaiUnit(){
|
||||
return $this->hasMany(lantaiUnit::class, 'objek_jaminan_id', 'id');
|
||||
}
|
||||
}
|
||||
24
app/Models/LantaiUnit.php
Normal file
24
app/Models/LantaiUnit.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\LantaiUnitFactory;
|
||||
|
||||
class LantaiUnit extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'lantai_unit';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['name_lantai_unit','foto_lantai_unit', 'objek_jaminan_id'];
|
||||
|
||||
protected static function newFactory(): LantaiUnitFactory
|
||||
{
|
||||
//return LantaiUnitFactory::new();
|
||||
}
|
||||
}
|
||||
23
app/Models/Lingkungan.php
Normal file
23
app/Models/Lingkungan.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\LingkunganFactory;
|
||||
|
||||
class Lingkungan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'lingkungan';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['name_lingkungan', 'foto_jaminan_id', 'foto_lingkungan'];
|
||||
|
||||
protected static function newFactory(): LingkunganFactory
|
||||
{
|
||||
//return LingkunganFactory::new();
|
||||
}
|
||||
}
|
||||
29
app/Models/ObjekJaminan.php
Normal file
29
app/Models/ObjekJaminan.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\ObjekJaminanFactory;
|
||||
|
||||
class ObjekJaminan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'objek_jaminan';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['name_objek', 'foto_jaminan_id', 'foto_objek'];
|
||||
|
||||
|
||||
|
||||
public function lantaiUnit(){
|
||||
return $this->hasMany(LantaiUnit::class, 'objek_jaminan_id', 'foto_jaminan_id');
|
||||
}
|
||||
|
||||
protected static function newFactory(): ObjekJaminanFactory
|
||||
{
|
||||
//return ObjekJaminanFactory::new();
|
||||
}
|
||||
}
|
||||
24
app/Models/RuteJaminan.php
Normal file
24
app/Models/RuteJaminan.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\RuteJaminanFactory;
|
||||
|
||||
class RuteJaminan extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'rute_jaminan';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['name_rute', 'foto_jaminan_id', 'foto_rute'];
|
||||
|
||||
protected static function newFactory(): RuteJaminanFactory
|
||||
{
|
||||
//return RuteJaminanFactory::new();
|
||||
}
|
||||
}
|
||||
23
app/Models/SpekBagunanAnalisa.php
Normal file
23
app/Models/SpekBagunanAnalisa.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\SpekBagunanAnalisaFactory;
|
||||
|
||||
class SpekBagunanAnalisa extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'spek_bagunan_analisa';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['kategori', 'analisa_tanah_bagunan_id'];
|
||||
|
||||
protected static function newFactory(): SpekBagunanAnalisaFactory
|
||||
{
|
||||
//return SpekBagunanAnalisaFactory::new();
|
||||
}
|
||||
}
|
||||
24
app/Models/SpekBagunanAnalisaDetail.php
Normal file
24
app/Models/SpekBagunanAnalisaDetail.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Lpj\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Lpj\Database\Factories\SpekBagunanAnalisaDetailFactory;
|
||||
|
||||
class SpekBagunanAnalisaDetail extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'spek_bagunan_analisa_detail';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = ['name', 'spek_bagunan_analisa_id', 'kategori'];
|
||||
|
||||
protected static function newFactory(): SpekBagunanAnalisaDetailFactory
|
||||
{
|
||||
//return SpekBagunanAnalisaDetailFactory::new();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user