Skip to content

Commit

Permalink
Friday Deliverables
Browse files Browse the repository at this point in the history
He


Former-commit-id: 289e204
  • Loading branch information
cmosh committed Jul 16, 2015
1 parent c38f871 commit cb606bf
Show file tree
Hide file tree
Showing 58 changed files with 22,151 additions and 98 deletions.
17 changes: 15 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString
APP_KEY=24MVGRtCqphDEMKJ4OdUElOhWSD3AcPc

DB_HOST=localhost
DB_DATABASE=homestead
DB_DATABASE=mnch
DB_USERNAME=homestead
DB_PASSWORD=secret

CACHE_DRIVER=file
SESSION_DRIVER=file

APP_ENV=dreamhost
APP_DEBUG=true
APP_KEY=24MVGRtCqphDEMKJ4OdUElOhWSD3AcPc

DB_HOST=chaidb.sanaastory.com
DB_DATABASE=mnch
DB_USERNAME=chaidb
DB_PASSWORD=projectchai

CACHE_DRIVER=file
SESSION_DRIVER=file

11 changes: 11 additions & 0 deletions .local.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
APP_ENV=local
APP_DEBUG=true
APP_KEY=24MVGRtCqphDEMKJ4OdUElOhWSD3AcPc

DB_HOST=localhost
DB_DATABASE=mnch
DB_USERNAME=homestead
DB_PASSWORD=secret

CACHE_DRIVER=file
SESSION_DRIVER=file
12 changes: 12 additions & 0 deletions app/Facilities.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class Facilities extends Model {

protected $table = 'Facilities';

protected $fillable = ['Index','FacilityName', 'FacilityCode','County','Type','Owner'];


}
102 changes: 102 additions & 0 deletions app/Http/Controllers/ch.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?php namespace App\Http\Controllers;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use Illuminate\Http\Request;
use App\Facilities ;




class ch extends Controller {

/**
* Display a listing of the resource.
*
* @return Response
*/


public function index()
{

$AllFacilities = Facilities::all();

Facilities::chunk(200, function ($AllFacilities) {
foreach ($AllFacilities as $Facilities) {
return $AllFacilities;
//
}
});


return view('ch.index2')->with('AllFacilities',$AllFacilities);

}

/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}

/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}

/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}

}
102 changes: 102 additions & 0 deletions app/Http/Controllers/imci.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?php namespace App\Http\Controllers;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use Illuminate\Http\Request;
use App\Participants ;




class imci extends Controller {

/**
* Display a listing of the resource.
*
* @return Response
*/


public function index()
{

$AllParticipants = Participants::all();

Participants::chunk(200, function ($AllParticipants) {
foreach ($AllParticipants as $AllParticipants) {
return $AllParticipants;
//
}
});


return view('imci.index')->with('AllParticipants',$AllParticipants);

}

/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}

/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}

/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}

}
102 changes: 102 additions & 0 deletions app/Http/Controllers/mnh.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?php namespace App\Http\Controllers;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use Illuminate\Http\Request;
use App\Facilities ;




class mnh extends Controller {

/**
* Display a listing of the resource.
*
* @return Response
*/


public function index()
{

$AllFacilities = Facilities::all();

Facilities::chunk(200, function ($AllFacilities) {
foreach ($AllFacilities as $Facilities) {
return $AllFacilities;
//
}
});


return view('mnh.index')->with('AllFacilities',$AllFacilities);

}

/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}

/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}

/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}

/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}

}
13 changes: 13 additions & 0 deletions app/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
*/

Route::get('test','TestController@index');
Route::get('ch','ch@index');
Route::get('ch/survey',function () {
return view('ch/survey/index');
});
Route::get('mnh','mnh@index');
Route::get('mnh/survey',function () {
return view('mnh/survey/index');
});
Route::get('imci','imci@index');
Route::get('imci/survey',function () {
return view('imci/survey/index');
});

Route::get('admin', function () {
return view('dashboard');
});
Expand Down
12 changes: 12 additions & 0 deletions app/Participants.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php namespace App;

use Illuminate\Database\Eloquent\Model;

class Participants extends Model {

protected $table = 'Participants';

protected $fillable = ['Index','Name_of_Participant', 'FacilityName','mobile_Number','email_address','training_site'];


}
Loading

0 comments on commit cb606bf

Please sign in to comment.