Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
event
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fezrul
event
Commits
64cc8306
Commit
64cc8306
authored
Sep 13, 2018
by
fezrul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update admin
parent
a216581e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
39 deletions
+45
-39
app/Http/Controllers/EventPageController.php
+0
-2
app/Http/Controllers/HomeController.php
+4
-2
resources/views/admin/detail.blade.php
+1
-10
resources/views/admin/guest.blade.php
+35
-2
resources/views/admin/scan.blade.php
+5
-23
No files found.
app/Http/Controllers/EventPageController.php
View file @
64cc8306
...
@@ -101,8 +101,6 @@ class EventPageController extends Controller
...
@@ -101,8 +101,6 @@ class EventPageController extends Controller
return
redirect
::
to
(
'/event/'
.
$slug
)
->
withCookie
(
cookie
(
'qrcode'
,
1
,
1
))
->
withCookie
(
cookie
(
'email'
,
$email
,
1
))
->
withCookie
(
cookie
(
'invcode'
,
$invcode
,
1
));
return
redirect
::
to
(
'/event/'
.
$slug
)
->
withCookie
(
cookie
(
'qrcode'
,
1
,
1
))
->
withCookie
(
cookie
(
'email'
,
$email
,
1
))
->
withCookie
(
cookie
(
'invcode'
,
$invcode
,
1
));
// return view('event.indexqr',compact('eventid','notice','email','invcode'));
}
else
{
}
else
{
$info
=
EventParticipant
::
where
(
'id'
,
$session
)
->
first
();
$info
=
EventParticipant
::
where
(
'id'
,
$session
)
->
first
();
...
...
app/Http/Controllers/HomeController.php
View file @
64cc8306
...
@@ -94,7 +94,9 @@ class HomeController extends Controller
...
@@ -94,7 +94,9 @@ class HomeController extends Controller
// dd('login');
// dd('login');
$user
=
Auth
::
user
();
$user
=
Auth
::
user
();
$uid
=
$user
->
id
;
$uid
=
$user
->
id
;
$event
=
MasterEvent
::
where
(
'fk_user'
,
$uid
)
->
get
();
$events
=
MasterEvent
::
where
(
'fk_user'
,
$uid
)
->
first
();
$event
=
EventParticipant
::
where
(
'fk_master_event'
,
$events
->
id
)
->
get
();
return
view
(
'admin.guest'
,
compact
(
'event'
));
return
view
(
'admin.guest'
,
compact
(
'event'
));
...
@@ -144,7 +146,7 @@ class HomeController extends Controller
...
@@ -144,7 +146,7 @@ class HomeController extends Controller
return
$result
;
return
$result
;
}
}
public
function
editevent
(
$id
)
public
function
editevent
(
$id
)
{
{
...
...
resources/views/admin/detail.blade.php
View file @
64cc8306
...
@@ -27,16 +27,7 @@
...
@@ -27,16 +27,7 @@
</div>
</div>
</div>
</div>
<div class="
col
-
lg
-
6
col
-
md
-
6
col
-
sm
-
6
">
<div class="
col
-
lg
-
6
col
-
md
-
6
col
-
sm
-
6
">
<div class="
cards
cards
-
stats
">
<a href="
/
attendance
/
{{
$event
->
id
}}
" class="
btn
btn
-
warning
">Print Out Event Detail and QrCode</a>
<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>
</div>
...
...
resources/views/admin/guest.blade.php
View file @
64cc8306
...
@@ -7,8 +7,41 @@
...
@@ -7,8 +7,41 @@
<div class="
row
">
<div class="
row
">
<div class="
col
-
md
-
12
">
<div class="
col
-
md
-
12
">
<span>Please Choose your event and click populate for the guest list</span>
<table class="
table
table
-
striped
mb
-
0
">
<thead class="
thead
-
light
">
<tr>
<th>{{ __("
No
") }}</th>
<th>{{ __("
Participant
Name
") }}</th>
<th>{{ __("
Email
") }}</th>
<th>{{ __("
Invitation
Status
") }}</th>
<th>{{ __("
acceptance
Status
") }}</th>
<th>Action </th>
</tr>
</thead>
<tbody>
@if(
$event
)
@foreach(
$event
as
$event
)
<tr>
<td>{{
$loop->iteration
}}</td>
<td>{{
$event->fullname
}}</td>
<td>{{
$event->email
}}</td>
<td>@if(
$event->invitation_status
== 1) Sent @else Not Send @endif</td>
<td>@if(
$event->acceptance_status
== 1) Accepted @else Pending @endif</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>
</div>
...
...
resources/views/admin/scan.blade.php
View file @
64cc8306
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
<div class="
input
-
group
mb
-
3
">
<div class="
input
-
group
mb
-
3
">
<script type="
text
/
javascript
" src="
https
://
rawgit
.
com
/
schmich
/
instascan
-
builds
/
master
/
instascan
.
min
.
js
"></script>
<script type="
text
/
javascript
" src="
https
://
rawgit
.
com
/
schmich
/
instascan
-
builds
/
master
/
instascan
.
min
.
js
"></script>
</head>
<body>
<video id="
preview
"></video>
<video id="
preview
"></video>
<script type="
text
/
javascript
">
<script type="
text
/
javascript
">
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
...
@@ -27,7 +28,8 @@
...
@@ -27,7 +28,8 @@
console.error(e);
console.error(e);
});
});
</script>
</script>
</body>
</html>
</div>
</div>
...
@@ -36,27 +38,7 @@
...
@@ -36,27 +38,7 @@
<h4 class="
title
"></h4>
<h4 class="
title
"></h4>
<p class="
category
"><div class="
form
-
group
">
<p class="
category
"><div class="
form
-
group
">
<div class="
form
-
check
form
-
check
-
inline
">
<div class="
form
-
check
form
-
check
-
inline
">
<section class="
cameras
">
<h2>Cameras</h2>
<ul>
<li v-if="
cameras
.
length
===
0
" class="
empty
">No cameras found</li>
<li v-for="
camera
in
cameras
">
<span v-if="
camera
.
id
==
activeCameraId
" :title="
formatName
(
camera
.
name
)
" class="
active
"></span>
<span v-if="
camera
.
id
!=
activeCameraId
" :title="
formatName
(
camera
.
name
)
">
<a @click.stop="
selectCamera
(
camera
)
"></a>
</span>
</li>
</ul>
</section>
<section class="
scans
">
<h2>Scans</h2>
<ul v-if="
scans
.
length
===
0
">
<li class="
empty
">No scans yet</li>
</ul>
<transition-group name="
scans
" tag="
ul
">
<li v-for="
scan
in
scans
" :key="
scan
.
date
" :title="
scan
.
content
"></li>
</transition-group>
</section>
</div>
</div>
</div></p>
</div></p>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment