コード例 #1
0
 public function getKecamatan()
 {
     $dataInstansi = DataInstansi::find(1);
     $kabKotaId = $dataInstansi->kabkota_id;
     $data = ['list' => Districts::whereRegencyId($kabKotaId)->get()];
     return View::make('admin.option', $data);
 }
コード例 #2
0
 public function edit($id)
 {
     $dataInstansi = DataInstansi::find(1);
     $kabKotaId = $dataInstansi->kabkota_id;
     $data['kecamatan'] = Districts::whereRegencyId($kabKotaId)->get();
     $data['datawartel'] = $this->wartel->tampilData($id);
     return View::make('admin.warteledit', $data);
 }
コード例 #3
0
 public function edit($id)
 {
     $data['datatower'] = $this->tower_bts->tampilData($id);
     //kecamatan
     $dataInstansi = DataInstansi::find(1);
     $kabKotaId = $dataInstansi->kabkota_id;
     $data['kecamatan'] = Districts::whereRegencyId($kabKotaId)->get();
     $data['datapemilik'] = DataPemilik::all();
     return View::make('admin.toweredit', $data);
 }
コード例 #4
0
ファイル: routes.php プロジェクト: alfhan/dishubparpostel
 Route::get('admin-page/wartel/tambah', function () {
     $dataInstansi = DataInstansi::find(1);
     $kabKotaId = $dataInstansi->kabkota_id;
     $data['kecamatan'] = Districts::whereRegencyId($kabKotaId)->get();
     return View::make('admin.warteltambah', $data);
 });
 Route::post('admin-page/wartel/simpan', 'wartelController@simpan');
 Route::get('admin-page/wartel/edit/{id}', 'wartelController@edit');
 Route::post('admin-page/wartel/proses-edit', 'wartelController@prosesEdit');
 Route::get('admin-page/wartel/hapus/{id}', 'wartelController@hapus');
 //Warnet
 Route::get('admin-page/warnet', 'warnetController@admintampil');
 Route::get('admin-page/warnet/tambah', function () {
     $dataInstansi = DataInstansi::find(1);
     $kabKotaId = $dataInstansi->kabkota_id;
     $data['kecamatan'] = Districts::whereRegencyId($kabKotaId)->get();
     return View::make('admin.warnettambah', $data);
 });
 Route::post('admin-page/warnet/simpan', 'warnetController@simpan');
 Route::get('admin-page/warnet/edit/{id}', 'warnetController@edit');
 Route::post('admin-page/warnet/proses-edit', 'warnetController@prosesEdit');
 Route::get('admin-page/warnet/hapus/{id}', 'warnetController@hapus');
 //Radio
 Route::get('admin-page/radio', 'radioController@admintampil');
 Route::get('admin-page/radio/tambah', function () {
     return View::make('admin.radiotambah');
 });
 Route::post('admin-page/radio/simpan', 'radioController@simpan');
 Route::get('admin-page/radio/edit/{id}', 'radioController@edit');
 Route::post('admin-page/radio/proses-edit', 'radioController@prosesEdit');
 Route::get('admin-page/radio/hapus/{id}', 'radioController@hapus');