Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
konaspi2024
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
konaspi2024
Commits
78c1c32f
Commit
78c1c32f
authored
Mar 25, 2024
by
Triyah Fatmawati
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.unesa.ac.id/aisah/konaspi2024
parents
48be2283
c42cc4a3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
225 additions
and
18 deletions
+225
-18
app/Http/Controllers/Admin/AdminController.php
+16
-2
app/Models/VKegiatan.php
+12
-0
app/Models/VRegistrasi.php
+12
-0
resources/views/admin/peserta/excel.blade.php
+152
-0
resources/views/admin/peserta/index.blade.php
+29
-12
resources/views/layouts/sidebar.blade.php
+4
-4
No files found.
app/Http/Controllers/Admin/AdminController.php
View file @
78c1c32f
...
...
@@ -6,9 +6,11 @@
use
Illuminate\Support\Facades\Hash
;
use
App\Http\Controllers\Controller
;
use
App\Models\Kegiatan
;
use
App\Models\KegiatanPeserta
;
use
App\Models\Konferensi
;
use
App\Models\Registrasi
;
use
App\Models\User
;
use
App\Models\VRegistrasi
;
use
Exception
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\DB
;
...
...
@@ -289,7 +291,8 @@ public function delete_konferensi($id) {
}
public
function
index_peserta
(){
$peserta
=
Registrasi
::
with
(
'pkKegiatan'
,
'pkKonferensi'
)
->
get
();
// $peserta = Registrasi::whereHas('pkRegistrasiPeserta')->get();
$peserta
=
VRegistrasi
::
orderby
(
'created_at'
,
'DESC'
)
->
get
();
$data
=
[
'peserta'
=>
$peserta
];
...
...
@@ -300,7 +303,9 @@ public function index_peserta(){
public
function
delete_peserta
(
$id
)
{
DB
::
beginTransaction
();
try
{
Registrasi
::
find
(
$id
)
->
delete
();
KegiatanPeserta
::
where
(
'id_registrasi'
,
$id
)
->
delete
();
Registrasi
::
where
(
'id'
,
$id
)
->
delete
();
DB
::
commit
();
return
redirect
()
->
back
()
...
...
@@ -314,4 +319,13 @@ public function delete_peserta($id) {
->
with
(
'error'
,
'Data failed to delete'
);
}
}
public
function
download_peserta
()
{
date_default_timezone_set
(
"Asia/Jakarta"
);
$data
[
'peserta'
]
=
VRegistrasi
::
orderby
(
'created_at'
,
'DESC'
)
->
get
();
$data
[
'nama_file'
]
=
'daftar peserta konaspi'
.
" "
.
date
(
'Y-m-d'
);
return
view
(
'admin.peserta.excel'
,
$data
);
}
}
app/Models/VKegiatan.php
0 → 100644
View file @
78c1c32f
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Model
;
class
VKegiatan
extends
Model
{
public
$incrementing
=
false
;
protected
$table
=
'v_kegiatan'
;
protected
$guarded
=
[];
}
app/Models/VRegistrasi.php
0 → 100644
View file @
78c1c32f
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Model
;
class
VRegistrasi
extends
Model
{
public
$incrementing
=
false
;
protected
$table
=
'v_registrasi'
;
protected
$guarded
=
[];
}
resources/views/admin/peserta/excel.blade.php
0 → 100644
View file @
78c1c32f
<?php
header
(
"Content-type: application/vnd-ms-excel"
);
header
(
"Content-Disposition: attachment; filename=
$nama_file
.xls"
);
?>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
Peserta KONASPI 2024
</title>
<style
type=
"text/css"
>
body
{
background-color
:
#FFF
;
}
.num
{
mso-number-format
:
"\@"
;
}
.title-sm
{
/*font-family: 'myriadproregular'; */
font-size
:
15pt
;
font-weight
:
bold
;
}
.title-lg
{
/*font-family: 'myriadproregular'; */
font-size
:
24pt
;
font-weight
:
bold
;
}
body
{
font-size
:
11pt
;
/*font-family: 'myriadproregular'; */
}
.title-jurusan
{
/*font-family: 'myriadproregular'; */
font-size
:
20pt
;
font-weight
:
bold
;
}
#head-title
{
/*font-family: MyriadPro-Regular; */
src
:
url("{{ asset('assets/font/MyriadPro-Regular.otf')
}
}"
);
font-family
:MyriadPro-Regular
;
font-weight
:bold
;
}
#head-big
{
/*font-family:MyriadPro-Cond; */
font-weight
:
bold
;
font-size
:
22pt
;
}
#container
td
{
/*font-family:MyriadPro-Regular;*/
}
.page-break
{
page-break-after
:
always
;
}
div
.ui-menu
li
{
list-style
:
none
;
background-image
:
none
;
background-repeat
:
none
;
background-position
:
0
;
}
ul
{
list-style-type
:
none
;
padding
:
0px
;
margin
:
0px
;
}
li
{
background-image
:
url(sqpurple.gif)
;
background-repeat
:
no-repeat
;
background-position
:
0px
5px
;
padding-left
:
14px
;
}
.responsive
{
width
:
100%
;
height
:
auto
;
}
.kotak
{
border
:
1px
solid
#000
;
width
:
15px
;
height
:
15px
;
font-weight
:
bold
;
font-size
:
9pt
}
</style>
<style>
.str
{
mso-number-format
:
\@
;
}
</style>
<center>
DAFTAR PESERTA KONASPI 2024
</center>
<table>
<thead>
<tr
style=
"text-align: center;"
>
<th>
No.
</th>
<th>
Kode Registrasi
</th>
<th>
Nama
</th>
<th>
Email
</th>
<th>
Telepon
</th>
<th>
Instansi
</th>
<th>
Jabatan
</th>
<th>
Alamat
</th>
<th>
Kode Pos
</th>
<th>
Kota
</th>
<th>
Virtual Account
</th>
<th>
Tagihan
</th>
<th>
Kegiatan
</th>
<th>
Konferensi
</th>
<th>
Tanggal Daftar
</th>
<th>
Tanggal Bayar
</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach ($peserta as $p)
<tr
style=
"text-align: center;"
>
<td>
{{ $no }}
</td>
<td>
{{ $p->kode_registrasi }}
</td>
<td>
{{ $p->nama}}
</td>
<td>
{{ $p->email}}
</td>
<td>
'{{ $p->telepon }}
</td>
<td>
{{ $p->instansi}}
</td>
<td>
{{ $p->jabatan }}
</td>
<td>
{{ $p->alamat }}
</td>
<td>
{{ $p->kode_pos }}
</td>
<td>
{{ $p->kota }}
</td>
<td>
'{{ $p->nomor_va }}
</td>
<td>
{{ $p->tagihan }}
</td>
@php
$keg = DB::table('v_kegiatan')->where('id_registrasi', $p->id)->get();
@endphp
<td
align=
"left"
>
@foreach($keg as $k)
{{ $k->kegiatan.";" }}
<br>
@endforeach
</td>
<td
align=
"left"
>
@foreach($keg as $k)
{{ $k->konferensi.";" }}
<br>
@endforeach
</td>
<td>
{{ $p->created_at }}
</td>
<td>
{{ $p->tanggal_bayar }}
</td>
</tr>
@php
$no++;
@endphp
@endforeach
</tbody>
</table>
\ No newline at end of file
resources/views/admin/peserta/index.blade.php
View file @
78c1c32f
...
...
@@ -8,7 +8,7 @@
<div class="
breadcrumb
-
item
">
<a href="">Home</a>
</div>
<div class="
breadcrumb
-
item
active
">
Participant Da
ta</div>
<div class="
breadcrumb
-
item
active
">
Data Peser
ta</div>
</div>
</div>
...
...
@@ -24,8 +24,9 @@
<thead>
<tr style="
text
-
align
:
center
;
">
<th>No.</th>
<th>Kode Registrasi</th>
<th>Nama</th>
<th>Email</th>
{{-- <th>Email</th> --}}
<th>Instansi</th>
<th>Kegiatan</th>
<th>Konferensi</th>
...
...
@@ -37,16 +38,25 @@
$no
= 1;
@endphp
@foreach (
$peserta
as
$p
)
@php
$status
= DB::table('registrasi')->where('id',
$p->id
)->first();
@endphp
<tr style="
text
-
align
:
center
;
">
<td>{{
$no
}}</td>
<td>{{
$p->kode_registrasi
}}</td>
<td>{{
$p->nama
}}</td>
<td>{{
$p->email
}}</td>
{{-- <td>{{
$p->email
}}</td> --}}
<td>{{
$p->instansi
}}</td>
<td>{{
$p->pkKegiatan
->nama }}</td>
<td>{{
$p->pkKonferensi
->nama }}</td>
@php
$keg
= DB::table('v_kegiatan')->where('id_registrasi',
$p->id
)->get();
@endphp
<td align="
left
">
@foreach(
$keg
as
$k
)
{{
$k->kegiatan
."
;
" }}<br>
@endforeach
</td>
<td align="
left
">
@foreach(
$keg
as
$k
)
{{
$k->konferensi
."
;
" }}<br>
@endforeach
</td>
<td>
{{-- <button type="
button
" class="
btn
btn
-
info
" data-toggle="
modal
" data-target="
#update-modal{{$p->id}}"><i class="fa fa-check" aria-hidden="true"></i></button> --}}
<
button
type
=
"button"
class
="
btn
btn
-
primary
" data-toggle="
modal
" data-target="
#detail-modal{{$p->id}}"><i class="fa fa-search" aria-hidden="true"></i></button>
...
...
@@ -148,14 +158,21 @@
<input type="
text
" class="
form
-
control
" id="
kota
" name="
kota
" value="
{{
$p
->
kota
}}
">
</div>
</div>
<label for="
kegiatan
">
Kegiatan
</label>
<input type="
text
" class="
form
-
control
" id="
kegiatan
" name="
kegiatan
" value="
{{
$p
->
pkKegiatan
->
nam
a
}}
">
<label for="
kegiatan
">
Virtual Account
</label>
<input type="
text
" class="
form
-
control
" id="
kegiatan
" name="
kegiatan
" value="
{{
$p
->
nomor_v
a
}}
">
<label for="
konferensi
">
Konferensi
</label>
<input type="
text
" class="
form
-
control
" id="
konferensi
" name="
konferensi
" value="
{{
$p
->
pkKonferensi
->
nama
}}
">
<label for="
konferensi
">
Tagihan
</label>
<input type="
text
" class="
form
-
control
" id="
konferensi
" name="
konferensi
" value="
{{
$p
->
tagihan
}}
">
<label for="
tglregistasi
">Tanggal Registrasi</label>
<input type="
text
" class="
form
-
control
" id="
tglregistasi
" name="
tglregistasi
" value="
{{
$p
->
created_at
}}
">
<label for="
tglregistasi
">Tanggal Bayar</label>
@if(
$p->tanggal_bayar
)
<input type="
text
" class="
form
-
control
" id="
tglregistasi
" name="
tglregistasi
" value="
{{
$p
->
tanggal_bayar
}}
">
@else
<input type="
text
" class="
form
-
control
" id="
tglregistasi
" name="
tglregistasi
" value="
Belum
Terbayar
">
@endif
</div>
{{-- <div class="
table
-
responsive
form
-
group
" style="
text
-
align
:
left
">
<label for="">Daftar Dokumen</label>
...
...
resources/views/layouts/sidebar.blade.php
View file @
78c1c32f
...
...
@@ -13,20 +13,20 @@
<a class="
nav
-
link
" href=""><i class="
fas
fa
-
home
"></i><span>Home</span></a>
</li>
<li class="
nav
-
item
">
<a class="
nav
-
link
" href=""><i class="
fa
fa
-
users
"></i><span>Data Peserta</span></a>
<a class="
nav
-
link
" href="
{{
route
(
'admin.index_peserta'
)}}
"><i class="
fa
fa
-
users
"></i><span>Data Peserta</span></a>
</li>
<li class="
nav
-
item
">
<a class="
nav
-
link
" href=""><i class="
fa
fa
-
suitcase
"></i><span>Master Kegiatan</span></a>
<a class="
nav
-
link
" href="
{{
route
(
'admin.index_kegiatan'
)}}
"><i class="
fa
fa
-
suitcase
"></i><span>Master Kegiatan</span></a>
</li>
<li class="
nav
-
item
">
<a class="
nav
-
link
" href=""><i class="
fa
fa
-
user
-
circle
"></i><span>Master Konferensi</span></a>
<a class="
nav
-
link
" href="
{{
route
(
'admin.index_konferensi'
)}}
"><i class="
fa
fa
-
user
-
circle
"></i><span>Master Konferensi</span></a>
</li>
@else
<li class="
nav
-
item
">
<a class="
nav
-
link
" href="
{{
route
(
'user.create'
)}}
"><i class="
fas
fa
-
file
-
pen
"></i><span>Registrasi</span></a>
</li>
<li class="
nav
-
item
">
<a class="
nav
-
link
" href="
"
><i class="
fa
fa
-
sign
-
in
"></i><span>Login</span></a>
<a class="
nav
-
link
" href="
{{
route
(
'login'
)}}
><
i
class
="
fa
fa
-
sign
-
in
"></i><span>Login</span></a>
</li>
@endif
</ul>
...
...
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