-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update 3.6 data pemberdayaan, update data anggota cu
- Loading branch information
Showing
319 changed files
with
256,978 additions
and
220,626 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
namespace App; | ||
|
||
use illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\SoftDeletes; | ||
use App\Support\Dataviewer; | ||
use Spatie\Activitylog\Traits\LogsActivity; | ||
|
||
class Enterpreneur extends BaseEloquent { | ||
|
||
use \Venturecraft\Revisionable\RevisionableTrait; | ||
use Dataviewer, LogsActivity, SoftDeletes; | ||
|
||
protected $table = 'enterpreneur'; | ||
protected $dates = ['deleted_at']; | ||
protected static $logFillable = true; | ||
protected static $logOnlyDirty = true; | ||
protected $revisionEnabled = true; | ||
protected $revisionCleanup = true; | ||
protected $historyLimit = 500; | ||
|
||
public static $rules = [ | ||
'anggota_cu_id' => 'required', | ||
'id_cu' => 'required' | ||
]; | ||
|
||
protected $fillable = [ | ||
'anggota_cu_id','id_usaha','id_cu','jmlh_pinjaman','marketplace','deskripsi' | ||
]; | ||
|
||
protected $allowedFilters = [ | ||
'id','anggota_cu_id','id_usaha','id_cu','jmlh_pinjaman','marketplace','deskripsi','created_at','updated_at', | ||
|
||
'anggota_cu.name','cu.name','usaha.name' | ||
]; | ||
|
||
protected $orderable = [ | ||
'id','anggota_cu_id','id_usaha','id_cu','jmlh_pinjaman','marketplace','deskripsi','created_at','updated_at', | ||
|
||
'anggota_cu.name','cu.name','usaha.name' | ||
]; | ||
|
||
public static function initialize(){ | ||
return [ | ||
'anggota_cu_id' => '', 'id_usaha' => '','id_cu' => '','jmlh_pinjaman' => '0','marketplace' => '', 'deskripsi' => '' | ||
]; | ||
} | ||
|
||
public function anggota_cu() | ||
{ | ||
return $this->belongsTo('App\AnggotaCu','anggota_cu_id','id'); | ||
} | ||
|
||
public function Cu() | ||
{ | ||
return $this->belongsTo('App\Cu','id_cu','id')->select('id','no_ba','name','id_provinces')->withTrashed(); | ||
} | ||
|
||
public function Usaha() | ||
{ | ||
return $this->belongsTo('App\KubnUsaha','id_usaha','id')->select('id','name')->withTrashed(); | ||
} | ||
|
||
public function Diklat() | ||
{ | ||
return $this->hasMany('App\EnterpreneurDiklat','id_enterpreneur','id'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\SoftDeletes; | ||
use App\Support\Dataviewer; | ||
use Spatie\Activitylog\Traits\LogsActivity; | ||
|
||
class EnterpreneurDiklat extends BaseEloquent { | ||
|
||
use Dataviewer, LogsActivity, SoftDeletes; | ||
|
||
protected $table = 'enterpreneur_diklat'; | ||
protected $dates = ['deleted_at']; | ||
protected static $logFillable = true; | ||
protected static $logOnlyDirty = true; | ||
|
||
public static $rules = [ | ||
'id_enterpreneur' => 'required', | ||
'name' => 'required', | ||
]; | ||
|
||
protected $fillable = ['id_enterpreneur','name','deskripsi','tanggal_mulai','tanggal_selesai','fasilitator','tempat']; | ||
|
||
protected $allowedFilters = [ | ||
'id','id_enterpreneur','name','deskripsi','tanggal_mulai','tanggal_selesai','fasilitator','tempat','created_at','updated_at' | ||
]; | ||
|
||
protected $orderable = [ | ||
'id','id_enterpreneur','name','deskripsi','tanggal_mulai','tanggal_selesai','fasilitator','tempat','created_at','updated_at' | ||
]; | ||
|
||
public static function initialize(){ | ||
return [ | ||
'id_enterpreneur' => '','name' => '', 'deskripsi' => '','tanggal_mulai' => '','tanggal_selesai' => '','fasilitator' => '','tempat' => '' | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
namespace App; | ||
|
||
use illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\SoftDeletes; | ||
use App\Support\Dataviewer; | ||
use Spatie\Activitylog\Traits\LogsActivity; | ||
|
||
class Fasilitator extends BaseEloquent { | ||
|
||
use \Venturecraft\Revisionable\RevisionableTrait; | ||
use Dataviewer, LogsActivity, SoftDeletes; | ||
|
||
protected $table = 'fasilitator'; | ||
protected $dates = ['deleted_at']; | ||
protected static $logFillable = true; | ||
protected static $logOnlyDirty = true; | ||
protected $revisionEnabled = true; | ||
protected $revisionCleanup = true; | ||
protected $historyLimit = 500; | ||
|
||
public static $rules = [ | ||
'anggota_cu_id' => 'required', | ||
'id_cu' => 'required' | ||
]; | ||
|
||
protected $fillable = [ | ||
'anggota_cu_id','id_cu','deskripsi' | ||
]; | ||
|
||
protected $allowedFilters = [ | ||
'id','anggota_cu_id','id_cu','deskripsi','created_at','updated_at', | ||
|
||
'anggota_cu.name','cu.name' | ||
]; | ||
|
||
protected $orderable = [ | ||
'id','anggota_cu_id','id_cu','deskripsi','created_at','updated_at', | ||
|
||
'anggota_cu.name','cu.name' | ||
]; | ||
|
||
public static function initialize(){ | ||
return [ | ||
'anggota_cu_id' => '','id_cu' => '', 'deskripsi' => '' | ||
]; | ||
} | ||
|
||
public function anggota_cu() | ||
{ | ||
return $this->belongsTo('App\AnggotaCu','anggota_cu_id','id'); | ||
} | ||
|
||
public function Cu() | ||
{ | ||
return $this->belongsTo('App\Cu','id_cu','id')->select('id','no_ba','name','id_provinces')->withTrashed(); | ||
} | ||
|
||
public function jenis_diklat(){ | ||
return $this->belongsToMany('App\JenisDiklat','fasilitator_jenis_diklat')->withPivot('id','jenis_diklat_id','fasilitator_id')->withTimestamps(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace App; | ||
|
||
use illuminate\Database\Eloquent\Model; | ||
|
||
class FasilitatorJenisDiklat extends Model { | ||
|
||
protected $table = 'fasilitator_jenis_diklat'; | ||
|
||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.