-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97435e4
commit 227ee6b
Showing
11 changed files
with
581 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use GuzzleHttp\Client; | ||
|
||
class FormController extends Controller | ||
{ | ||
public function viewPE9() | ||
{ | ||
$client = new Client(); | ||
$response = $client->request('GET', env('NOMINETION_API')); | ||
$statusCode = $response->getStatusCode(); | ||
// $body = $response->getBody(); | ||
$body = $response->getBody()->getContents(); | ||
$obj = json_decode($body); | ||
//dd($body); | ||
return view('pe9')->with('Fdata',$obj); | ||
|
||
} | ||
|
||
public function viewPE30() | ||
{ | ||
$client = new Client(); | ||
$response = $client->request('GET', env('NOMINETION_API')); | ||
$statusCode = $response->getStatusCode(); | ||
// $body = $response->getBody(); | ||
$body = $response->getBody()->getContents(); | ||
$obj = json_decode($body); | ||
//dd($body); | ||
return view('pe30x1x2')->with('Fdata',$obj); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
storage/framework/sessions/seAzWjj2cbgYR75Js5dCi1BUXe1nOjRSPQSKnIoy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a:3:{s:6:"_token";s:40:"fE8w05ChkJnQ18hjzcwIBS8uJ04GUjqdZqDBVeEZ";s:9:"_previous";a:1:{s:3:"url";s:30:"http://localhost:8000/pe30x1x2";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}} |
122 changes: 122 additions & 0 deletions
122
storage/framework/views/76c9ac13a3855ad77a6817120173af38af0ee0b2.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
|
||
<title>Nomination Outputs</title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | ||
|
||
<!-- Custom fonts for this template --> | ||
<link href="https://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i" rel="stylesheet"> | ||
|
||
<!-- Custom styles for this template --> | ||
<link href="css/business-casual.min.css" rel="stylesheet"> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<h1 class="site-heading text-center text-white d-none d-lg-block"> | ||
<span class="site-heading-lower ">Nomination Outputs</span><br><br> | ||
<span class="site-heading-upper text-primary mb-4">Election Commission of Sri lanka</span> | ||
|
||
</h1> | ||
|
||
<!-- Navigation --> | ||
<nav class="navbar navbar-expand-lg navbar-dark py-lg-2" id="mainNav"> | ||
<div class="container"> | ||
<a class="navbar-brand text-uppercase text-expanded font-weight-bold d-lg-none" href="#">Start Bootstrap</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarResponsive"> | ||
<ul class="navbar-nav mx-auto"> | ||
|
||
<li class="nav-item active px-lg-4"> | ||
<a class="nav-link text-uppercase text-expanded" href="index">Home | ||
<span class="sr-only">(current)</span> | ||
</a> | ||
</li> | ||
<li class="nav-item active px-lg-4"> | ||
<a class="nav-link text-uppercase text-expanded" href='pe9'>PE09 | ||
<span class="sr-only">(current)</span> | ||
</a> | ||
</li> | ||
<li class="nav-item active px-lg-4"> | ||
<a class="nav-link text-uppercase text-expanded" href='pe10'>PE10 | ||
<span class="sr-only">(current)</span> | ||
</a> | ||
</li> | ||
<li class="nav-item active px-lg-4"> | ||
<a class="nav-link text-uppercase text-expanded" href='pe10x1'>PE10 (1) | ||
<span class="sr-only">(current)</span> | ||
</a> | ||
</li> | ||
<li class="nav-item active px-lg-4"> | ||
<a class="nav-link text-uppercase text-expanded" href="pe11">PE11 | ||
<span class="sr-only">(current)</span> | ||
</a> | ||
</li> | ||
<li class="nav-item active px-lg-4"> | ||
<a class="nav-link text-uppercase text-expanded" href="pe30x1x2">PE30(1)(2) | ||
<span class="sr-only">(current)</span> | ||
</a> | ||
</li> | ||
|
||
|
||
</ul> | ||
</div> | ||
</div> | ||
</nav> | ||
<br> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<!-- Nain Content --> | ||
|
||
<?php echo $__env->yieldContent('content'); ?> | ||
|
||
|
||
<!-- Main Content --> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<footer class="footer text-faded text-center py-5"> | ||
<div class="container"> | ||
<p class="m-0 small">Copyright © Eletion Commission of Sri Lanka 2020</p> | ||
</div> | ||
</footer> | ||
|
||
<!-- Bootstrap core JavaScript --> | ||
<script src="vendor/jquery/jquery.min.js"></script> | ||
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script> | ||
<script> | ||
function printDiv(divName) { | ||
var printContents = document.getElementById(divName).innerHTML; | ||
var originalContents = document.body.innerHTML; | ||
|
||
document.body.innerHTML = printContents; | ||
|
||
window.print(); | ||
|
||
document.body.innerHTML = originalContents; | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.