Commit aa7c763f by fezrul

commit

parent 659d3090
...@@ -31,18 +31,29 @@ class EventPageController extends Controller ...@@ -31,18 +31,29 @@ class EventPageController extends Controller
// $todo = Auth::user()->todo()->get(); // $todo = Auth::user()->todo()->get();
// return response()->json(['status' => 'success','result' => $todo]); // return response()->json(['status' => 'success','result' => $todo]);
$event = MasterEvent::where('event_slug', $slug)->first(); $event = MasterEvent::where('event_slug', $slug)->first();
if($event) if($event)
{ {
$eventid = $event->id; $eventid = $event->id;
$session = Cookie::get('invitation'); $session = Cookie::get('invitation');
$message = Cookie::get('message'); $message = Cookie::get('message');
$qrcode = Cookie::get('qrcode');
$email = Cookie::get('email');
$invcode = Cookie::get('invcode');
$notice = ''; $notice = '';
if($message == null){$notice = '';}else{$notice = $message;} if($message == null){$notice = '';}else{$notice = $message;}
if($session == null){ if($session == null){
return view('event.index',compact('eventid','notice')); if($qrcode == 1){
return view('event.indexqr',compact('eventid','notice','email','invcode'));
}else{
return view('event.index',compact('eventid','notice'));
}
}else{ }else{
...@@ -58,28 +69,58 @@ class EventPageController extends Controller ...@@ -58,28 +69,58 @@ class EventPageController extends Controller
}else{ }else{
if($slug == 'find')
{
// dd('finding');
return view('find');
}
return redirect::to('/'); return redirect::to('/');
} }
// ,compact('trail','lkp_status')
}
public function qrscan($slug,$email,$invcode)
{
// dd('slug:'.$slug.',email:'.$email.',code:'.$invcode);
// if($slug == 'zurich'){ $event = MasterEvent::where('event_slug', $slug)->first();
if($event)
{
$eventid = $event->id;
$session = Cookie::get('invitation');
$message = Cookie::get('message');
$notice = '';
if($message == null){$notice = '';}else{$notice = $message;}
// if (Auth::guest()) if($session == null){
// {
// return view('event.index');
// }else{ return redirect::to('/event/'.$slug)->withCookie(cookie('qrcode', 1,1))->withCookie(cookie('email', $email,1))->withCookie(cookie('invcode', $invcode,1));
// return view('welcome'); // return view('event.indexqr',compact('eventid','notice','email','invcode'));
// }
// }else{
// return view('welcome'); }else{
$info = EventParticipant::where('id', $session)->first();
return redirect::to('/event/detail/'.$slug);
// return view('detail.index',compact('eventid','info'));
}
}else{
return redirect::to('/');
}
// }
} }
public function detail($slug) public function detail($slug)
...@@ -106,4 +147,19 @@ class EventPageController extends Controller ...@@ -106,4 +147,19 @@ class EventPageController extends Controller
} }
public function findevent($slug)
{
$event = MasterEvent::where('event_slug', $slug)->first();
if($event){
return 1;
}else{
return 0;
}
}
} }
\ No newline at end of file
<?php
namespace App\Http\Controllers;
// use App\Http\Controllers\Controller;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use Illuminate\Http\Response as res;
use App\MasterEvent;
use App\EventParticipant;
use App\Users;
use Cookie;
class HomeController extends Controller
{
public function __construct()
{
// $this->middleware('auth:api');
}
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
if (Auth::guest())
{
dd('not login');
}else{
// dd('login');
$user = Auth::user();
$uid = $user->id;
$event = MasterEvent::where('fk_user',$uid)->get();
return view('admin.show', compact('event'));
}
}
public function manageevent()
{
if (Auth::guest())
{
dd('not login');
}else{
// dd('login');
$user = Auth::user();
$uid = $user->id;
$event = MasterEvent::where('fk_user',$uid)->get();
return view('admin.manage', compact('event'));
}
}
public function manageguest()
{
if (Auth::guest())
{
dd('not login');
}else{
// dd('login');
$user = Auth::user();
$uid = $user->id;
$event = MasterEvent::where('fk_user',$uid)->get();
return view('admin.guest', compact('event'));
}
}
public function attendance($id)
{
if (Auth::guest())
{
dd('not login');
}else{
// dd('login');
$user = Auth::user();
$uid = $user->id;
$event = MasterEvent::where('id',$id)->first();
// dd($event);
return view('admin.scan', compact('event'));
}
}
public function editevent($id)
{
if (Auth::guest())
{
dd('not login');
}else{
// dd('login');
$user = Auth::user();
$uid = $user->id;
$event = MasterEvent::where('id',$id)->get();
// dd($event);
return view('admin.detail', compact('event'));
// return view('admin.guest', compact('event'));
// <div class="col-lg-4 col-md-6 col-sm-6">
// <div class="cards cards-stats">
// <div class="cards-header" data-background-color="orange">
// <i class="fa fa-percent"></i>
// </div>
// <div class="cards-content">
// <p class="category">Kempen Aktif</p>
// <h3 class="title">{{$camcount}}</h3>
// </div>
// <div class="cards-footer">
// <div class="stats">
// <i class="material-icons text-danger">donut_small</i>
// <a href="campaign">Lihat Tetapan Kempen</a>
// </div>
// </div>
// </div>
// </div>
}
}
}
?>
\ No newline at end of file
...@@ -58,8 +58,18 @@ class InvitationController extends Controller ...@@ -58,8 +58,18 @@ class InvitationController extends Controller
}else{ }else{
$qrcode = Cookie::get('qrcode');
if($qrcode == 1){
return redirect::to('/event/'.$validate->event_slug)->withCookie(cookie('message', 'Invalid QRcode or your invatiation has canceled',1));
}else{
return redirect::to('/event/'.$validate->event_slug)->withCookie(cookie('message', 'You have entered incorrect email/invitation code or you are not invited to this event',1));
}
// dd('you hav entered incorrect email/invitation codes or you are not invited to this event'); // dd('you hav entered incorrect email/invitation codes or you are not invited to this event');
return redirect::to('/event/'.$validate->event_slug)->withCookie(cookie('message', 'You have entered incorrect email/invitation code or you are not invited to this event',1));
} }
......
...@@ -16,6 +16,17 @@ class AppServiceProvider extends ServiceProvider ...@@ -16,6 +16,17 @@ class AppServiceProvider extends ServiceProvider
{ {
// //
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
if ($this->app->bound('laravolt.menu')) {
$menu = $this->app['laravolt.menu']->add('Dashboard','home')->data('icon', 'fa fa-calendar');
$menu = $this->app['laravolt.menu']->add('Event Management')->data('icon', 'fa fa-calendar');
$menu->add('Event Details', 'manage')
->active('')
->data('icon', 'fa fa-table');
$menu->add('Guest Details', 'guest')
->active('')
->data('icon', 'fa fa-users');
}
} }
/** /**
...@@ -23,20 +34,5 @@ class AppServiceProvider extends ServiceProvider ...@@ -23,20 +34,5 @@ class AppServiceProvider extends ServiceProvider
* *
* @return void * @return void
*/ */
public function register()
{
$section = $this->app['laravolt.menu']->add('Sample Menu A');
$menu = $section->add('Menu', '#')->data('icon', 'circle outline');
foreach(range(1, 10) as $i) {
$menu->add('Submenu '.$i, '#');
}
$section = $this->app['laravolt.menu']->add('Sample Menu B');
foreach(range(1, 8) as $h) {
$menu = $section->add('Menu '.$h, '#')->data('icon', 'circle outline');
foreach(range(1, 4) as $i) {
$menu->add('Submenu '.$i, '#');
}
}
}
} }
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEventAttendanceTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('event_attendance', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('fk_master_event');
$table->string('fk_event_participant');
$table->datetime('time');
$table->nullableTimestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::dropIfExists('event_attendance');
}
}
...@@ -16,6 +16,7 @@ class CreateMasterEventTable extends Migration ...@@ -16,6 +16,7 @@ class CreateMasterEventTable extends Migration
$table->unsignedInteger('fk_user'); $table->unsignedInteger('fk_user');
$table->string('event_name'); $table->string('event_name');
$table->string('event_slug'); $table->string('event_slug');
$table->string('event_status');
$table->date('start_date'); $table->date('start_date');
$table->date('end_date'); $table->date('end_date');
$table->nullableTimestamps(); $table->nullableTimestamps();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -140,40 +140,40 @@ ...@@ -140,40 +140,40 @@
var message = $("textarea#message").val(); var message = $("textarea#message").val();
var firstName = name; // For Success/Failure Message var firstName = name; // For Success/Failure Message
// Check for white space in name for Success/Fail message // Check for white space in name for Success/Fail message
// alert(name);
if (firstName.indexOf(' ') >= 0) { if (firstName.indexOf(' ') >= 0) {
firstName = name.split(' ').slice(0, -1).join(' '); firstName = name.split(' ').slice(0, -1).join(' ');
} }
$.ajax({ $.ajax({
url: "././mail/sendmail.php",
type: "POST", url: "find"+"/"+name,
data: { type: "GET",
name: name,
email: email,
message: message
},
cache: false, cache: false,
success: function() { success: function(data) {
// Success message
$('#success').html("<div class='alert alert-success'>");
$('#success > .alert-success').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
.append("</button>");
$('#success > .alert-success')
.append("<strong>Your message has been sent. </strong>");
$('#success > .alert-success')
.append('</div>');
//clear all fields if(data == 0){
$('#contactForm').trigger("reset");
}, $('#success').html("<div class='alert alert-danger'>");
error: function() {
// Fail message
$('#success').html("<div class='alert alert-danger'>");
$('#success > .alert-danger').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;") $('#success > .alert-danger').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
.append("</button>"); .append("</button>");
$('#success > .alert-danger').append("<strong>Sorry " + firstName + ", it seems that my mail server is not responding. Please try again later!"); $('#success > .alert-danger').append("<strong>Sorry, event '" + name + "' is not found, Please try again later!");
$('#success > .alert-danger').append('</div>'); $('#success > .alert-danger').append('</div>');
//clear all fields //clear all fields
$('#contactForm').trigger("reset"); $('#contactForm').trigger("reset");
}else{
// Success message
$('#success').html("<a href='/event/" + name + "' class='btn btn-primary pull-right' <i class='fa fa-dribbble'></i>Click to the Event</a>");
$('#contactForm').trigger("reset");
}
},
error: function(data) {
// Fail message
}, },
}) })
}, },
......
{
"/css/apps.css": "/css/apps.css",
"/js/all.js": "/js/all.js",
"/css/all.css": "/css/all.css"
}
\ No newline at end of file
body, html {
padding: 0;
margin: 0;
font-family: 'Helvetica Neue', 'Calibri', Arial, sans-serif;
height: 100%;
}
#app {
background: #263238;
display: flex;
align-items: stretch;
justify-content: stretch;
height: 100%;
}
.sidebar {
background: #eceff1;
min-width: 250px;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow: auto;
}
.sidebar h2 {
font-weight: normal;
font-size: 1.0rem;
background: #607d8b;
color: #fff;
padding: 10px;
margin: 0;
}
.sidebar ul {
margin: 0;
padding: 0;
list-style-type: none;
}
.sidebar li {
line-height: 175%;
white-space: nowrap;
overflow: hidden;
text-wrap: none;
text-overflow: ellipsis;
}
.cameras ul {
padding: 15px 20px;
}
.cameras .active {
font-weight: bold;
color: #009900;
}
.cameras a {
color: #555;
text-decoration: none;
cursor: pointer;
}
.cameras a:hover {
text-decoration: underline;
}
.scans li {
padding: 10px 20px;
border-bottom: 1px solid #ccc;
}
.scans-enter-active {
transition: background 3s;
}
.scans-enter {
background: yellow;
}
.empty {
font-style: italic;
}
.preview-container {
flex-direction: column;
align-items: center;
justify-content: center;
display: flex;
width: 100%;
overflow: hidden;
}
var app = new Vue({
el: '#app',
data: {
scanner: null,
activeCameraId: null,
cameras: [],
scans: []
},
mounted: function () {
var self = this;
self.scanner = new Instascan.Scanner({ video: document.getElementById('preview'), scanPeriod: 5 });
self.scanner.addListener('scan', function (content, image) {
self.scans.unshift({ date: +(Date.now()), content: content });
});
Instascan.Camera.getCameras().then(function (cameras) {
self.cameras = cameras;
if (cameras.length > 0) {
self.activeCameraId = cameras[0].id;
self.scanner.start(cameras[0]);
} else {
console.error('No cameras found.');
}
}).catch(function (e) {
console.error(e);
});
},
methods: {
formatName: function (name) {
return name || '(unknown)';
},
selectCamera: function (camera) {
this.activeCameraId = camera.id;
this.scanner.start(camera);
}
}
});
@extends('layouts.app')
@section('content')
<div class="container-fluid mt-5">
<div class="card">
<div class="card-header">{{ __('Edit Event') }}</div>
<div class="card-body">
<div class="row">
@if($event)
@foreach($event as $event)
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="cards cards-stats">
<div class="cards-header" data-background-color="orange">
{!! QrCode::size(100)->generate(url('event/'.$event->slug)); !!}
</div>
<div class="cards-content">
<p class="category">{{ $event->event_name }}</p>
<h3 class="title">@if($event->event_status == 1) Active @else Inactive @endif</h3>
<br><b>Start :</b> {{$event->start_date}}
<br><b>End :</b> {{$event->end_date}}
</div>
<div class="cards-footer">
<div class="stats">
<i class="material-icons text-danger">donut_small</i>
<a href="/attenance/{{$event->id}}">Start Taking attendance</a>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
<div class="cards cards-stats">
<div class="cards-content">
<p class="category">{{ $event->event_name }}</p>
<h3 class="title">@if($event->event_status == 1) Active @else Inactive @endif</h3>
<br><b>Start :</b> {{$event->start_date}}
<br><b>End :</b> {{$event->end_date}}
</div>
</div>
</div>
@endforeach
@else
no event
@endif
</div>
</div>
</div>
</div>
@endsection
@extends('layouts.app')
@section('content')
<div class="container-fluid mt-5">
<div class="card">
<div class="card-header">{{ __('Guest Listing') }}</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
<span>Please Choose your event and click populate for the guest list</span>
</div>
</div>
</div>
<div class="card-footer">
<a href="{{ route('home') }}" class="btn btn-primary">{{ __('Kembali') }}</a>
</div>
</div>
</div>
@endsection
@extends('layouts.app')
@section('content')
<div class="container-fluid mt-5">
<div class="card">
<div class="card-header">{{ __('Event Listing') }}</div>
<div class="card-body" style="overflow-x: auto;">
<div class="">
<table class="table table-striped mb-0 ">
<thead class="thead-light">
<tr>
<th>{{ __("No") }}</th>
<th>{{ __("Event Name") }}</th>
<th>{{ __("Event Status") }}</th>
<th>{{ __("Start Date") }}</th>
<th>{{ __("End Date") }}</th>
<th>Action </th>
</tr>
</thead>
<tbody>
@if($event)
@foreach($event as $event)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $event->event_name }}</td>
<td>@if($event->event_status == 1) Active @else Inactive @endif</td>
<td>{{ $event->start_date }}</td>
<td>{{ $event->end_date }}</td>
<td> <i class="fa fa-pencil-square"></i> <a href="/manage/{{$event->id}}">
Edit
</a></td>
</tr>
@endforeach
@else
<tr>
<td colspan="6">No data</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
<div class="card-footer">
<a href="{{ route('home') }}" class="btn btn-primary">{{ __('Kembali') }}</a>
</div>
</div>
</div>
@endsection
@extends('layouts.scan')
@section('content')
<div class="tab-content p-5 bg-light">
<h2 class="mb-4">Scan Qr code</h2>
<div class="cards">
<div class="cards-header cards-chart" data-background-color="blue" style="padding:20px">
<div class="input-group mb-3">
<script type="text/javascript" src="https://rawgit.com/schmich/instascan-builds/master/instascan.min.js"></script>
<video id="preview"></video>
<script type="text/javascript">
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
scanner.addListener('scan', function (content) {
console.log(content);
});
Instascan.Camera.getCameras().then(function (cameras) {
if (cameras.length > 0) {
scanner.start(cameras[0]);
} else {
console.error('No cameras found.');
}
}).catch(function (e) {
console.error(e);
});
</script>
</div>
</div>
<div class="cards-content">
<h4 class="title"></h4>
<p class="category"><div class="form-group">
<div class="form-check form-check-inline">
</div>
</div></p>
</div>
</div>
</div>
@endsection
@extends('layouts.app')
@section('content')
<div class="container-fluid mt-5">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
<div class="row">
@if($event)
@foreach($event as $event)
<div class="col-lg-4 col-md-6 col-sm-6">
<div class="cards cards-stats">
<div class="cards-header" data-background-color="orange">
<i class="fa fa-calendar-plus-o"></i>
</div>
<div class="cards-content">
<p class="category">{{ $event->event_name }}</p>
<h3 class="title">@if($event->event_status == 1) Active @else Inactive @endif</h3>
</div>
<div class="cards-footer">
<div class="stats">
<i class="material-icons text-danger">donut_small</i>
<a href="/manage/{{$event->id}}">Lihat Tetapan Kempen</a>
</div>
</div>
</div>
</div>
@endforeach
@else
no event
@endif
</div>
</div>
</div>
</div>
@endsection
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Zurich - Takaful Agency Awards</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
<meta name="robots" content="index,follow" />
<link rel="shortcut icon" href="">
<link rel="apple-touch-icon" href="">
<!-- Facebook and Twitter Share Informations -->
<meta property="og:type" content="website" />
<meta property="og:title" content="" />
<meta property="og:description" content="" />
<meta property="og:image" content="" />
<meta property="og:url" content="" />
<meta property="og:site_name" content="" />
<meta name="twitter:title" content="" />
<meta name="twitter:image" content="" />
<meta name="twitter:url" content="" />
<meta name="twitter:card" content="" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700,800">
<!-- To enable the modal popup, uncomment the next line -->
<!-- <link rel="stylesheet" href="assets/css/bootstrap.min.css"> -->
<link rel="stylesheet" href="contactme/css/select2.min.css">
<link rel="stylesheet" href="contactme/css/bootstrap-datepicker.standalone.min.css">
<link rel="stylesheet" href="contactme/css/jquery.timepicker.css">
<link rel="stylesheet" href="contactme/css/contactme-1.4.css">
<!-- To enable the gallery plugin, uncomment the next line -->
<!-- <link rel="stylesheet" href="assets/lightgallery/css/lightgallery.min.css"> -->
<link rel="stylesheet" href="assets/css/jonny-1.2.css">
<!-- To enable the custom css file, uncomment the next line -->
<!-- <link rel="stylesheet" href="assets/css/custom.css"> -->
</head>
<body>
<section class="jonny">
<div class="infos">
<!-- BACKGROUND IMAGE -->
<!-- To enable the background image, follow these steps: -->
<!-- - Comment the background video line -->
<!-- - Uncomment the next lines -->
<img src="assets/imgs/cover/hero-5.png" alt="Cover">
<!-- BACKGROUND VIDEO -->
<!-- To enable the background video, follow these steps: -->
<!-- - Set a background image to use for mobile devices (this is necessary because the video autoplay is blocked from android and ios devices to avoid consuming a lot of data) -->
<!-- - Uncomment the next lines -->
<!-- - Set the "data-width" and "data-height" with the width and height of the video. (use the values given by youtube in the share section. Note: 560 and 315 are the most used values) -->
<!-- - Replace "YOUR_VIDEO_ID" with the id of the youtube video (2 times) -->
<!--
<div class="videoCover" data-width="560" data-height="315">
<iframe src="https://www.youtube.com/embed/YOUR_VIDEO_ID?rel=0&amp;autoplay=1&amp;loop=1&amp;controls=0&amp;showinfo=0&amp;mute=1&amp;playlist=YOUR_VIDEO_ID" frameborder="0"></iframe>
</div>
-->
<div class="contain">
<div>
<div>
<h1 class="title">2018<br />Takaful Agency Awards</h1>
<p class="description">Join us for the amazing night and blissfull gathering of the year</p>
<!-- Set the data-countdown value with this format: yyyy/mm/dd hh:ii:ss -->
<!-- Note: set the time in 0-24 format, two digits for each: hours, minutes and seconds -->
<!-- To enable the countdown, uncomment the import .js line and the next line: -->
<div class="countdown" data-countdown="2018/10/15 18:00:00">
<div class="days">
<div>&nbsp;</div>
<span>days</span>
</div>
<div class="hours">
<div>&nbsp;</div>
<span>hours</span>
</div>
<div class="minutes">
<div>&nbsp;</div>
<span>minutes</span>
</div>
<div class="seconds">
<div>&nbsp;</div>
<span>seconds</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form">
<div>
<div>
<img src="assets/imgs/logo/logo.jpg" class="logo" alt="Logo">
<br><br>
<h3>Accept your invitation <br /></h3>
<br>
<!-- START - Contact Form -->
{!! QrCode::size(250)->generate(url('event/qrscan/zurich/'.$email.'/'.$invcode)); !!}
<p>{{$email}}</p>
<br>
<form class="contactMe small" action="/invite/accept/" method="GET" enctype="multipart/form-data">
<!-- <input type="hidden" name="_token" value="{{ csrf_token() }}"> -->
<input type="hidden" name="evenid" value="{{ $eventid }}">
<section>
<input type="hidden" name="email" data-displayname="Email" class="field" placeholder="Your e-mail" required value="{{$email}}">
<input type="hidden" name="name" data-displayname="Name" class="field" placeholder="Your Invitation code" required value="{{$invcode}}">
<div class="msg"></div>
<button class="btn" type="submit">Accept</button>
<br><br><p>{{$notice}}</p>
</section>
</form>
<!-- END - Contact Form -->
</div>
</div>
</div>
</section>
<!-- START GALLERY IMAGES -->
<!-- To enable the gallery plugin, uncomment the next lines -->
<!--
<section id="gallery1" class="gallery-items">
<a href="assets/imgs/gallery/demo-1.jpg"></a>
<a href="assets/imgs/gallery/demo-2.jpg"></a>
<a href="assets/imgs/gallery/demo-3.jpg"></a>
<a href="assets/imgs/gallery/demo-4.jpg"></a>
</section>
-->
<!-- END GALLERY IMAGES -->
<!-- START MODAL POPUP -->
<!-- To enable the modal popup, uncomment the next lines -->
<!--
<section id="popup1" class="modal customModal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<img src="assets/imgs/popup-cover.jpg" class="fit-width" alt="">
<h3>Popup informations title</h3>
<p>Sed posuere consectetur est at lobortis. Maecenas faucibus mollis interdum. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec id elit non mi porta gravida at eget metus.</p>
<p>Nullam id dolor id nibh ultricies vehicula ut id elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae elit libero, a pharetra augue. Donec ullamcorper nulla non metus auctor fringilla. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Donec id elit non mi porta gravida at eget metus. Curabitur blandit tempus porttitor.</p>
<p>Nulla vitae elit libero, a pharetra augue. Donec ullamcorper nulla non metus auctor fringilla. Sed posuere consectetur est at lobortis. Etiam porta sem malesuada magna mollis euismod.</p>
<p>Curabitur blandit tempus porttitor. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Curabitur blandit tempus porttitor. Cras justo odio, dapibus ac facilisis in, egestas eget quam.</p>
<div class="buttons centered marginTop">
<a href="#" class="black" data-dismiss="modal">CLOSE</a>
</div>
</div>
</div>
</section>
-->
<!-- END MODAL POPUP -->
<!-- START SHARE PLUGIN CONTENT -->
<!-- To enable the share plugin, uncomment the next lines -->
<!--
<section id="share-plugin-content" class="j-hide">
<div class="addthis_inline_share_toolbox"></div>
</section>
-->
<!-- END SHARE PLUGIN CONTENT -->
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/modernizr-touch-events.js"></script>
<!-- To enable the modal popup, uncomment the next line -->
<!-- <script src="assets/js/bootstrap.min.js"></script> -->
<!-- To enable the countdown, uncomment the next line: -->
<script src="assets/js/jquery.countdown.min.js"></script>
<!-- To enable the gallery plugin, uncomment the next line -->
<!-- <script src="assets/lightgallery/js/lightgallery.min.js"></script> -->
<!-- To enable Google reCAPTCHA, uncomment the next line: -->
<!-- <script src="https://www.google.com/recaptcha/api.js?onload=initRecaptchas&render=explicit" async defer></script> -->
<!-- To enable the share plugin you have to signup on addthis.com website, choose the type "INLINE share buttons" and follow the steps to add the socials you need. After done it, copy the PUBID code (ra-xxxxxxxxx) and paste it in the next line by replacing "YOUR_PUBID". Don't forget to uncomment the next line -->
<!-- <script src="//s7.addthis.com/js/300/addthis_widget.js#pubid=YOUR_PUBID"></script> -->
<script src="assets/js/jonny-1.2.js"></script>
</body>
</html>
<!doctype html>
<html lang="zxx">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Event Handler">
<meta name="author" content="3F Resources">
<title>MyEvent - 3F Resources.com</title>
<!-- Google fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" rel="stylesheet">
<!-- CSS Files -->
<link href="../css/bootstrap.min.css" rel="stylesheet" />
<link href="../css/font-awesome.min.css" rel="stylesheet" />
<link href="../css/material-kit.css" rel="stylesheet" />
<link href="../css/owl.carousel.css" rel="stylesheet" />
<link href="../css/style.css" rel="stylesheet" />
<!-- favicon -->
<link rel="icon" href="img/favicon.ico">
<!-- Colors -->
<link rel="stylesheet" href="../css/red.css">
<!-- Skin switcher -->
<!-- Manually link your desire skin -->
</head>
<body id="up">
<!-- Preloader -->
<div id="preloader">
<div class="spinner"></div>
</div>
<!-- Page hero -->
<div class="" id="headers">
<!-- Header -->
<div class="header">
<nav id="sticky-nav" class="navbar navbar-custom sticky navbar-center">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-example">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="" href="#up">
<img src="../img/logo.png" alt="logo" class="img-responsive navbar-brand">
</a>
</div>
<div class="collapse navbar-collapse" id="navigation-example">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="/">About</a>
</li>
<li>
<a href="/">Services</a>
</li>
<li>
<a href="/">Price</a>
</li>
<li>
<a href="/">Team</a>
</li>
<li>
<a href="/">Clients</a>
</li>
<li>
<a href="/">Blog</a>
</li>
<li>
<a href="/">Contact</a>
</li>
<li>
<a href="/event/find">Go To Event</a>
</li>
</ul>
</div>
</div>
</nav>
<section class="section section-image" id="contact">
<div class="contact-us">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="card card-contact">
<form id="contactForm" method="post" novalidate>
<div class="header header-raised header-primary text-center">
<h4 class="card-title">Event Lookup</h4>
</div>
<div class="card-layer"></div>
<div class="content">
<div id="success"></div>
<div class="form-group label-floating">
<label class="control-label">Event Name <i class="help-block text-danger"></i></label>
<input type="text" name="name" id="name" class="form-control" required data-validation-required-message="Please enter event name.">
</div>
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary pull-right">Search</button>
</div>
</div>
</div>
</form>
</div>
<!-- <div class="row">
<br>
<br>
</div>
-->
</div>
</div>
</div>
</div>
</section>
<div id="home" class="page-hero">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-0 col-sm-8 col-sm-offset-2 home-text">
<h1 class="title">Welcome to MyEvent</h1>
<p class="up-type-title"> We Are <span class="animated-text" id="animated-text"></span></p>
<p class="p-details">
You have a closed event to handle ? Let Us Help You!!
</p>
<div class="header-app-icons">
<ul>
<li><a href="#link" class="btn"><i class="fa fa-facebook"></i></a></li>
<li><a href="#link" class="btn"><i class="fa fa-twitter"></i></a></li>
<li><a href="#link" class="btn"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#link" class="btn"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<!-- <a href="#btn" class="btn btn-info btn-md">
<i class="fa fa-paper-plane-o"></i> Start Now
</a>
<a href="#btn" class="btn btn-success btn-md">
<i class="fa fa-bolt"></i> Sign up
</a> -->
</div>
<div class="col-md-5 text-center">
<img src="../img/header-img.png" alt="header image" class="header-img img-responsive">
</div>
</div>
<div id="particles-js"></div>
</div>
</div>
</div>
<!-- End Header -->
</div>
<!-- End contact -->
<!-- Subscribe -->
<!-- End subscribe -->
<!-- Footer -->
<!-- ./Footer section -->
<!-- End footer -->
<!-- Core JS Files -->
<script src="../js/jquery.min.js" type="text/javascript"></script>
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
<script src="../js/material.min.js"></script>
<!-- Jquery easing -->
<script type="text/javascript" src="../js/jquery.easing.1.3.min.js"></script>
<!-- Plugin For Google Maps -->
<!-- Typing text -->
<script src="../js/typed.min.js" type="text/javascript"></script>
<!-- sticky -->
<script src="../js/jquery.sticky.js" type="text/javascript"></script>
<!-- owl carousel -->
<script src="../js/owl.carousel.min.js" type="text/javascript"></script>
<!-- contact form -->
<script type="text/javascript" src="../js/jqBootstrapValidation.js"></script>
<!-- <script src="../js/modernizr.js" type="text/javascript"></script> -->
<!-- Partilce js -->
<script type="text/javascript" src="../js/particles.js"></script>
<!-- main scripts -->
<script src="../js/main.js" type="text/javascript"></script>
<!-- Color Switcher -->
<!-- END Skin switcher -->
</body>
</html>
<?php $flash = [
'error' => ['icon' => 'error'],
'danger' => ['icon' => 'error'],
'warning' => ['icon' => 'warning'],
'info' => ['icon' => 'info'],
'message' => ['icon' => 'info'],
'success' => ['icon' => 'success'],
]; ?>
@push('end')
@foreach($flash as $type => $context)
@if(session()->has($type))
<script>
swal({
text: "{{ session($type) }}",
buttons: false,
timer: 3000,
type: "{{ $context['icon'] }}"
});
</script>
@endif
@endforeach
@if(!$errors->isEmpty())
<script>
swal({
buttons: false,
timer: 3000,
type: "error",
html: "{!! collect($errors->all())->implode('<br>') !!}"
});
</script>
@endif
@endpush
<footer class="app-footer">
<div class="col-sm-4">
<ul>
<li>
</li>
</ul>
</div>
</footer>
<header class="app-header navbar">
<button class="navbar-toggler mobile-sidebar-toggler d-lg-none mr-auto" type="button">
<span style="color:white"><i class="fa fa-bars" aria-hidden="true"></i></span>
</button>
<a class="navbar-brand" href="#">{{ config('app.name') }}</a>
<button class="navbar-toggler sidebar-toggler d-md-down-none" type="button">
<span style="color:white"><i class="fa fa-bars" aria-hidden="true"></i></span>
</button>
<ul class="nav navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<span class="d-md-down-none"><i class="fa fa-cog" aria-hidden="true"></i>
</span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ route('auth::logout') }}"><i class="fa fa-sign-out"></i> {{ __('Log Keluar') }}</a>
</div>
</li>
</ul>
</header>
<?php
// @todo: move filter somewhere else
$menus = app('laravolt.menu')->roots()->filter(function($item){
return auth()->user()->can($item->data('permission'));
});
?>
<div class="sidebar">
<div style="overflow: hidden;border-bottom-style: ridge;margin-left: 5px;margin-right: 5px;margin-bottom: 10px;margin-top: 15px;" >
<div style="margin-left: 5px;margin-top:20px;margin-bottom:10px;font-weight: 600;width:150px">
<i class="fa fa-users fa-2x"></i>
<div style="margin-left: 44px;margin-top: -33px;">Welcome Back</div>
<br>
<div style="margin-left:44px;margin-top: -25px;">{{ auth()->user()->name }}</div>
<br><br>
</div>
</div>
<nav class="sidebar-nav">
@if(!$menus->isEmpty())
<ul class="nav">
@foreach($menus as $menu)
{{--check if current menu opened--}}
@php
$opened = false;
$validChildren = 0;
@endphp
@foreach($menu->children() as $submenu)
@if($submenu->isActive)
@php
$opened = true;
@endphp
@endif
@if(auth()->user()->can($submenu->data('permission')))
@php
$validChildren++;
@endphp
@endif
@endforeach
<li class="nav-item nav-item-level-1 nav-dropdown {{ ($opened)?'open':'' }}">
@if($menu->hasChildren() && $validChildren > 0)
<a class="nav-link nav-dropdown-toggle" href="#"><i class="{{ $menu->icon }}"></i> {{ $menu->title }}</a>
<ul class="nav-dropdown-items">
@foreach($menu->children() as $submenu)
@if(auth()->user()->can($submenu->data('permission')))
<li class="nav-item nav-item-level-2">
<a class="nav-link {{ ($submenu->url() == request()->url())?'active':'' }}" href="{{ $submenu->url() }}"><i class="{{ $submenu->icon }}"></i> {{ $submenu->title }}</a>
</li>
@endif
@endforeach
</ul>
@elseif(!$menu->hasChildren() && auth()->user()->can($menu->data('permission')))
<a class="nav-link {{ ($menu->url() == request()->url())?'active':'' }}" href="{{ $menu->url() }}"><i class="{{ $menu->icon }}"></i> {{ $menu->title }}</a>
@endif
</li>
@endforeach
</ul>
@endif
</nav>
</div>
@extends('layouts.base')
@push('body.class', 'sidebar-fixed header-fixed')
@section('body')
@include('layouts._header')
<div class="app-body">
@include('layouts._sidebar')
<main class="main mb-5">
{{--@include('layouts._breadcrumb')--}}
@include('layouts._alert')
<div class="container-fluid">
@yield('content')
</div>
</main>
</div>
<!-- @include('layouts._footer') -->
@endsection
@extends('layouts.public-base')
@section('body')
<div class="auth-body">
<main class="main">
@include('layouts._alert')
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col">
<div class="text-center py-4">
<h1 class="display-4 text-white"><img alt="" src="/img/logo.png" height="80px" style="margin-right: 20px;">{{ config('site.name') }}</h1>
<p class="lead">{{ config('site.description') }}</p>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="col" style="background-color: transparent;">
@yield('content')
</div>
</div>
<div class="row justify-content-center">
<div class="col-6 mt-4">
<p class="text-center">{{ config('site.copyright') }}</p>
</div>
</div>
</div>
</main>
</div>
@endsection
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="img/favicon.png">
<title>{{ config('app.name') }}</title>
<!-- Main styles for this application -->
<link href="{{ mix('css/all.css') }}" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
@stack('head')
</head>
<body class="app @stack('body.class')" style="background-image: url({{url('/img/bg.png')}});background-size: repeat;background-color: ghostwhite;background-attachment: fixed;">
@stack('begin')
@yield('body')
<!-- Main scripts -->
<script src="{{ mix('js/all.js') }}"></script>
<script src="{{ asset('lib/sweetalert2.all.min.js') }}"></script>
@stack('end')
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Ekompaun</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
* {
font-family: "Open Sans", Arial, sans-serif;
}
img {
max-width: 100%;
}
.collapse {
margin: 0;
padding: 0;
}
body {
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: none;
background: #f5f8fa;
color: #000;
}
.header {
max-width: 800px;
margin-left: auto;
margin-right: auto;
top: 10px;
left: 0;
right: 0;
width: 85%;
height: 200px;
background: linear-gradient(180deg, rgba(0, 51, 150, 0.6) 100%, #1474AE 100%), url('https://burst.shopifycdn.com/photos/new-york-city-buildings-and-water-towers_925x@2x.jpg');
background-repeat: no-repeat;
background-size: cover;
z-index: -999;
}
.divider {
border: 0.5px solid #eee;
margin: 15px auto;
}
.divider.hidden {
border: 0.5px solid transparent;
margin: 15px auto;
}
h3 {
color: #003483;
}
a {
color: #2BA6CB;
}
p.callout {
padding: 15px;
background-color: #ECF8FF;
margin-bottom: 15px;
}
.callout a {
font-weight: bold;
color: #2BA6CB;
}
table.body-wrap {
max-width: 800px;
width: 800px;
margin: 0 auto;
display: block;
border-radius: 2px;
background-color: #fff;
-webkit-box-shadow: 0 0 10px #aaa;
-moz-box-shadow: 0 0 10px #aaa;
box-shadow: 0 0 10px #aaa;
}
.collapse {
margin: 0!important;
}
p,
ul,
.content-table {
margin-bottom: 10px;
font-weight: normal;
font-size: 14px;
line-height: 1.6;
margin-left: 20px;
}
.container {
display: block!important;
max-width: 800px!important;
margin: 0 auto!important;
clear: both!important;
}
.content {
padding: 35px;
}
.content table, .content table tr td {
width: 730px;
}
.detail {
border-left: 10px solid #477ac1;
padding-left: 15px;
padding-right: 15px;
}
.column {
width: 300px;
float: left;
}
.column tr td {
padding: 15px;
}
.column-wrap {
padding: 0!important;
margin: 0 auto;
max-width: 600px!important;
}
.column table {
width: 100%;
}
.social .column {
width: 280px;
min-width: 279px;
float: left;
}
.disclaimer {
max-width: 800px;
margin-left: auto;
margin-right: auto;
top: 10px;
left: 0;
right: 0;
width: 85%;
position: relative;
overflow-wrap: break-word;
text-align: justify;
text-justify: inter-word;
letter-spacing: 0.5px;
}
.disclaimer img {
float: left;
}
.disclaimer .title {
height: 70px;
display: table-cell;
vertical-align: middle;
padding: 10px;
font-weight: bold;
}
.footer {
color: #aaa;
width: 100%;
text-align: center;
}
.clear {
display: block;
clear: both;
}
@media only screen and (max-width: 600px) {
table.body-wrap, .disclaimer, .header {
max-width: 500;
width: auto;
margin: 0 20px;
}
.content table, .content table tr td {
max-width: 500;
width: auto;
}
}
</style>
</head>
<body>
<!-- <div class="header"></div> -->
<table class="body-wrap">
<tbody>
<tr>
<td></td>
<td class="container">
<div class="content">
@yield('content')
</div>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td style="text-align: center">
<img src="{{ asset('img/logo-ppj.png') }}" width="200px" alt="">
<h3 style="text-align: center">PERBADANAN PUTRAJAYA</h3>
<div class="divider hidden"></div>
<div class="divider hidden"></div>
</td>
<td></td>
</tr>
</tbody>
</table>
<div class="divider hidden"></div>
<div class="footer">&copy; {{ config('app.name') }} {{ date('Y') }}</div>
<div class="divider hidden"></div>
<div class="divider hidden"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>@yield('title')</title>
@stack('head')
<style type="text/css">
* {
font-family: "Arial", Helvetica, sans-serif !important
}
html {
margin-left: 1.5em;
}
.tg td h4 {
margin: 0 0 5px 0;
}
.tg {
border-spacing: 0;
border-color: #ccc;
width: 100%;
}
.tg td {
font-family: Arial;
font-size: 12px;
padding: 2px;
border: 1px solid #999;
overflow: hidden;
word-break: normal;
border-color: #ccc;
color: #333;
background-color: #fff;
text-align: center;
}
.tg th {
font-family: Arial;
font-size: 14px;
font-weight: normal;
padding: 5px;
border-style: solid;
border-width: 1px;
overflow: hidden;
word-break: normal;
border-color: #ccc;
color: #333;
background-color: #f0f0f0;
text-align: center;
font-weight: bold;
}
.tg .tg-3wr7 {
font-weight: bold;
font-size: 12px;
text-align: center
}
.tg .tg-ti5e {
font-size: 10px;
font-family: "Arial", Helvetica, sans-serif !important;;
text-align: left
}
.tg .tg-rv4w {
font-size: 10px;
font-family: "Arial", Helvetica, sans-serif !important;;
text-align: center
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 12px;
line-height: 12px;
font-size:9px;
text-align: center;
}
</style>
</head>
<body>
<div class="footer">{{ __('Dicetak oleh :name, pada :time', ['name' => auth()->user()->name, 'time' => \Carbon\Carbon::now()->format('j F Y H:i:s')]) }}</div>
@yield('content')
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="img/favicon.png">
<title>{{ config('app.name') }}</title>
<!-- Main styles for this application -->
<link href="{{ mix('css/all.css') }}" rel="stylesheet">
<style>
.form-group.required .col-form-label:after {
content:" *";
color:red;
}
</style>
@stack('head')
</head>
<body class="app @stack('body.class')" style="background-image: url(/img/manstop.png);background-size: cover;">
@stack('begin')
@yield('body')
<!-- Main scripts -->
<script src="{{ mix('js/all.js') }}"></script>
<script src="{{ asset('lib/sweetalert2.all.min.js') }}"></script>
@stack('end')
</body>
</html>
@extends('layouts.base')
@section('body')
<div class="app-body">
<main class="main">
@include('layouts._alert')
<div class="container-fluid">
@yield('content')
</div>
</main>
</div>
@endsection
@extends('layouts.base')
@section('body')<!--
@include('layouts._header') -->
<div class="app-body">
<main class="main mb-5">
{{--@include('layouts._breadcrumb')--}}
@include('layouts._alert')
<div class="container-fluid">
@yield('content')
</div>
</main>
</div>
<!-- @include('layouts._footer') -->
@endsection
...@@ -69,6 +69,9 @@ ...@@ -69,6 +69,9 @@
<li> <li>
<a href="#contact">Contact</a> <a href="#contact">Contact</a>
</li> </li>
<li>
<a href="/event/find">Go To Event</a>
</li>
</ul> </ul>
</div> </div>
</div> </div>
......
...@@ -23,6 +23,7 @@ Route::get('/get-cookie', function() { ...@@ -23,6 +23,7 @@ Route::get('/get-cookie', function() {
}); });
Route::get('/', function () { Route::get('/', function () {
return view('welcome'); return view('welcome');
}); });
...@@ -44,6 +45,21 @@ Route::group( ...@@ -44,6 +45,21 @@ Route::group(
function($app) { function($app) {
$app->get('{slug}/', 'EventPageController@index'); $app->get('{slug}/', 'EventPageController@index');
$app->get('find/{slug}/', 'EventPageController@findevent');
$app->get('detail/{slug}', 'EventPageController@detail'); $app->get('detail/{slug}', 'EventPageController@detail');
$app->get('qrscan/{slug}/{email}/{invcode}/', 'EventPageController@qrscan');
});
Route::group(
[
'middleware' => ['auth']
],
function() {
Route::get('home', 'HomeController@index')->name('home');
Route::get('manage', 'HomeController@manageevent')->name('manage');
Route::get('manage/{id}/', 'HomeController@editevent')->name('show');
Route::get('guest', 'HomeController@manageguest')->name('guest');
Route::get('attendance/{id}/', 'HomeController@attendance')->name('scan');
}); });
\ No newline at end of file \ 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