Exemplo n.º 1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     \App\Models\Clinic::create(['name' => 'Philcare Makati', 'location' => serialize(['lat' => 14.55609, 'lon' => 121.02189, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Aventus Medical Care', 'location' => serialize(['lat' => 14.5702459, 'lon' => 121.0217766, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'FortMED Medical Clinic', 'location' => serialize(['lat' => 14.5630284, 'lon' => 121.0224857, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Biomedix Inc', 'location' => serialize(['lat' => 14.558418, 'lon' => 121.014383, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'HP Plus', 'location' => serialize(['lat' => 14.4898456, 'lon' => 121.0397747, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Taguig-Pateros District Hospital', 'location' => serialize(['lat' => 14.5108532, 'lon' => 121.0341501, 'city' => 'Taguig, Metro Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Paranaque Premier Medical Center', 'location' => serialize(['lat' => 14.4885432, 'lon' => 120.9930613, 'city' => 'Parañaque, Metro Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'PNP General Hospital', 'location' => serialize(['lat' => 14.6315065, 'lon' => 121.04531, 'city' => 'Quezon City, Metro Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Delos Santos Medical Centre', 'location' => serialize(['lat' => 14.6200298, 'lon' => 121.0175623, 'city' => 'Quezon City, Metro Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'AFP Medical Center. Gen V.luna', 'location' => serialize(['lat' => 14.63485, 'lon' => 121.051955, 'city' => 'Quezon City, Metro Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Valenzuela General Hospital', 'location' => serialize(['lat' => 14.6897932, 'lon' => 120.9780711, 'city' => 'Valenzuela, Metro Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Dr. Jose Fabella Memorial Hospital', 'location' => serialize(['lat' => 14.606207, 'lon' => 120.984143, 'city' => 'Manila, City of Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Canossa Health And Social Center', 'location' => serialize(['lat' => 14.6235757, 'lon' => 120.9620583, 'city' => 'Tondo, Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Centuria Medical Makati', 'location' => serialize(['lat' => 14.566844, 'lon' => 121.028749, 'city' => 'Makati Avenue', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Derma 360', 'location' => serialize(['lat' => 14.565516, 'lon' => 121.036438, 'city' => 'Estrella Street, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Asian Center for Dental Specialties', 'location' => serialize(['lat' => 14.554642, 'lon' => 121.015072, 'city' => 'Legaspi Village 1229, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Patient First Medical Center', 'location' => serialize(['lat' => 14.552213, 'lon' => 121.025712, 'city' => 'Parkway Dr, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Dermclinic', 'location' => serialize(['lat' => 14.5519936, 'lon' => 121.0155686, 'city' => 'Legazpi Village, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Aventus Medical Care, Inc.', 'location' => serialize(['lat' => 14.5702459, 'lon' => 121.0217766, 'city' => 'Legazpi, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Clarence Slimming and Dermatology Centre', 'location' => serialize(['lat' => 14.5587504, 'lon' => 121.0329461, 'city' => '28 Jupiter, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Skin Metro Face & Body Care', 'location' => serialize(['lat' => 14.570218, 'lon' => 121.0218649, 'city' => 'Street corner Dela Rosa Street, Legaspi Village, Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Shinagawa Lasik and Aesthetics Philippines', 'location' => serialize(['lat' => 14.556576, 'lon' => 121.022229, 'city' => 'Paseo de Roxas, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Contours Advanced Face and Body Sculpting Institute', 'location' => serialize(['lat' => 14.537812, 'lon' => 121.017451, 'city' => 'Paseo De Magallanes 1232, Makati', 'country' => 'PH'])]);
 }
Exemplo n.º 2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     \App\Models\Clinic::create(['name' => 'Philcare Makati', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.55609, 'lon' => 121.02189, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Aventus Medical Care', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.5702459, 'lon' => 121.0217766, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'FortMED Medical Clinic', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.5630284, 'lon' => 121.0224857, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Biomedix Inc', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.558418, 'lon' => 121.014383, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'HP Plus', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.4898456, 'lon' => 121.0397747, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Delos Santos Medical Centre', 'city' => 'Quezon City', 'location' => serialize(['lat' => 14.6200298, 'lon' => 121.0175623, 'city' => 'Quezon City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'AFP Medical Center. Gen V.luna', 'city' => 'Quezon City', 'location' => serialize(['lat' => 14.63485, 'lon' => 121.051955, 'city' => 'Quezon City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Canossa Health And Social Center', 'city' => 'Manila', 'location' => serialize(['lat' => 14.6235757, 'lon' => 120.9620583, 'city' => 'Tondo, Manila', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Centuria Medical Makati', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.566844, 'lon' => 121.028749, 'city' => 'Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Derma 360', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.565516, 'lon' => 121.036438, 'city' => 'Estrella Street, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Asian Center for Dental Specialties', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.554642, 'lon' => 121.015072, 'city' => 'Legaspi Village 1229, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Patient First Medical Center', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.552213, 'lon' => 121.025712, 'city' => 'Parkway Dr, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Dermclinic', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.5519936, 'lon' => 121.0155686, 'city' => 'Legazpi Village, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Aventus Medical Care, Inc.', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.5702459, 'lon' => 121.0217766, 'city' => 'Legazpi, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Clarence Slimming and Dermatology Centre', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.5587504, 'lon' => 121.0329461, 'city' => '28 Jupiter, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Skin Metro Face & Body Care', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.570218, 'lon' => 121.0218649, 'city' => 'Street corner Dela Rosa Street, Legaspi Village, Makati City', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Shinagawa Lasik and Aesthetics Philippines', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.556576, 'lon' => 121.022229, 'city' => 'Paseo de Roxas, Makati', 'country' => 'PH'])]);
     \App\Models\Clinic::create(['name' => 'Contours Advanced Face and Body Sculpting Institute', 'city' => 'Makati City', 'location' => serialize(['lat' => 14.537812, 'lon' => 121.017451, 'city' => 'Paseo De Magallanes 1232, Makati', 'country' => 'PH'])]);
     //        // Tarlac Clinic
     //        \App\Models\Clinic::create([
     //            'name'      => 'Contours Advanced Face and Body Sculpting Institute',
     //            'city'      => 'Makati City',
     //            'location'  => serialize([
     //                'lat' => 14.537812,
     //                'lon' => 121.017451,
     //                'city'      => 'Paseo De Magallanes 1232, Makati',
     //                'country'   => 'PH'
     //            ])
     //        ]);
 }
 /**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = Clinic::find();
     // add conditions that should always apply here
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     $this->load($params);
     if (!$this->validate()) {
         // uncomment the following line if you do not want to return any records when validation fails
         // $query->where('0=1');
         return $dataProvider;
     }
     // grid filtering conditions
     $query->andFilterWhere(['ID' => $this->ID, 'cl_name' => $this->cl_name]);
     $query->andFilterWhere(['like', 'cl_proistamenos', $this->cl_proistamenos])->andFilterWhere(['like', 'cl_tomearxhs', $this->cl_tomearxhs])->andFilterWhere(['like', 'cl_dieuthunths', $this->cl_dieuthunths])->andFilterWhere(['like', 'cl_phone1', $this->cl_phone1])->andFilterWhere(['like', 'cl_phone2', $this->cl_phone2]);
     return $dataProvider;
 }
 /**
  * Finds the Clinic model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return Clinic the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = Clinic::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }