Commit 64cc8306 by fezrul

update admin

parent a216581e
......@@ -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 view('event.indexqr',compact('eventid','notice','email','invcode'));
}else{
$info = EventParticipant::where('id', $session)->first();
......
......@@ -94,7 +94,9 @@ class HomeController extends Controller
// dd('login');
$user = Auth::user();
$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'));
......
......@@ -27,16 +27,7 @@
</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>
<a href="/attendance/{{$event->id}}" class="btn btn-warning">Print Out Event Detail and QrCode</a>
</div>
......
......@@ -7,8 +7,41 @@
<div class="row">
<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>
......
......@@ -10,7 +10,8 @@
<div class="input-group mb-3">
<script type="text/javascript" src="https://rawgit.com/schmich/instascan-builds/master/instascan.min.js"></script>
</head>
<body>
<video id="preview"></video>
<script type="text/javascript">
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
......@@ -27,7 +28,8 @@
console.error(e);
});
</script>
</body>
</html>
</div>
......@@ -36,27 +38,7 @@
<h4 class="title"></h4>
<p class="category"><div class="form-group">
<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></p>
</div>
......
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