Merge branch 'master' of https://git.abbauf.com/MAGANG_TB_dan_PNP_2023/pelayanan_pelatihan
This commit is contained in:
commit
455f885217
181
app/Http/Controllers/DataBumdesController.php
Normal file
181
app/Http/Controllers/DataBumdesController.php
Normal file
@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
|
||||
use App\Models\data_bumdes;
|
||||
use App\Models\data_distrik_bumdes;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\data_distrik_caltrans;
|
||||
use App\Models\data_pribadi_bumdes;
|
||||
use App\Http\Requests\Storedata_bumdesRequest;
|
||||
use App\Http\Requests\Updatedata_bumdesRequest;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class DataBumdesController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function savebumdes(Request $request){
|
||||
$rules = [
|
||||
'nip' => 'required',
|
||||
'nama_lengkap' => 'required',
|
||||
'pangkat' => 'required',
|
||||
'jabatan' => 'required',
|
||||
'instansi' => 'required',
|
||||
'kabupaten' => 'required',
|
||||
'phone_number' => 'required|numeric',
|
||||
'pesan' => 'required',
|
||||
'alamat' => 'required',
|
||||
'nama_distrik' => 'required',
|
||||
'jumlah_kampung' => 'required|numeric',
|
||||
'jumlah_penduduk' => 'required|numeric',
|
||||
'pendidikan' => 'required',
|
||||
'pertanian' => 'required',
|
||||
'peternakan' => 'required',
|
||||
'perikanan' => 'required',
|
||||
'perkebunan' => 'required',
|
||||
'kehutanan' => 'required',
|
||||
'lain_lain' => 'required',
|
||||
'potensi_aset' => 'required',
|
||||
'jenis_pelatihan' => 'required',
|
||||
'kelembagaan_adat' => 'required',
|
||||
'kelembagaan_sosial' => 'required',
|
||||
'bumdes_sudah_berbadan' => 'required',
|
||||
'bumdes_belum_berbadan' => 'required',
|
||||
'jenis_usaha_bumdes' => 'required',
|
||||
'jarak_tempuh_bandara' => 'required|numeric',
|
||||
'jarak_tempuh_kampung' => 'required|numeric',
|
||||
'sharing_information' => 'required',
|
||||
];
|
||||
$validator = Validator::make($request->all(), $rules);
|
||||
|
||||
// Check if validation fails
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['input_data_gagal' => $validator->errors()], 400);
|
||||
}
|
||||
data_pribadi_bumdes::create([
|
||||
"nip" => $request->nip,
|
||||
"nama_lengkap"=>$request->nama_lengkap,
|
||||
"pangkat"=>$request->pangkat,
|
||||
"jabatan"=>$request->jabatan,
|
||||
"instansi"=>$request->instansi,
|
||||
"kabupaten"=>$request->kabupaten,
|
||||
"phone_number"=>$request->phone_number,
|
||||
"pesan"=>$request->pesan,
|
||||
"alamat"=>$request->alamat
|
||||
]);
|
||||
data_distrik_bumdes::create([
|
||||
"nama_distrik"=>$request->nama_distrik,
|
||||
"jumlah_kampung"=>$request->jumlah_kampung,
|
||||
"jumlah_penduduk"=>$request->jumlah_penduduk
|
||||
]);
|
||||
data_bumdes::create([
|
||||
"pendidikan"=>$request->pendidikan,
|
||||
"pertanian"=>$request->pertanian,
|
||||
"peternakan"=>$request->peternakan,
|
||||
"perikanan"=>$request->perikanan,
|
||||
"perkebunan"=>$request->perkebunan,
|
||||
"kehutanan"=>$request->kehutanan,
|
||||
"lain_lain"=>$request->lain_lain,
|
||||
"potensi_aset"=>$request->potensi_aset,
|
||||
"jenis_pelatihan"=>$request->jenis_pelatihan,
|
||||
"kelembagaan_adat"=>$request->kelembagaan_adat,
|
||||
"kelembagaan_sosial"=>$request->kelembagaan_sosial,
|
||||
"bumdes_sudah_berbadan"=>$request->bumdes_sudah_berbadan,
|
||||
"bumdes_belum_berbadan"=>$request->bumdes_belum_berbadan,
|
||||
"jenis_usaha_bumdes"=>$request->jenis_usaha_bumdes,
|
||||
"jarak_tempuh_bandara"=>$request->jarak_tempuh_bandara,
|
||||
"jarak_tempuh_kampung"=>$request->jarak_tempuh_kampung,
|
||||
"sharing_information"=>$request->sharing_information,
|
||||
]);
|
||||
$response=[
|
||||
'nip' => $request->nip,
|
||||
'nama_lengkap' => $request->nama_lengkap,
|
||||
'pangkat' => $request->pangkat,
|
||||
'jabatan' => $request->jabatan,
|
||||
'instansi' => $request->instansi,
|
||||
'kabupaten' => $request->kabupaten,
|
||||
'phone_number' => $request->phone_number,
|
||||
'pesan' => $request->pesan,
|
||||
'alamat' => $request->alamat,
|
||||
'nama_distrik' => $request->nama_distrik,
|
||||
'jumlah_kampung' => $request->jumlah_kampung,
|
||||
'jumlah_penduduk' => $request->jumlah_penduduk,
|
||||
'pendidikan' => $request->pendidikan,
|
||||
'pertanian' => $request->pertanian,
|
||||
'peternakan' => $request->peternakan,
|
||||
'perikanan' => $request->perikanan,
|
||||
'perkebunan' => $request->perkebunan,
|
||||
'kehutanan' => $request->kehutanan,
|
||||
'lain_lain' => $request->lain_lain,
|
||||
'potensi_aset' => $request->potensi_aset,
|
||||
'kelembagaan_adat' => $request->kelembagaan_adat,
|
||||
'kelembagaan_sosial' => $request->kelembagaan_sosial,
|
||||
'bumdes_sudah_berbadan' => $request->bumdes_sudah_berbadan,
|
||||
'bumdes_belum_berbadan' => $request->bumdes_belum_berbadan,
|
||||
'jenis_usaha_bumdes' => $request->jenis_usaha_bumdes,
|
||||
'jarak_tempuh_bandara' => $request->jarak_tempuh_bandara,
|
||||
'jarak_tempuh_kampung' => $request->jarak_tempuh_kampung,
|
||||
'jenis_pelatihan' => $request->jenis_pelatihan,
|
||||
// 'kampung_binaan' => $request->kampung_binaan,
|
||||
'sharing_information' => $request->sharing_information,
|
||||
];
|
||||
return response()->json(['data' => $response, 'message' => 'Data berhasil disimpan']);
|
||||
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_bumdesRequest $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_bumdes $data_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_bumdes $data_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_bumdesRequest $request, data_bumdes $data_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_bumdes $data_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
178
app/Http/Controllers/DataClatransController.php
Normal file
178
app/Http/Controllers/DataClatransController.php
Normal file
@ -0,0 +1,178 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_clatrans;
|
||||
use App\Http\Requests\Storedata_clatransRequest;
|
||||
use App\Http\Requests\Updatedata_clatransRequest;
|
||||
use App\Models\data_distrik_caltrans;
|
||||
use App\Models\data_pribadi_caltrans;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class DataClatransController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function savedatacaltrans(Request $request){
|
||||
$rules = [
|
||||
'nip' => 'required',
|
||||
'nama_lengkap' => 'required',
|
||||
'pangkat' => 'required',
|
||||
'jabatan' => 'required',
|
||||
'instansi' => 'required',
|
||||
'kabupaten' => 'required',
|
||||
'phone_number' => 'required|numeric',
|
||||
'pesan' => 'required',
|
||||
'alamat' => 'required',
|
||||
'nama_distrik' => 'required',
|
||||
'jumlah_kampung' => 'required|numeric',
|
||||
'jumlah_penduduk' => 'required|numeric',
|
||||
'pendidikan' => 'required',
|
||||
'pertanian' => 'required',
|
||||
'peternakan' => 'required',
|
||||
'perikanan' => 'required',
|
||||
'perkebunan' => 'required',
|
||||
'kehutanan' => 'required',
|
||||
'lain_lain' => 'required',
|
||||
'kelembagaan_adat' => 'required',
|
||||
'kelembagaan_sosial' => 'required',
|
||||
'no_sk_caltrans' => 'required',
|
||||
'tgl_sk_caltrans' => 'required',
|
||||
'penandatangan_sk_caltrans' => 'required',
|
||||
'jarak_tempuh_bandara' => 'required|numeric',
|
||||
'jarak_tempuh_kampung' => 'required|numeric',
|
||||
'kampung_binaan' => 'required',
|
||||
'jenis_pelatihan' => 'required',
|
||||
'sharing_information' => 'required',
|
||||
];
|
||||
$validator = Validator::make($request->all(), $rules);
|
||||
|
||||
// Check if validation fails
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['input_data_gagal' => $validator->errors()], 400);
|
||||
}
|
||||
data_pribadi_caltrans::create([
|
||||
"nip" => $request->nip,
|
||||
"nama_lengkap"=>$request->nama_lengkap,
|
||||
"pangkat"=>$request->pangkat,
|
||||
"jabatan"=>$request->jabatan,
|
||||
"instansi"=>$request->instansi,
|
||||
"kabupaten"=>$request->kabupaten,
|
||||
"phone_number"=>$request->phone_number,
|
||||
"pesan"=>$request->pesan,
|
||||
"alamat"=>$request->alamat
|
||||
]);
|
||||
data_distrik_caltrans::create([
|
||||
"nama_distrik"=>$request->nama_distrik,
|
||||
"jumlah_kampung"=>$request->jumlah_kampung,
|
||||
"jumlah_penduduk"=>$request->jumlah_penduduk
|
||||
]);
|
||||
data_clatrans::create([
|
||||
"pendidikan"=>$request->pendidikan,
|
||||
"pertanian"=>$request->pertanian,
|
||||
"peternakan"=>$request->peternakan,
|
||||
"perikanan"=>$request->perikanan,
|
||||
"perkebunan"=>$request->perkebunan,
|
||||
"kehutanan"=>$request->kehutanan,
|
||||
"lain_lain"=>$request->lain_lain,
|
||||
"kelembagaan_adat"=>$request->kelembagaan_adat,
|
||||
"kelembagaan_sosial"=>$request->kelembagaan_sosial,
|
||||
"no_sk_caltrans"=>$request->no_sk_caltrans,
|
||||
"tgl_sk_caltrans"=>$request->tgl_sk_caltrans,
|
||||
"penandatangan_sk_caltrans"=>$request->penandatangan_sk_caltrans,
|
||||
"jarak_tempuh_bandara"=>$request->jarak_tempuh_bandara,
|
||||
"jarak_tempuh_kampung"=>$request->jarak_tempuh_kampung,
|
||||
"kampung_binaan"=>$request->kampung_binaan,
|
||||
"jenis_pelatihan"=>$request->jenis_pelatihan,
|
||||
"sharing_information"=>$request->sharing_information,
|
||||
]);
|
||||
$response = [
|
||||
'nip' => $request->nip,
|
||||
'nama_lengkap' => $request->nama_lengkap,
|
||||
'pangkat' => $request->pangkat,
|
||||
'jabatan' => $request->jabatan,
|
||||
'instansi' => $request->instansi,
|
||||
'kabupaten' => $request->kabupaten,
|
||||
'phone_number' => $request->phone_number,
|
||||
'pesan' => $request->pesan,
|
||||
'alamat' => $request->alamat,
|
||||
'nama_distrik' => $request->nama_distrik,
|
||||
'jumlah_kampung' => $request->jumlah_kampung,
|
||||
'jumlah_penduduk' => $request->jumlah_penduduk,
|
||||
'pendidikan' => $request->pendidikan,
|
||||
'pertanian' => $request->pertanian,
|
||||
'peternakan' => $request->peternakan,
|
||||
'perikanan' => $request->perikanan,
|
||||
'perkebunan' => $request->perkebunan,
|
||||
'kehutanan' => $request->kehutanan,
|
||||
'lain_lain' => $request->lain_lain,
|
||||
'kelembagaan_adat' => $request->kelembagaan_adat,
|
||||
'kelembagaan_sosial' => $request->kelembagaan_sosial,
|
||||
'no_sk_caltrans' => $request->no_sk_caltrans,
|
||||
'tgl_sk_caltrans' => $request->tgl_sk_caltrans,
|
||||
'penandatangan_sk_caltrans' => $request->penandatangan_sk_caltrans,
|
||||
'jarak_tempuh_bandara' => $request->jarak_tempuh_bandara,
|
||||
'jarak_tempuh_kampung' => $request->jarak_tempuh_kampung,
|
||||
'jenis_pelatihan' => $request->jenis_pelatihan,
|
||||
'kampung_binaan' => $request->kampung_binaan,
|
||||
'sharing_information' => $request->sharing_information,
|
||||
];
|
||||
// dd($response);
|
||||
// Kembalikan respons JSON
|
||||
return response()->json(['data' => $response, 'message' => 'Data berhasil disimpan']);
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_clatransRequest $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_clatrans $data_clatrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_clatrans $data_clatrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_clatransRequest $request, data_clatrans $data_clatrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_clatrans $data_clatrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
159
app/Http/Controllers/DataDeswitaController.php
Normal file
159
app/Http/Controllers/DataDeswitaController.php
Normal file
@ -0,0 +1,159 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
use App\Models\data_distrik_deswita;
|
||||
use App\Models\data_pribadi_deswita;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\data_deswita;
|
||||
use App\Http\Requests\Storedata_deswitaRequest;
|
||||
use App\Http\Requests\Updatedata_deswitaRequest;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
class DataDeswitaController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function savedatadeswita(Request $request){
|
||||
$rules = [
|
||||
'nip' => 'required',
|
||||
'nama_lengkap' => 'required',
|
||||
'pangkat' => 'required',
|
||||
'jabatan' => 'required',
|
||||
'instansi' => 'required',
|
||||
'kabupaten' => 'required',
|
||||
'phone_number' => 'required|numeric',
|
||||
'pesan' => 'required',
|
||||
'alamat' => 'required',
|
||||
'nama_distrik' => 'required',
|
||||
'jumlah_kampung' => 'required|numeric',
|
||||
'jumlah_penduduk' => 'required|numeric',
|
||||
'pendidikan' => 'required',
|
||||
'atraksi' => 'required',
|
||||
'amenitas' => 'required',
|
||||
'aksesibilitas' => 'required',
|
||||
'kelembagaan' => 'required',
|
||||
'jumlah_pokdarwis' => 'required|numeric',
|
||||
'jarak_tempuh_bandara' => 'required|numeric',
|
||||
'jarak_tempuh_kampung' => 'required|numeric',
|
||||
'jenis_pelatihan' => 'required',
|
||||
'kampung_binaan' => 'required',
|
||||
'sharing_information' => 'required',
|
||||
];
|
||||
$validator = Validator::make($request->all(), $rules);
|
||||
|
||||
// Check if validation fails
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['input_data_gagal' => $validator->errors()], 400);
|
||||
}
|
||||
data_pribadi_deswita::create([
|
||||
"nip" => $request->nip,
|
||||
"nama_lengkap"=>$request->nama_lengkap,
|
||||
"pangkat"=>$request->pangkat,
|
||||
"jabatan"=>$request->jabatan,
|
||||
"instansi"=>$request->instansi,
|
||||
"kabupaten"=>$request->kabupaten,
|
||||
"phone_number"=>$request->phone_number,
|
||||
"pesan"=>$request->pesan,
|
||||
"alamat"=>$request->alamat
|
||||
]);
|
||||
data_distrik_deswita::create([
|
||||
"nama_distrik"=>$request->nama_distrik,
|
||||
"jumlah_kampung"=>$request->jumlah_kampung,
|
||||
"jumlah_penduduk"=>$request->jumlah_penduduk
|
||||
]);
|
||||
data_deswita::create([
|
||||
"pendidikan"=>$request->pendidikan,
|
||||
"atraksi"=>$request->atraksi,
|
||||
"amenitas"=>$request->amenitas,
|
||||
"aksesibilitas"=>$request->aksesibilitas,
|
||||
"kelembagaan"=>$request->kelembagaan,
|
||||
"jumlah_pokdarwis"=>$request->jumlah_pokdarwis,
|
||||
"jenis_pelatihan"=>$request->jenis_pelatihan,
|
||||
"kampung_binaan"=>$request->kampung_binaan,
|
||||
"jarak_tempuh_bandara"=>$request->jarak_tempuh_bandara,
|
||||
"jarak_tempuh_kampung"=>$request->jarak_tempuh_kampung,
|
||||
"sharing_information"=>$request->sharing_information,
|
||||
]);
|
||||
$response = [
|
||||
'nip' => $request->nip,
|
||||
'nama_lengkap' => $request->nama_lengkap,
|
||||
'pangkat' => $request->pangkat,
|
||||
'jabatan' => $request->jabatan,
|
||||
'instansi' => $request->instansi,
|
||||
'kabupaten' => $request->kabupaten,
|
||||
'phone_number' => $request->phone_number,
|
||||
'pesan' => $request->pesan,
|
||||
'alamat' => $request->alamat,
|
||||
'nama_distrik' => $request->nama_distrik,
|
||||
'jumlah_kampung' => $request->jumlah_kampung,
|
||||
'jumlah_penduduk' => $request->jumlah_penduduk,
|
||||
'pendidikan' => $request->pendidikan,
|
||||
'atraksi' => $request->atraksi,
|
||||
'amenitas' => $request->amenitas,
|
||||
'aksesibilitas' => $request->aksesibilitas,
|
||||
'kelembagaan' => $request->kelembagaan,
|
||||
'jumlah_pokdarwis' => $request->jumlah_pokdarwis,
|
||||
'jarak_tempuh_bandara' => $request->jarak_tempuh_bandara,
|
||||
'jarak_tempuh_kampung' => $request->jarak_tempuh_kampung,
|
||||
'jenis_pelatihan' => $request->jenis_pelatihan,
|
||||
'kampung_binaan' => $request->kampung_binaan,
|
||||
'sharing_information' => $request->sharing_information,
|
||||
];
|
||||
// dd($response);
|
||||
// Kembalikan respons JSON
|
||||
return response()->json(['data' => $response, 'message' => 'Data berhasil disimpan']);
|
||||
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_deswitaRequest $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_deswita $data_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_deswita $data_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_deswitaRequest $request, data_deswita $data_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_deswita $data_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
75
app/Http/Controllers/DataDistrikBumdesController.php
Normal file
75
app/Http/Controllers/DataDistrikBumdesController.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_distrik_bumdes;
|
||||
use App\Http\Requests\Storedata_distrik_bumdesRequest;
|
||||
use App\Http\Requests\Updatedata_distrik_bumdesRequest;
|
||||
|
||||
class DataDistrikBumdesController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data_distrik=data_distrik_bumdes::all();
|
||||
return view('BumDes.data-distrik',compact('data_distrik'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('BumDes.data-distrik',[
|
||||
'data-distrik'=>data_distrik_bumdes::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_distrik_bumdesRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'nama_distrik'=>'required',
|
||||
'jumlah_kampung'=>'required',
|
||||
'jumlah_penduduk'=>'required'
|
||||
]);
|
||||
data_distrik_bumdes::create($validateData);
|
||||
return redirect('bumdes-data-bumdes');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_distrik_bumdes $data_distrik_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_distrik_bumdes $data_distrik_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_distrik_bumdesRequest $request, data_distrik_bumdes $data_distrik_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_distrik_bumdes $data_distrik_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
74
app/Http/Controllers/DataDistrikCaltransController.php
Normal file
74
app/Http/Controllers/DataDistrikCaltransController.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_distrik_caltrans;
|
||||
use App\Http\Requests\Storedata_distrik_caltransRequest;
|
||||
use App\Http\Requests\Updatedata_distrik_caltransRequest;
|
||||
|
||||
class DataDistrikCaltransController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data_distrik=data_distrik_caltrans::all();
|
||||
return view('CalTrans.data-distrik',compact('data_distrik'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('CalTrans.data-distrik',[
|
||||
'data_distrik'=> data_distrik_caltrans::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_distrik_caltransRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'nama_distrik'=>'required',
|
||||
'jumlah_kampung'=>'required',
|
||||
'jumlah_penduduk'=>'required'
|
||||
]);
|
||||
data_distrik_caltrans::create($validateData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_distrik_caltrans $data_distrik_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_distrik_caltrans $data_distrik_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_distrik_caltransRequest $request, data_distrik_caltrans $data_distrik_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_distrik_caltrans $data_distrik_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
75
app/Http/Controllers/DataDistrikDeswitaController.php
Normal file
75
app/Http/Controllers/DataDistrikDeswitaController.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_distrik_deswita;
|
||||
use App\Http\Requests\Storedata_distrik_deswitaRequest;
|
||||
use App\Http\Requests\Updatedata_distrik_deswitaRequest;
|
||||
|
||||
class DataDistrikDeswitaController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data_distrik= data_distrik_deswita::all();
|
||||
return view('DesWita.data-distrik',compact('data_distrik'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('DesWita.data-distrik',[
|
||||
'data_distrik'=>data_distrik_deswita::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_distrik_deswitaRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'nama_distrik'=>'required',
|
||||
'jumlah_kampung'=>'required',
|
||||
'jumlah_penduduk'=>'required'
|
||||
]);
|
||||
data_distrik_deswita::create($validateData);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_distrik_deswita $data_distrik_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_distrik_deswita $data_distrik_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_distrik_deswitaRequest $request, data_distrik_deswita $data_distrik_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_distrik_deswita $data_distrik_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
@ -37,8 +37,9 @@ class DataDistrikKpmdController extends Controller
|
||||
'jumlah_kampung'=>'required',
|
||||
'jumlah_penduduk'=>'required'
|
||||
]);
|
||||
data_distrik_kpmd::created($validateData);
|
||||
return redirect('/data-distrik-kpmd')->with('pesan','Data berhasil ditambah');
|
||||
// dd($validateData);
|
||||
data_distrik_kpmd::create($validateData);
|
||||
return redirect('/data-distrik-kpmd');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -72,4 +73,4 @@ class DataDistrikKpmdController extends Controller
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
||||
|
178
app/Http/Controllers/DataKpmdController.php
Normal file
178
app/Http/Controllers/DataKpmdController.php
Normal file
@ -0,0 +1,178 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_distrik_kpmd;
|
||||
use App\Models\data_kpmd;
|
||||
use App\Http\Requests\Storedata_kpmdRequest;
|
||||
use App\Http\Requests\Updatedata_kpmdRequest;
|
||||
use App\Models\data_pribadi_kpmd;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class DataKpmdController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function savedatakpmd(Request $request){
|
||||
$rules = [
|
||||
'nip' => 'required|string',
|
||||
'nama_lengkap' => 'required|string',
|
||||
'pangkat' => 'required|string',
|
||||
'jabatan' => 'required|string',
|
||||
'instansi' => 'required|string',
|
||||
'kabupaten' => 'required|string',
|
||||
'phone_number' => 'required|string',
|
||||
'pesan' => 'required|string',
|
||||
'alamat' => 'required|string',
|
||||
'nama_distrik' => 'required|string',
|
||||
'jumlah_kampung' => 'required|integer',
|
||||
'jumlah_penduduk' => 'required|integer',
|
||||
'pendidikan' => 'required|string',
|
||||
'pertanian' => 'required|string',
|
||||
'peternakan' => 'required|string',
|
||||
'perikanan' => 'required|string',
|
||||
'perkebunan' => 'required|string',
|
||||
'kehutanan' => 'required|string',
|
||||
'lain_lain' => 'required|string',
|
||||
'kelembagaan_adat' => 'required|string',
|
||||
'kelembagaan_sosial' => 'required|string',
|
||||
'jarak_tempuh_bandara' => 'required|numeric',
|
||||
'jarak_tempuh_kampung' => 'required|numeric',
|
||||
'jenis_pelatihan' => 'required|string',
|
||||
'kampung_binaan' => 'required|string',
|
||||
'sharing_information' => 'required|string',
|
||||
];
|
||||
|
||||
// Validate the request data
|
||||
$validator = Validator::make($request->all(), $rules);
|
||||
|
||||
// Check if validation fails
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['input_data_gagal' => $validator->errors()], 400);
|
||||
}
|
||||
// else{
|
||||
// return response()->json(['message' => 'Data validation successful']);
|
||||
// }
|
||||
// dd($validator);
|
||||
|
||||
data_pribadi_kpmd::create([
|
||||
"nip" => $request->nip,
|
||||
"nama_lengkap"=>$request->nama_lengkap,
|
||||
"pangkat"=>$request->pangkat,
|
||||
"jabatan"=>$request->jabatan,
|
||||
"instansi"=>$request->instansi,
|
||||
"kabupaten"=>$request->kabupaten,
|
||||
"phone_number"=>$request->phone_number,
|
||||
"pesan"=>$request->pesan,
|
||||
"alamat"=>$request->alamat
|
||||
]);
|
||||
data_distrik_kpmd::create([
|
||||
"nama_distrik"=>$request->nama_distrik,
|
||||
"jumlah_kampung"=>$request->jumlah_kampung,
|
||||
"jumlah_penduduk"=>$request->jumlah_penduduk
|
||||
]);
|
||||
data_kpmd::create([
|
||||
"pendidikan"=>$request->pendidikan,
|
||||
"pertanian"=>$request->pertanian,
|
||||
"peternakan"=>$request->peternakan,
|
||||
"perikanan"=>$request->perikanan,
|
||||
"perkebunan"=>$request->perkebunan,
|
||||
"kehutanan"=>$request->kehutanan,
|
||||
"lain_lain"=>$request->lain_lain,
|
||||
"kelembagaan_adat"=>$request->kelembagaan_adat,
|
||||
"kelembagaan_sosial"=>$request->kelembagaan_sosial,
|
||||
"jarak_tempuh_bandara"=>$request->jarak_tempuh_bandara,
|
||||
"jarak_tempuh_kampung"=>$request->jarak_tempuh_kampung,
|
||||
"jenis_pelatihan"=>$request->jenis_pelatihan,
|
||||
"kampung_binaan"=>$request->kampung_binaan,
|
||||
"sharing_information"=>$request->sharing_information,
|
||||
]);
|
||||
$response = [
|
||||
'nip' => $request->nip,
|
||||
'nama_lengkap' => $request->nama_lengkap,
|
||||
'pangkat' => $request->pangkat,
|
||||
'jabatan' => $request->jabatan,
|
||||
'instansi' => $request->instansi,
|
||||
'kabupaten' => $request->kabupaten,
|
||||
'phone_number' => $request->phone_number,
|
||||
'pesan' => $request->pesan,
|
||||
'alamat' => $request->alamat,
|
||||
'nama_distrik' => $request->nama_distrik,
|
||||
'jumlah_kampung' => $request->jumlah_kampung,
|
||||
'jumlah_penduduk' => $request->jumlah_penduduk,
|
||||
'pendidikan' => $request->pendidikan,
|
||||
'pertanian' => $request->pertanian,
|
||||
'peternakan' => $request->peternakan,
|
||||
'perikanan' => $request->perikanan,
|
||||
'perkebunan' => $request->perkebunan,
|
||||
'kehutanan' => $request->kehutanan,
|
||||
'lain_lain' => $request->lain_lain,
|
||||
'kelembagaan_adat' => $request->kelembagaan_adat,
|
||||
'kelembagaan_sosial' => $request->kelembagaan_sosial,
|
||||
'jarak_tempuh_bandara' => $request->jarak_tempuh_bandara,
|
||||
'jarak_tempuh_kampung' => $request->jarak_tempuh_kampung,
|
||||
'jenis_pelatihan' => $request->jenis_pelatihan,
|
||||
'kampung_binaan' => $request->kampung_binaan,
|
||||
'sharing_information' => $request->sharing_information,
|
||||
];
|
||||
// dd($response);
|
||||
// Kembalikan respons JSON
|
||||
return response()->json(['data' => $response, 'message' => 'Data berhasil disimpan']);
|
||||
|
||||
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_kpmdRequest $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_kpmd $data_kpmd)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_kpmd $data_kpmd)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_kpmdRequest $request, data_kpmd $data_kpmd)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_kpmd $data_kpmd)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
81
app/Http/Controllers/DataPribadiBumdesController.php
Normal file
81
app/Http/Controllers/DataPribadiBumdesController.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_pribadi_bumdes;
|
||||
use App\Http\Requests\Storedata_pribadi_bumdesRequest;
|
||||
use App\Http\Requests\Updatedata_pribadi_bumdesRequest;
|
||||
|
||||
class DataPribadiBumdesController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data_pribadi=data_pribadi_bumdes::all();
|
||||
return view('BumDes.index',compact('data_pribadi'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('BumDes.index',[
|
||||
'data_pribadi'=>data_pribadi_bumdes::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_pribadi_bumdesRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'nip' => 'required|unique:data_pribadi_kpmds',
|
||||
'nama_lengkap'=>'required',
|
||||
'pangkat'=>'required',
|
||||
'jabatan'=>'required',
|
||||
'instansi'=>'required',
|
||||
'kabupaten'=>'required',
|
||||
'phone_number'=>'required',
|
||||
'pesan'=>'required',
|
||||
'alamat'=>'required'
|
||||
]);
|
||||
data_pribadi_bumdes::create($validateData);
|
||||
return redirect('/data-distrik-bumdes');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_pribadi_bumdes $data_pribadi_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_pribadi_bumdes $data_pribadi_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_pribadi_bumdesRequest $request, data_pribadi_bumdes $data_pribadi_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_pribadi_bumdes $data_pribadi_bumdes)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
81
app/Http/Controllers/DataPribadiCaltransController.php
Normal file
81
app/Http/Controllers/DataPribadiCaltransController.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_pribadi_caltrans;
|
||||
use App\Http\Requests\Storedata_pribadi_caltransRequest;
|
||||
use App\Http\Requests\Updatedata_pribadi_caltransRequest;
|
||||
|
||||
class DataPribadiCaltransController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data_pribadi=data_pribadi_caltrans::all();
|
||||
return view('CalTrans.index',compact('data_pribadi'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('CalTrans.index',[
|
||||
'data_pribadi'=>data_pribadi_caltrans::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_pribadi_caltransRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'nip' => 'required|unique:data_pribadi_kpmds',
|
||||
'nama_lengkap'=>'required',
|
||||
'pangkat'=>'required',
|
||||
'jabatan'=>'required',
|
||||
'instansi'=>'required',
|
||||
'kabupaten'=>'required',
|
||||
'phone_number'=>'required',
|
||||
'pesan'=>'required',
|
||||
'alamat'=>'required'
|
||||
]);
|
||||
data_pribadi_caltrans::create($validateData);
|
||||
return redirect('/data-distrik-caltrans');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_pribadi_caltrans $data_pribadi_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_pribadi_caltrans $data_pribadi_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_pribadi_caltransRequest $request, data_pribadi_caltrans $data_pribadi_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_pribadi_caltrans $data_pribadi_caltrans)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
82
app/Http/Controllers/DataPribadiDeswitaController.php
Normal file
82
app/Http/Controllers/DataPribadiDeswitaController.php
Normal file
@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_pribadi_deswita;
|
||||
use App\Http\Requests\Storedata_pribadi_deswitaRequest;
|
||||
use App\Http\Requests\Updatedata_pribadi_deswitaRequest;
|
||||
|
||||
class DataPribadiDeswitaController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data_pribadi=data_pribadi_deswita::all();
|
||||
return view('DesWita.index',compact('data_pribadi'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('DesWita.index',[
|
||||
'data_pribadi'=>data_pribadi_deswita::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storedata_pribadi_deswitaRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'nip' => 'required|unique:data_pribadi_kpmds',
|
||||
'nama_lengkap'=>'required',
|
||||
'pangkat'=>'required',
|
||||
'jabatan'=>'required',
|
||||
'instansi'=>'required',
|
||||
'kabupaten'=>'required',
|
||||
'phone_number'=>'required',
|
||||
'pesan'=>'required',
|
||||
'alamat'=>'required'
|
||||
]);
|
||||
// dd($validateData);
|
||||
data_pribadi_deswita::create($validateData);
|
||||
return redirect('data-distrik-deswita');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(data_pribadi_deswita $data_pribadi_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(data_pribadi_deswita $data_pribadi_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatedata_pribadi_deswitaRequest $request, data_pribadi_deswita $data_pribadi_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(data_pribadi_deswita $data_pribadi_deswita)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
119
app/Http/Controllers/DataWisata.php
Normal file
119
app/Http/Controllers/DataWisata.php
Normal file
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\data_bumdes;
|
||||
use App\Models\data_distrik_bumdes;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\data_distrik_caltrans;
|
||||
use App\Models\data_pribadi_bumdes;
|
||||
|
||||
class DataWisata extends Controller
|
||||
{
|
||||
//
|
||||
public function savedatawisata(Request $request)
|
||||
{
|
||||
data_pribadi_bumdes::create([
|
||||
"nip" => $request->nip,
|
||||
"nama_lengkap"=>$request->nama_lengkap,
|
||||
"pangkat"=>$request->pangkat,
|
||||
"jabatan"=>$request->jabatan,
|
||||
"instansi"=>$request->instansi,
|
||||
"kabupaten"=>$request->kabupaten,
|
||||
"phone_number"=>$request->phone_number,
|
||||
"pesan"=>$request->pesan,
|
||||
"alamat"=>$request->alamat
|
||||
]);
|
||||
data_distrik_bumdes::create([
|
||||
"nama_distrik"=>$request->nama_distrik,
|
||||
"jumlah_kampung"=>$request->jumlah_kampung,
|
||||
"jumlah_penduduk"=>$request->jumlah_penduduk
|
||||
|
||||
]);
|
||||
data_bumdes::create([
|
||||
"pendidikan"=>$request->pendidikan,
|
||||
"pertanian"=>$request->pertanian,
|
||||
"peternakan"=>$request->peternakan,
|
||||
"perikanan"=>$request->perikanan,
|
||||
"perkebunan"=>$request->perkebunan,
|
||||
"kehutanan"=>$request->kehutanan,
|
||||
"lain_lain"=>$request->lain_lain,
|
||||
"potensi_aset"=>$request->potensi_aset,
|
||||
"jenis_pelatihan"=>$request->jenis_pelatihan,
|
||||
"kelembagaan_adat"=>$request->kelembagaan_adat,
|
||||
"kelembagaan_sosial"=>$request->kelembagaan_sosial,
|
||||
"bumdes_sudah_berbadan"=>$request->bumdes_sudah_berbadan,
|
||||
"bumdes_belum_berbadan"=>$request->bumdes_belum_berbadan,
|
||||
"jenis_usaha_bumdes"=>$request->jenis_usaha_bumdes,
|
||||
"jarak_tempuh_bandara"=>$request->jarak_tempuh_bandara,
|
||||
"jarak_tempuh_kampung"=>$request->jarak_tempuh_kampung,
|
||||
"sharing_information"=>$request->sharing_information,
|
||||
]);
|
||||
// dd($request);
|
||||
// return response()->json([
|
||||
// 'nip' => $request->nip,
|
||||
// 'nama_lengkap'=>$request->nama_lengkap,
|
||||
// 'pangkat'=>$request->pangkat,
|
||||
// 'jabatan'=>$request->jabatan,
|
||||
// 'instansi'=>$request->instansi,
|
||||
// 'kabupaten'=>$request->kabupaten,
|
||||
// 'phone_number'=>$request->phone_number,
|
||||
// 'pesan'=>$request->pesan,
|
||||
// 'alamat'=>$request->alamat,
|
||||
// 'nama_distrik'=>$request->nama_distrik,
|
||||
// 'jumlah_kampung'=>$request->jumlah_kampung,
|
||||
// 'jumlah_penduduk'=>$request->jumlah_penduduk,
|
||||
// 'pendidikan'=>$request->pendidikan,
|
||||
// 'pertanian'=>$request->pertanian,
|
||||
// 'peternakan'=>$request->peternakan,
|
||||
// 'perikanan'=>$request->perikanan,
|
||||
// 'perkebunan'=>$request->perkebunan,
|
||||
// 'kehutanan'=>$request->kehutanan,
|
||||
// 'lain_lain'=>$request->lain_lain,
|
||||
// 'potensi_aset'=>$request->potensi_aset,
|
||||
// 'jenis_pelatihan'=>$request->jenis_pelatihan,
|
||||
// 'kelembagaan_adat'=>$request->kelembagaan_adat,
|
||||
// 'kelembagaan_sosial'=>$request->kelembagaan_sosial,
|
||||
// 'bumdes_sudah_berbadan'=>$request->bumdes_sudah_berbadan,
|
||||
// 'bumdes_belum_berbadan'=>$request->bumdes_belum_berbadan,
|
||||
// 'jenis_usaha_bumdes'=>$request->jenis_usaha_bumdes,
|
||||
// 'jarak_tempuh_bandara'=>$request->jarak_tempuh_bandara,
|
||||
// 'jarak_tempuh_kampung'=>$request->jarak_tempuh_kampung,
|
||||
// 'sharing_information'=>$request->sharing_information,]);
|
||||
$response = [
|
||||
'nip' => $request->nip,
|
||||
'nama_lengkap' => $request->nama_lengkap,
|
||||
'pangkat' => $request->pangkat,
|
||||
'jabatan' => $request->jabatan,
|
||||
'instansi' => $request->instansi,
|
||||
'kabupaten' => $request->kabupaten,
|
||||
'phone_number' => $request->phone_number,
|
||||
'pesan' => $request->pesan,
|
||||
'alamat' => $request->alamat,
|
||||
'nama_distrik' => $request->nama_distrik,
|
||||
'jumlah_kampung' => $request->jumlah_kampung,
|
||||
'jumlah_penduduk' => $request->jumlah_penduduk,
|
||||
'pendidikan' => $request->pendidikan,
|
||||
'pertanian' => $request->pertanian,
|
||||
'peternakan' => $request->peternakan,
|
||||
'perikanan' => $request->perikanan,
|
||||
'perkebunan' => $request->perkebunan,
|
||||
'kehutanan' => $request->kehutanan,
|
||||
'lain_lain' => $request->lain_lain,
|
||||
'potensi_aset' => $request->potensi_aset,
|
||||
'jenis_pelatihan' => $request->jenis_pelatihan,
|
||||
'kelembagaan_adat' => $request->kelembagaan_adat,
|
||||
'kelembagaan_sosial' => $request->kelembagaan_sosial,
|
||||
'bumdes_sudah_berbadan' => $request->bumdes_sudah_berbadan,
|
||||
'bumdes_belum_berbadan' => $request->bumdes_belum_berbadan,
|
||||
'jenis_usaha_bumdes' => $request->jenis_usaha_bumdes,
|
||||
'jarak_tempuh_bandara' => $request->jarak_tempuh_bandara,
|
||||
'jarak_tempuh_kampung' => $request->jarak_tempuh_kampung,
|
||||
'sharing_information' => $request->sharing_information,
|
||||
];
|
||||
|
||||
// Kembalikan respons JSON
|
||||
return response()->json(['data' => $response, 'message' => 'Data berhasil disimpan']);
|
||||
|
||||
}
|
||||
}
|
101
app/Http/Controllers/LoginController.php
Normal file
101
app/Http/Controllers/LoginController.php
Normal file
@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Login;
|
||||
use App\Http\Requests\StoreLoginRequest;
|
||||
use App\Http\Requests\UpdateLoginRequest;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
class LoginController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function authenticate(Request $request)
|
||||
{
|
||||
$credentials = $request->validate([
|
||||
'email' => ['required', 'email'],
|
||||
'password' => ['required'],
|
||||
]);
|
||||
if (Auth::attempt($credentials)) {
|
||||
$request->session()->regenerate();
|
||||
|
||||
$user = Auth::user();
|
||||
|
||||
if ($user->status === 'super-admin') {
|
||||
return redirect()->intended('/admin');
|
||||
} elseif ($user->status === 'admin') {
|
||||
return redirect()->intended('/home');
|
||||
}
|
||||
} return back()->with('errorLogin', 'Email or Password is invalid');
|
||||
|
||||
}
|
||||
public function login(){
|
||||
return view('login.index');
|
||||
}
|
||||
public function logout(Request $request)
|
||||
{
|
||||
Auth::logout();
|
||||
|
||||
$request->session()->invalidate();
|
||||
|
||||
$request->session()->regenerateToken();
|
||||
|
||||
return redirect('/login');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(StoreLoginRequest $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(Login $login)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(Login $login)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(UpdateLoginRequest $request, Login $login)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(Login $login)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
76
app/Http/Controllers/ManajemenAdminController.php
Normal file
76
app/Http/Controllers/ManajemenAdminController.php
Normal file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\manajemen_admin;
|
||||
use App\Http\Requests\Storemanajemen_adminRequest;
|
||||
use App\Http\Requests\Updatemanajemen_adminRequest;
|
||||
use App\Models\User;
|
||||
|
||||
class ManajemenAdminController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data= User::all();
|
||||
return view('Admin.Manejemen-Admin.index', compact('data'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
|
||||
return view('Admin.Manejemen-Admin.create',[
|
||||
'manajemen-data'=>User::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storemanajemen_adminRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'email'=>'required',
|
||||
'name'=>'required',
|
||||
]);
|
||||
User::create($validateData);
|
||||
return redirect('/super-admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(manajemen_admin $manajemen_admin)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(manajemen_admin $manajemen_admin)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatemanajemen_adminRequest $request, manajemen_admin $manajemen_admin)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(manajemen_admin $manajemen_admin)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
74
app/Http/Controllers/PotensiSdmController.php
Normal file
74
app/Http/Controllers/PotensiSdmController.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\potensi_sdm;
|
||||
use App\Http\Requests\Storepotensi_sdmRequest;
|
||||
use App\Http\Requests\Updatepotensi_sdmRequest;
|
||||
|
||||
class PotensiSdmController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$potensi_sdm=potensi_sdm::all();
|
||||
return view('SDM.create',compact('potensi_sdm'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('SDM.create',[
|
||||
'potensi_sdm'=>potensi_sdm::all()
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Storepotensi_sdmRequest $request)
|
||||
{
|
||||
$validateData=$request->validate([
|
||||
'sumber_daya'=>'required|unique:potensi_sdms'
|
||||
]);
|
||||
// dd($validateData);
|
||||
potensi_sdm::create($validateData);
|
||||
return redirect('/');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*/
|
||||
public function show(potensi_sdm $potensi_sdm)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(potensi_sdm $potensi_sdm)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Updatepotensi_sdmRequest $request, potensi_sdm $potensi_sdm)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy(potensi_sdm $potensi_sdm)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
@ -14,4 +14,4 @@ class Authenticate extends Middleware
|
||||
{
|
||||
return $request->expectsJson() ? null : route('login');
|
||||
}
|
||||
}
|
||||
}
|
28
app/Http/Requests/StoreLoginRequest.php
Normal file
28
app/Http/Requests/StoreLoginRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class StoreLoginRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_bumdesRequest.php
Normal file
28
app/Http/Requests/Storedata_bumdesRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_bumdesRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_clatransRequest.php
Normal file
28
app/Http/Requests/Storedata_clatransRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_clatransRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_deswitaRequest.php
Normal file
28
app/Http/Requests/Storedata_deswitaRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_deswitaRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_distrik_bumdesRequest.php
Normal file
28
app/Http/Requests/Storedata_distrik_bumdesRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_distrik_bumdesRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_distrik_caltransRequest.php
Normal file
28
app/Http/Requests/Storedata_distrik_caltransRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_distrik_caltransRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_distrik_deswitaRequest.php
Normal file
28
app/Http/Requests/Storedata_distrik_deswitaRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_distrik_deswitaRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_kpmdRequest.php
Normal file
28
app/Http/Requests/Storedata_kpmdRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_kpmdRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_pribadi_bumdesRequest.php
Normal file
28
app/Http/Requests/Storedata_pribadi_bumdesRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_pribadi_bumdesRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_pribadi_caltransRequest.php
Normal file
28
app/Http/Requests/Storedata_pribadi_caltransRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_pribadi_caltransRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storedata_pribadi_deswitaRequest.php
Normal file
28
app/Http/Requests/Storedata_pribadi_deswitaRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storedata_pribadi_deswitaRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storemanajemen_adminRequest.php
Normal file
28
app/Http/Requests/Storemanajemen_adminRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storemanajemen_adminRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Storepotensi_sdmRequest.php
Normal file
28
app/Http/Requests/Storepotensi_sdmRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Storepotensi_sdmRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/UpdateLoginRequest.php
Normal file
28
app/Http/Requests/UpdateLoginRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class UpdateLoginRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_bumdesRequest.php
Normal file
28
app/Http/Requests/Updatedata_bumdesRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_bumdesRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_clatransRequest.php
Normal file
28
app/Http/Requests/Updatedata_clatransRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_clatransRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_deswitaRequest.php
Normal file
28
app/Http/Requests/Updatedata_deswitaRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_deswitaRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_distrik_bumdesRequest.php
Normal file
28
app/Http/Requests/Updatedata_distrik_bumdesRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_distrik_bumdesRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_distrik_caltransRequest.php
Normal file
28
app/Http/Requests/Updatedata_distrik_caltransRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_distrik_caltransRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_distrik_deswitaRequest.php
Normal file
28
app/Http/Requests/Updatedata_distrik_deswitaRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_distrik_deswitaRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_kpmdRequest.php
Normal file
28
app/Http/Requests/Updatedata_kpmdRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_kpmdRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_pribadi_bumdesRequest.php
Normal file
28
app/Http/Requests/Updatedata_pribadi_bumdesRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_pribadi_bumdesRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_pribadi_caltransRequest.php
Normal file
28
app/Http/Requests/Updatedata_pribadi_caltransRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_pribadi_caltransRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatedata_pribadi_deswitaRequest.php
Normal file
28
app/Http/Requests/Updatedata_pribadi_deswitaRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatedata_pribadi_deswitaRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatemanajemen_adminRequest.php
Normal file
28
app/Http/Requests/Updatemanajemen_adminRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatemanajemen_adminRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
28
app/Http/Requests/Updatepotensi_sdmRequest.php
Normal file
28
app/Http/Requests/Updatepotensi_sdmRequest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class Updatepotensi_sdmRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
11
app/Models/Login.php
Normal file
11
app/Models/Login.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Login extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
32
app/Models/data_bumdes.php
Normal file
32
app/Models/data_bumdes.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_bumdes extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_bumdes';
|
||||
protected $fillable = [
|
||||
'pendidikan',
|
||||
'pertanian',
|
||||
'peternakan',
|
||||
'perikanan',
|
||||
'perkebunan',
|
||||
'kehutanan',
|
||||
'lain_lain',
|
||||
'potensi_aset',
|
||||
'jenis_pelatihan',
|
||||
'kelembagaan_adat',
|
||||
'kelembagaan_sosial',
|
||||
'bumdes_sudah_berbadan',
|
||||
'bumdes_belum_berbadan',
|
||||
'jenis_usaha_bumdes',
|
||||
'jarak_tempuh_bandara',
|
||||
'jarak_tempuh_kampung',
|
||||
'sharing_information',
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
31
app/Models/data_clatrans.php
Normal file
31
app/Models/data_clatrans.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_clatrans extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table='data_clatrans';
|
||||
protected $fillable=[
|
||||
'pendidikan',
|
||||
'pertanian',
|
||||
'peternakan',
|
||||
'perikanan',
|
||||
'perkebunan',
|
||||
'kehutanan',
|
||||
'lain_lain',
|
||||
'kelembagaan_adat',
|
||||
'kelembagaan_sosial',
|
||||
'no_sk_caltrans',
|
||||
'tgl_sk_caltrans',
|
||||
'penandatangan_sk_caltrans',
|
||||
'jarak_tempuh_bandara',
|
||||
'jarak_tempuh_kampung',
|
||||
'kampung_binaan',
|
||||
'jenis_pelatihan',
|
||||
'sharing_information',
|
||||
];
|
||||
}
|
26
app/Models/data_deswita.php
Normal file
26
app/Models/data_deswita.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_deswita extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_deswitas';
|
||||
protected $fillable = [
|
||||
'pendidikan',
|
||||
'atraksi',
|
||||
'amenitas',
|
||||
'aksesibilitas',
|
||||
'kelembagaan',
|
||||
'jumlah_pokdarwis',
|
||||
'jenis_pelatihan',
|
||||
'kampung_binaan',
|
||||
'jarak_tempuh_bandara',
|
||||
'jarak_tempuh_kampung',
|
||||
'sharing_information',
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
18
app/Models/data_distrik_bumdes.php
Normal file
18
app/Models/data_distrik_bumdes.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_distrik_bumdes extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_distrik_bumdes';
|
||||
protected $fillable = [
|
||||
'nama_distrik',
|
||||
'jumlah_kampung',
|
||||
'jumlah_penduduk'
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
18
app/Models/data_distrik_caltrans.php
Normal file
18
app/Models/data_distrik_caltrans.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_distrik_caltrans extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_distrik_caltrans';
|
||||
protected $fillable = [
|
||||
'nama_distrik',
|
||||
'jumlah_kampung',
|
||||
'jumlah_penduduk'
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
18
app/Models/data_distrik_deswita.php
Normal file
18
app/Models/data_distrik_deswita.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_distrik_deswita extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_distrik_deswitas';
|
||||
protected $fillable = [
|
||||
'nama_distrik',
|
||||
'jumlah_kampung',
|
||||
'jumlah_penduduk'
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
29
app/Models/data_kpmd.php
Normal file
29
app/Models/data_kpmd.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_kpmd extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_kpmds';
|
||||
protected $fillable = [
|
||||
'pendidikan',
|
||||
'pertanian',
|
||||
'peternakan',
|
||||
'perikanan',
|
||||
'perkebunan',
|
||||
'kehutanan',
|
||||
'lain_lain',
|
||||
'kelembagaan_adat',
|
||||
'kelembagaan_sosial',
|
||||
'jarak_tempuh_bandara',
|
||||
'jarak_tempuh_kampung',
|
||||
'jenis_pelatihan',
|
||||
'kampung_binaan',
|
||||
'sharing_information',
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
24
app/Models/data_pribadi_bumdes.php
Normal file
24
app/Models/data_pribadi_bumdes.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_pribadi_bumdes extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_pribadi_bumdes';
|
||||
protected $fillable = [
|
||||
'nip',
|
||||
'nama_lengkap',
|
||||
'pangkat',
|
||||
'jabatan',
|
||||
'instansi',
|
||||
'kabupaten',
|
||||
'phone_number',
|
||||
'pesan',
|
||||
'alamat'
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
24
app/Models/data_pribadi_caltrans.php
Normal file
24
app/Models/data_pribadi_caltrans.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_pribadi_caltrans extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_pribadi_caltrans';
|
||||
protected $fillable = [
|
||||
'nip',
|
||||
'nama_lengkap',
|
||||
'pangkat',
|
||||
'jabatan',
|
||||
'instansi',
|
||||
'kabupaten',
|
||||
'phone_number',
|
||||
'pesan',
|
||||
'alamat'
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
24
app/Models/data_pribadi_deswita.php
Normal file
24
app/Models/data_pribadi_deswita.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class data_pribadi_deswita extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'data_pribadi_deswitas';
|
||||
protected $fillable = [
|
||||
'nip',
|
||||
'nama_lengkap',
|
||||
'pangkat',
|
||||
'jabatan',
|
||||
'instansi',
|
||||
'kabupaten',
|
||||
'phone_number',
|
||||
'pesan',
|
||||
'alamat'
|
||||
// Kolom-kolom lain yang ingin diizinkan untuk mass assignment
|
||||
];
|
||||
}
|
16
app/Models/manajemen_admin.php
Normal file
16
app/Models/manajemen_admin.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class manajemen_admin extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table="manajemen_admins";
|
||||
protected $fillable = [
|
||||
'email',
|
||||
'password',
|
||||
];
|
||||
}
|
14
app/Models/potensi_sdm.php
Normal file
14
app/Models/potensi_sdm.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class potensi_sdm extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table='potensi_sdms';
|
||||
protected $fillable=['sumber_daya'];
|
||||
|
||||
}
|
66
app/Policies/DataBumdesPolicy.php
Normal file
66
app/Policies/DataBumdesPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_bumdes;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataBumdesPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_bumdes $dataBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_bumdes $dataBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_bumdes $dataBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_bumdes $dataBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_bumdes $dataBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataClatransPolicy.php
Normal file
66
app/Policies/DataClatransPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_clatrans;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataClatransPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_clatrans $dataClatrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_clatrans $dataClatrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_clatrans $dataClatrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_clatrans $dataClatrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_clatrans $dataClatrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataDeswitaPolicy.php
Normal file
66
app/Policies/DataDeswitaPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_deswita;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataDeswitaPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_deswita $dataDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_deswita $dataDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_deswita $dataDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_deswita $dataDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_deswita $dataDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataDistrikBumdesPolicy.php
Normal file
66
app/Policies/DataDistrikBumdesPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_distrik_bumdes;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataDistrikBumdesPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_distrik_bumdes $dataDistrikBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_distrik_bumdes $dataDistrikBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_distrik_bumdes $dataDistrikBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_distrik_bumdes $dataDistrikBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_distrik_bumdes $dataDistrikBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataDistrikCaltransPolicy.php
Normal file
66
app/Policies/DataDistrikCaltransPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_distrik_caltrans;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataDistrikCaltransPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_distrik_caltrans $dataDistrikCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_distrik_caltrans $dataDistrikCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_distrik_caltrans $dataDistrikCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_distrik_caltrans $dataDistrikCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_distrik_caltrans $dataDistrikCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataDistrikDeswitaPolicy.php
Normal file
66
app/Policies/DataDistrikDeswitaPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_distrik_deswita;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataDistrikDeswitaPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_distrik_deswita $dataDistrikDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_distrik_deswita $dataDistrikDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_distrik_deswita $dataDistrikDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_distrik_deswita $dataDistrikDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_distrik_deswita $dataDistrikDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataKpmdPolicy.php
Normal file
66
app/Policies/DataKpmdPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_kpmd;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataKpmdPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_kpmd $dataKpmd): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_kpmd $dataKpmd): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_kpmd $dataKpmd): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_kpmd $dataKpmd): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_kpmd $dataKpmd): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataPribadiBumdesPolicy.php
Normal file
66
app/Policies/DataPribadiBumdesPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_pribadi_bumdes;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataPribadiBumdesPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_pribadi_bumdes $dataPribadiBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_pribadi_bumdes $dataPribadiBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_pribadi_bumdes $dataPribadiBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_pribadi_bumdes $dataPribadiBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_pribadi_bumdes $dataPribadiBumdes): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataPribadiCaltransPolicy.php
Normal file
66
app/Policies/DataPribadiCaltransPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_pribadi_caltrans;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataPribadiCaltransPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_pribadi_caltrans $dataPribadiCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_pribadi_caltrans $dataPribadiCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_pribadi_caltrans $dataPribadiCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_pribadi_caltrans $dataPribadiCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_pribadi_caltrans $dataPribadiCaltrans): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/DataPribadiDeswitaPolicy.php
Normal file
66
app/Policies/DataPribadiDeswitaPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\data_pribadi_deswita;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class DataPribadiDeswitaPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, data_pribadi_deswita $dataPribadiDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, data_pribadi_deswita $dataPribadiDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, data_pribadi_deswita $dataPribadiDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, data_pribadi_deswita $dataPribadiDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, data_pribadi_deswita $dataPribadiDeswita): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/LoginPolicy.php
Normal file
66
app/Policies/LoginPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\Login;
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class LoginPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, Login $login): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, Login $login): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, Login $login): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, Login $login): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, Login $login): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/ManajemenAdminPolicy.php
Normal file
66
app/Policies/ManajemenAdminPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\manajemen_admin;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class ManajemenAdminPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, manajemen_admin $manajemenAdmin): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, manajemen_admin $manajemenAdmin): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, manajemen_admin $manajemenAdmin): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, manajemen_admin $manajemenAdmin): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, manajemen_admin $manajemenAdmin): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
66
app/Policies/PotensiSdmPolicy.php
Normal file
66
app/Policies/PotensiSdmPolicy.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\potensi_sdm;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class PotensiSdmPolicy
|
||||
{
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*/
|
||||
public function view(User $user, potensi_sdm $potensiSdm): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*/
|
||||
public function update(User $user, potensi_sdm $potensiSdm): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*/
|
||||
public function delete(User $user, potensi_sdm $potensiSdm): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*/
|
||||
public function restore(User $user, potensi_sdm $potensiSdm): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*/
|
||||
public function forceDelete(User $user, potensi_sdm $potensiSdm): bool
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const HOME = '/home';
|
||||
public const HOME = '/admin';
|
||||
|
||||
/**
|
||||
* Define your route model bindings, pattern filters, and other route configuration.
|
||||
@ -37,4 +37,4 @@ class RouteServiceProvider extends ServiceProvider
|
||||
->group(base_path('routes/web.php'));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
23
database/factories/DataBumdesFactory.php
Normal file
23
database/factories/DataBumdesFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_bumdes>
|
||||
*/
|
||||
class DataBumdesFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataClatransFactory.php
Normal file
23
database/factories/DataClatransFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_clatrans>
|
||||
*/
|
||||
class DataClatransFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataDeswitaFactory.php
Normal file
23
database/factories/DataDeswitaFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_deswita>
|
||||
*/
|
||||
class DataDeswitaFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataDistrikBumdesFactory.php
Normal file
23
database/factories/DataDistrikBumdesFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_distrik_bumdes>
|
||||
*/
|
||||
class DataDistrikBumdesFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataDistrikCaltransFactory.php
Normal file
23
database/factories/DataDistrikCaltransFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_distrik_caltrans>
|
||||
*/
|
||||
class DataDistrikCaltransFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataDistrikDeswitaFactory.php
Normal file
23
database/factories/DataDistrikDeswitaFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_distrik_deswita>
|
||||
*/
|
||||
class DataDistrikDeswitaFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataKpmdFactory.php
Normal file
23
database/factories/DataKpmdFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_kpmd>
|
||||
*/
|
||||
class DataKpmdFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataPribadiBumdesFactory.php
Normal file
23
database/factories/DataPribadiBumdesFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_pribadi_bumdes>
|
||||
*/
|
||||
class DataPribadiBumdesFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataPribadiCaltransFactory.php
Normal file
23
database/factories/DataPribadiCaltransFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_pribadi_caltrans>
|
||||
*/
|
||||
class DataPribadiCaltransFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/DataPribadiDeswitaFactory.php
Normal file
23
database/factories/DataPribadiDeswitaFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\data_pribadi_deswita>
|
||||
*/
|
||||
class DataPribadiDeswitaFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/LoginFactory.php
Normal file
23
database/factories/LoginFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Login>
|
||||
*/
|
||||
class LoginFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/ManajemenAdminFactory.php
Normal file
23
database/factories/ManajemenAdminFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\manajemen_admin>
|
||||
*/
|
||||
class ManajemenAdminFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
23
database/factories/PotensiSdmFactory.php
Normal file
23
database/factories/PotensiSdmFactory.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\potensi_sdm>
|
||||
*/
|
||||
class PotensiSdmFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
@ -16,7 +16,8 @@ return new class extends Migration
|
||||
$table->string('name');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
$table->string('password')->default('$2y$10$suTqdb4eD8tEKhWyVyqE1uOZHZawy6npwwzicu1opiUiT0Zh40QNK'); //password
|
||||
$table->string('status')->default('admin');
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
});
|
||||
@ -29,4 +30,4 @@ return new class extends Migration
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
}
|
||||
};
|
||||
};
|
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_kpmds', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('pendidikan');
|
||||
$table->string('pertanian');
|
||||
$table->string('peternakan');
|
||||
$table->string('perikanan');
|
||||
$table->string('perkebunan');
|
||||
$table->string('kehutanan');
|
||||
$table->string('lain_lain');
|
||||
$table->string('kelembagaan_adat');
|
||||
$table->string('kelembagaan_sosial');
|
||||
$table->string('jarak_tempuh_bandara');
|
||||
$table->string('jarak_tempuh_kampung');
|
||||
$table->string('jenis_pelatihan');
|
||||
$table->string('kampung_binaan');
|
||||
$table->string('sharing_information');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_kpmds');
|
||||
}
|
||||
};
|
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_pribadi_bumdes', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nip')->unique();
|
||||
$table->string('nama_lengkap')->notnullable();
|
||||
$table->string('pangkat')->notnullable();
|
||||
$table->string('jabatan')->notnullable();
|
||||
$table->string('instansi')->notnullable();
|
||||
$table->string('kabupaten')->notnullable();
|
||||
$table->string('phone_number')->notnullable();
|
||||
$table->string('pesan')->notnullable();
|
||||
$table->string('alamat')->notnullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_pribadi_bumdes');
|
||||
}
|
||||
};
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_distrik_bumdes', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nama_distrik');
|
||||
$table->string('jumlah_kampung');
|
||||
$table->string('jumlah_penduduk');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_distrik_bumdes');
|
||||
}
|
||||
};
|
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_pribadi_deswitas', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nip')->unique();
|
||||
$table->string('nama_lengkap')->notnullable();
|
||||
$table->string('pangkat')->notnullable();
|
||||
$table->string('jabatan')->notnullable();
|
||||
$table->string('instansi')->notnullable();
|
||||
$table->string('kabupaten')->notnullable();
|
||||
$table->string('phone_number')->notnullable();
|
||||
$table->string('pesan')->notnullable();
|
||||
$table->string('alamat')->notnullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_pribadi_deswitas');
|
||||
}
|
||||
};
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_distrik_deswitas', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nama_distrik');
|
||||
$table->string('jumlah_kampung');
|
||||
$table->string('jumlah_penduduk');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_distrik_deswitas');
|
||||
}
|
||||
};
|
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_pribadi_caltrans', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nip')->unique();
|
||||
$table->string('nama_lengkap')->notnullable();
|
||||
$table->string('pangkat')->notnullable();
|
||||
$table->string('jabatan')->notnullable();
|
||||
$table->string('instansi')->notnullable();
|
||||
$table->string('kabupaten')->notnullable();
|
||||
$table->string('phone_number')->notnullable();
|
||||
$table->string('pesan')->notnullable();
|
||||
$table->string('alamat')->notnullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_pribadi_caltrans');
|
||||
}
|
||||
};
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_distrik_caltrans', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nama_distrik');
|
||||
$table->string('jumlah_kampung');
|
||||
$table->string('jumlah_penduduk');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_distrik_caltrans');
|
||||
}
|
||||
};
|
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('potensi_sdms', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('sumber_daya')->notnullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('potensi_sdms');
|
||||
}
|
||||
};
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_bumdes', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('pendidikan');
|
||||
$table->string('pertanian');
|
||||
$table->string('peternakan');
|
||||
$table->string('perikanan');
|
||||
$table->string('perkebunan');
|
||||
$table->string('kehutanan');
|
||||
$table->string('lain_lain');
|
||||
$table->string('potensi_aset');
|
||||
$table->string('jenis_pelatihan');
|
||||
$table->string('kelembagaan_adat');
|
||||
$table->string('kelembagaan_sosial');
|
||||
$table->string('bumdes_sudah_berbadan');
|
||||
$table->string('bumdes_belum_berbadan');
|
||||
$table->string('jenis_usaha_bumdes');
|
||||
$table->string('jarak_tempuh_bandara');
|
||||
$table->string('jarak_tempuh_kampung');
|
||||
$table->string('sharing_information');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_bumdes');
|
||||
}
|
||||
};
|
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_deswitas', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('pendidikan');
|
||||
$table->string('atraksi');
|
||||
$table->string('amenitas');
|
||||
$table->string('aksesibilitas');
|
||||
$table->string('kelembagaan');
|
||||
$table->string('jumlah_pokdarwis');
|
||||
$table->string('jenis_pelatihan');
|
||||
$table->string('kampung_binaan'); ;
|
||||
$table->string('jarak_tempuh_bandara');
|
||||
$table->string('jarak_tempuh_kampung');
|
||||
$table->string('sharing_information');
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_deswitas');
|
||||
}
|
||||
};
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_clatrans', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('pendidikan');
|
||||
$table->string('pertanian');
|
||||
$table->string('peternakan');
|
||||
$table->string('perikanan');
|
||||
$table->string('perkebunan');
|
||||
$table->string('kehutanan');
|
||||
$table->string('lain_lain');
|
||||
$table->string('kelembagaan_adat');
|
||||
$table->string('kelembagaan_sosial');
|
||||
$table->string('no_sk_caltrans');
|
||||
$table->date('tgl_sk_caltrans');
|
||||
$table->string('penandatangan_sk_caltrans');
|
||||
$table->string('jarak_tempuh_bandara');
|
||||
$table->string('jarak_tempuh_kampung');
|
||||
$table->string('kampung_binaan');
|
||||
$table->string('jenis_pelatihan');
|
||||
$table->string('sharing_information');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_clatrans');
|
||||
}
|
||||
};
|
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('logins', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('logins');
|
||||
}
|
||||
};
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('manajemen_admins', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('email')->unique();
|
||||
$table->string('password')->default('$2y$10$u8KZtzUT6WWgveYj0ylI7OD4txOBrxKJlJbrYK0b68LZPv7XU1McK'); //password
|
||||
$table->string('status')->default('admin');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('manajemen_admins');
|
||||
}
|
||||
};
|
17
database/seeders/DataBumdesSeeder.php
Normal file
17
database/seeders/DataBumdesSeeder.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DataBumdesSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
17
database/seeders/DataClatransSeeder.php
Normal file
17
database/seeders/DataClatransSeeder.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DataClatransSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
17
database/seeders/DataDeswitaSeeder.php
Normal file
17
database/seeders/DataDeswitaSeeder.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DataDeswitaSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
17
database/seeders/DataDistrikBumdesSeeder.php
Normal file
17
database/seeders/DataDistrikBumdesSeeder.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DataDistrikBumdesSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user