You need to sign in or sign up before continuing.
Commit f7f4a577 by Ann

Changed

parent fff4a77d
......@@ -2,9 +2,67 @@
namespace App\Http\Controllers;
use App\Downloads;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class DownloadsController extends Controller
{
//
public function store(Request $request)
{
$input = $request->all();
$rules = [
'title' => 'required',
'url' => 'required',
'filename' => 'required',
'filetype' => 'required'
];
$messages = [
'title.required' => 'Title required',
'url.required' => 'url required',
'filename.required' => 'file name required',
'filetype.required' => 'file type required'
];
$validator = Validator::make($input, $rules, $messages);
if ($validator->passes()) {
$downloads = new Downloads();
$downloads->title = $input['title'];
// $downloads->filename = $input['filename'];
$downloads->filetype = $input['filetype'];
$downloads->filename = filehelper::getRandomName($input['filetype']);
$downloads->url = $input['url'];
// $image->save(public_path() . '/uploads' . $largePath);
$downloads->save();
$data['status'] = 1;
$data['message'] = "Uploaded successully";
return response($data, 200);
} else {
$data['message'] = $validator->errors(0);
$data['status'] = 0;
return response($data, 400);
}
}
public function index()
{
$downloads = Downloads::all();
if ($downloads) {
$data['downloads'] = $downloads;
$data['status'] = 1;
$data['message'] = "Downloads retrieved successfully";
return response($data, 200);
} else {
$data['status'] = 0;
$data['message'] = "Downloads retrieval failed";
return response($data, 400);
}
}
}
......@@ -2,9 +2,55 @@
namespace App\Http\Controllers;
use App\query;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class QueryController extends Controller
{
//
public function index($id)
{
$query = DB::table('query')
->join('query_type', 'query.query_type', '=', 'query_type.id')
->select('query.*','query_type.type as query_name')
//->selectRaw("DATE_FORMAT('query.query_date', '%d/%l/%Y') as date")
->where('query.submitted_by','=',$id)
->orderBy('query.id','desc')
->get();
if ($query) {
$data['query'] = $query;
$data['status'] = 1;
$data['message'] = "Queries retrieved successfully";
return response($data, 200);
} else {
$data['status'] = 0;
$data['message'] = "Query retrieval failed";
return response($data, 400);
}
}
public function store(Request $request)
{
$input = $request->all();
$validator = \Validator::make($input, [
'query_type' => 'required|integer',
'submitted_by' => 'required|integer',
'query_desc' => 'required|string',
]);
if ($validator->passes()) {
$query = new query();
$query->query_type = $request->input('query_type');
$query->submitted_by = $request->input('submitted_by');
$query->query_desc = $request->input('query_desc');
$query->query_date = Carbon::now();
$query->save();
$data['status'] = 1;
$data['message'] = 'Query submitted successfully';
$data['id'] = $query->id;
return response($data, 200);
} else {
$data['message'] = $validator->errors()->all();
$data['status'] = 0;
return response($data, 400);
}
}
}
......@@ -7,22 +7,68 @@ use App\NativeAddress;
use App\OverseasAddress;
use App\Users;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
class RegistrationController extends Controller
{
// public function index($id = null)
public function index($id = null)
{
if ($id == null) {
//with(['overseas_address','overseas_address.user_id','assignedEmployee','assignedEmployee.designation'])
// $users = Users::with(['NativeAddress'])->get();
$users = DB::table('users as us')
->join('native_address as na', 'us.id', '=', 'na.user_id')
->join('overseas_address as oa', 'us.id', '=', 'oa.user_id')
->select('us.*', 'na.*', 'oa.*')
->orderBy('us.id','desc')
->get();
// print_r($users);
//return response($users,200);
return view("registered_users", compact('users'));
} else {
$data['registration'] = $this->show($id);
return response($data, 200);
}
}
public function view($id)
{
$user = DB::table('users as us')
->join('native_address as na', 'us.id', '=', 'na.user_id')
->join('overseas_address as oa', 'us.id', '=', 'oa.user_id')
->select('us.*', 'na.*', 'oa.*')
->where('us.id', '=', $id)
->get();
$familydetails = DB::table('users as us')
->join('family_member_details as fmd', 'us.id', '=', 'fmd.relative_of')
->select('fmd.*')
->where('us.id', '=', $id)
->get();
return view("registered_users_details", compact('user','familydetails'));
}
public function verify($id)
{
$user = DB::table('users as us')
->join('native_address as na', 'us.id', '=', 'na.user_id')
->join('overseas_address as oa', 'us.id', '=', 'oa.user_id')
->select('us.*', 'na.*', 'oa.*')
->where('us.id', '=', $id)
->get();
$familydetails = DB::table('users as us')
->join('family_member_details as fmd', 'us.id', '=', 'fmd.relative_of')
->select('fmd.*')
->where('us.id', '=', $id)
->get();
return view("verify_users", compact('user','familydetails'));
}
// public function show($id)
// {
// if ($id == null) {
//
// $data['registration'] = Users::with(['overseas_address','overseas_address.user_id','assignedEmployee','assignedEmployee.designation'])->orderBy('id', 'desc')->get();
// return response($data, 200);
// } else {
// $data['registration'] = $this->show($id);
// return response($data, 200);
// }
//
// return Users::with(['postedEmployee','postedEmployeeDesignation.designation','assignedEmployee','assignedEmployeeDesignation.designation'])->find($id);
// }
public function store(Request $request)
{
$input = $request->all();
......@@ -49,11 +95,12 @@ class RegistrationController extends Controller
'occupation' => 'required',
'passport_no' => 'required',
'marital_status' => 'required',
'relative_fullname' => 'required',
'relation' => 'required',
'relative_age' => 'required',
'relative_passport_no' => 'required',
'relative_address' => 'required'
// 'relative_fullname' => 'required',
// 'relation' => 'required',
// 'relative_age' => 'required',
// 'relative_passport_no' => 'required',
// 'relative_address' => 'required'
];
$messages = [
......@@ -78,11 +125,11 @@ class RegistrationController extends Controller
'occupation' => 'Occupation required',
'passport_no' => 'Passport number required',
'marital_status' => 'Marital status required',
'relative_fullname' => 'Relative fullname required',
'relation' => 'Relation required',
'relative_age' => 'Relative age required',
'relative_passport_no' => 'Relative passport number required',
'relative_address' => 'Relative address required'
// 'relative_fullname' => 'Relative fullname required',
// 'relation' => 'Relation required',
// 'relative_age' => 'Relative age required',
// 'relative_passport_no' => 'Relative passport number required',
// 'relative_address' => 'Relative address required'
];
$validator = Validator::make($input, $rules, $messages);
......@@ -101,12 +148,25 @@ class RegistrationController extends Controller
$users->occupation = $input['occupation'];
$users->passport_no = $input['passport_no'];
$users->marital_status = $input['marital_status'];
$users->qr_code = $input['qrcode'];
if ($request->old_passport_no) {
$users->old_passport_no = $input['old_passport_no'];
} else {
$users->old_passport_no = '';
}
$num = Users::all()->count();
// $randNum=strval($num);
// $randNumLen=strlen($randNum);
// $diffLen=5-$randNumLen;
// while($diffLen>0)
// {
// for($i=1;$i<=$diffLen;$i++)
// {
// $randNum="0".$randNum;
// }
// }
$randNum = rand(10000, 99999);
$users->norka_id = $randNum;
$users->save();
if ($users->id) {
......@@ -126,31 +186,29 @@ class RegistrationController extends Controller
$nativeAddress->kerala_address = $input['kerala_address'];
$nativeAddress->phone = $input['native_phone'];
$nativeAddress->save();
// dd($request->memberdetails);
$family_array =json_decode($request->memberdetails);
// dd($request->memberdetails);
$family_array = json_decode($request->memberdetails);
// dd($input['memberdetails']);
// dd($family_array);
if(is_array($family_array))
{
dd($family_array);
foreach ($family_array as $key=>$rel) {
dd($family_array);
if (is_array($family_array)) {
foreach ($family_array as $mem) {
// dd($mem);
$familyMember = new FamilyMemberDetails();
$familyMember->relative_of = $userId;
$familyMember->fullname =$rel['relative_fullname'];
$familyMember->relation = $rel['relation'];
$familyMember->age = $rel['relative_age'];
$familyMember->passport_number = $rel['relative_passport_no'];
$familyMember->address = $rel['relative_address'];
$familyMember->fullname = $mem->fullname;
$familyMember->relation = $mem->relation;
$familyMember->age = $mem->age;
$familyMember->passport_number = $mem->passport_number;
$familyMember->address = $mem->address;
$familyMember->is_nominee = $mem->is_nominee;
$familyMember->save();
}
}
else
{
} else {
dd("not array");
}
// $familyMember = new FamilyMemberDetails();
// $familyMember->relative_of = $userId;
//
......@@ -169,6 +227,7 @@ class RegistrationController extends Controller
// $familydetails['nominee_status'] = "1";
// $data['family'] = $familyMember;
$data['status'] = 1;
$data['norka_id'] = strval($users->norka_id);
$data['message'] = "User registered successfully";
return response($data, 200);
}
......@@ -181,4 +240,5 @@ class RegistrationController extends Controller
}
}
......@@ -32,7 +32,7 @@ class Kernel extends HttpKernel
\Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
// \App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
......
......@@ -24,4 +24,5 @@ class NativeAddress extends Model
'created_at',
'updated_at'
];
}
......@@ -19,4 +19,5 @@ class UserType extends Model
'created_at',
'updated_at'
];
}
......@@ -6,5 +6,18 @@ use Illuminate\Database\Eloquent\Model;
class query extends Model
{
//
protected $table = 'query';
protected $fillable = [
'notification_type_id',
'title',
'description',
'notification_date',
'news_date',
'news_time',
'photo_url',
'status',
'created_at',
'updated_at'
];
}
......@@ -6,5 +6,14 @@ use Illuminate\Database\Eloquent\Model;
class query_reply extends Model
{
//
protected $table = 'query_reply';
protected $fillable = [
'query_id',
'query_reply',
'replied_by',
'status',
'created_at',
'updated_at'
];
}
......@@ -6,5 +6,12 @@ use Illuminate\Database\Eloquent\Model;
class query_type extends Model
{
//
protected $table = 'query_type';
protected $fillable = [
'type',
'status',
'created_at',
'updated_at'
];
}
......@@ -6,8 +6,12 @@
"type": "project",
"require": {
"php": ">=5.6.4",
"barryvdh/laravel-ide-helper": "^2.4",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0"
"laravel/tinker": "~1.0",
"intervention/image": "^2.3",
"guzzlehttp/guzzle":"6.0.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
......@@ -22,6 +26,7 @@
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
......
......@@ -163,6 +163,7 @@ return [
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
/*
* Package Service Providers...
*/
......@@ -176,8 +177,9 @@ return [
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
],
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
Intervention\Image\ImageServiceProvider::class,
],
/*
|--------------------------------------------------------------------------
......
table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:75px;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:0.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:8px;white-space:nowrap}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:8px;right:8px;display:block;font-family:'Glyphicons Halflings';opacity:0.5}table.dataTable thead .sorting:after{opacity:0.2;content:"\e150"}table.dataTable thead .sorting_asc:after{content:"\e155"}table.dataTable thead .sorting_desc:after{content:"\e156"}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody table thead .sorting:after,div.dataTables_scrollBody table thead .sorting_asc:after,div.dataTables_scrollBody table thead .sorting_desc:after{display:none}div.dataTables_scrollBody table tbody tr:first-child th,div.dataTables_scrollBody table tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}table.dataTable.table-condensed>thead>tr>th{padding-right:20px}table.dataTable.table-condensed .sorting:after,table.dataTable.table-condensed .sorting_asc:after,table.dataTable.table-condensed .sorting_desc:after{top:6px;right:6px}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:0}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:last-child{padding-right:0}
<?php
/**
* Created by PhpStorm.
* User: AtulB
* Date: 19/07/2017
* Time: 10:37
*/
\ No newline at end of file
<!DOCTYPE html>
<html>
<head profile="http://gmpg.org/xfn/11">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>NORKA</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
<!-- Morris chart -->
<link rel="stylesheet" href="bower_components/morris.js/morris.css">
<!-- jvectormap -->
<!--<link rel="stylesheet" href="bower_components/jvectormap/jquery-jvectormap.css">-->
<!-- Date Picker -->
<link rel="stylesheet" href="bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<!-- Daterange picker -->
<link rel="stylesheet" href="bower_components/bootstrap-daterangepicker/daterangepicker.css">
<!-- bootstrap wysihtml5 - text editor -->
<link rel="stylesheet" href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<style>@import url(https://fonts.googleapis.com/css?family=Roboto:300);
.login-page {
width: 360px;
padding: 8% 0 0;
margin: auto;
}
.form {
position: relative;
z-index: 1;
background: #FFFFFF;
max-width: 360px;
margin: 0 auto 100px;
padding: 45px;
text-align: center;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
.form input {
font-family: "Roboto", sans-serif;
outline: 0;
background: #f2f2f2;
width: 100%;
border: 0;
margin: 0 0 15px;
padding: 15px;
box-sizing: border-box;
font-size: 14px;
}
.form button {
font-family: "Roboto", sans-serif;
text-transform: uppercase;
outline: 0;
background: #136a8f;
width: 100%;
border: 0;
padding: 15px;
color: #FFFFFF;
font-size: 14px;
-webkit-transition: all 0.3 ease;
transition: all 0.3 ease;
cursor: pointer;
}
.form button:hover,.form button:active,.form button:focus {
background: #136a8f;
}
.form .message {
margin: 15px 0 0;
color: #b3b3b3;
font-size: 12px;
}
.form .message a {
color: #222D32;
text-decoration: none;
}
.form .register-form {
display: none;
}
.container {
position: relative;
z-index: 1;
max-width: 300px;
margin: 0 auto;
}
.container:before, .container:after {
content: "";
display: block;
clear: both;
}
.container .info {
margin: 50px auto;
text-align: center;
}
.container .info h1 {
margin: 0 0 15px;
padding: 0;
font-size: 36px;
font-weight: 300;
color: #1a1a1a;
}
.container .info span {
color: #4d4d4d;
font-size: 12px;
}
.container .info span a {
color: #000000;
text-decoration: none;
}
.container .info span .fa {
color: #EF3B3A;
}
body {
background: #222D32; /* fallback for old browsers */
background: -webkit-linear-gradient(right, #222D32, #222D32);
background: -moz-linear-gradient(right, #222D32, #222D32);
background: -o-linear-gradient(right, #222D32, #222D32);
background: linear-gradient(to left, #222D32, #222D32);
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}</style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>NORKA</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>NORKA</b></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<!-- Content Wrapper. Contains page content -->
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="login-page">
<div class="form">
<form class="register-form">
<input type="text" placeholder="name"/>
<input type="password" placeholder="password"/>
<input type="text" placeholder="email address"/>
<button>create</button>
<p class="message">Already registered? <a href="#">Sign In</a></p>
</form>
<input type="text" placeholder="username"/>
<input type="password" placeholder="password"/>
<a href="{{URL::to('admin/dashboard')}}"><button>login</button></a>
<p class="message">Not registered? <a href="#">Create an account</a></p>
</div>
</div>
</div>
<!-- ./wrapper -->
<!-- jQuery 3 -->
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="bower_components/raphael/raphael.min.js"></script>
<script src="bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<!--<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>-->
<!-- jQuery Knob Chart -->
<script src="bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="bower_components/moment/min/moment.min.js"></script>
<script src="bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
{{--<script type='text/javascript' src='maps/markers.json'></script>--}}
{{--<script type='text/javascript' src='maps/leaf-demo.js'></script>--}}
</body>
</html>
......@@ -17,6 +17,14 @@ Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Route::post('/v1/user/registration', 'RegistrationController@store');
Route::get('/v1/user/notification', 'NotificationController@index');
Route::get('/v1/user/faq', 'FAQController@index');
Route::get('/v1/user/news', 'NewsController@index');
Route::get('/v1/user/downloads', 'DownloadsController@index');
Route::get('/v1/user/schemes', 'SchemeController@index');
Route::get('/v1/user/relation', 'RelationController@index');
Route::post('/v1/user/saveQuery', 'QueryController@store');
Route::get('/v1/user/listQueryType', 'QueryTypeController@index');
Route::get('/v1/user/listQuery/{id}', 'QueryController@index');
Route::post('/v1/user/saveQueryReply', 'QueryReplyController@store');
Route::get('/v1/user/listQueryReply/{id}', 'QueryReplyController@index');
\ No newline at end of file
......@@ -12,5 +12,13 @@
*/
Route::get('/', function () {
return view('welcome');
return view('login');
});
//Route::get('/admin/dashboard', function () {return view('index');});
Route::get('/admin/dashboard', 'LoginController@index');
Route::get('/admin/registeredUsers/list', 'RegistrationController@index');
Route::get('/admin/registeredUsers/view/{id}', 'RegistrationController@view');
Route::get('/admin/verifyUsers/view/{id}', 'RegistrationController@verify');
Route::get('/admin/news/add', 'NewsController@add');
Route::post('/admin/news/store', 'NewsController@store');
Route::get('/admin/news/list', 'NewsController@show');
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment