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
490c4030
Commit
490c4030
authored
Feb 04, 2024
by
Siti Aisah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
back
parent
e018b413
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
16 deletions
+3
-16
app/Http/Controllers/RegistrasiController.php
+1
-3
resources/views/form_kegiatan.blade.php
+1
-1
resources/views/form_registrasi.blade.php
+1
-12
No files found.
app/Http/Controllers/RegistrasiController.php
View file @
490c4030
...
...
@@ -15,8 +15,7 @@
class
RegistrasiController
extends
Controller
{
public
function
create
(){
$kegiatan
=
Kegiatan
::
where
(
'is_foreach'
,
'1'
)
->
get
();
$konvensi
=
Kegiatan
::
whereNull
(
'is_foreach'
)
->
first
();
$kegiatan
=
Kegiatan
::
get
();
$konferensi
=
Konferensi
::
get
();
$jumlahPendaftar
=
Registrasi
::
count
();
$nourut
=
sprintf
(
"%05s"
,
$jumlahPendaftar
+
1
);
...
...
@@ -26,7 +25,6 @@ public function create(){
$data
=
[
'kegiatan'
=>
$kegiatan
,
'konvensi'
=>
$konvensi
,
'konferensi'
=>
$konferensi
,
'kode_registrasi'
=>
$koderegistrasi
];
...
...
resources/views/form_kegiatan.blade.php
View file @
490c4030
...
...
@@ -2,7 +2,7 @@
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
class=
"form-group"
id =
"list-kegiatan"
@
if
($
errors-
>
has('thematic_workshop')) has-error @endif>
<label>
Kegiatan
tambahan
</label>
<label>
Kegiatan
</label>
@foreach ($kegiatan as $keg)
<div
class=
"form-check"
>
<input
class=
"form-check-input"
type=
"radio"
id=
"kegiatan"
name=
"kegiatan{{ $i }}[]"
value=
"{{ $keg->id }}"
>
...
...
resources/views/form_registrasi.blade.php
View file @
490c4030
...
...
@@ -108,17 +108,6 @@
</div>
</div>
<div class="
col
-
12
col
-
md
-
4
col
-
lg
-
4
">
<div class="
card
">
<div class="
card
-
body
">
<div class="
form
-
group
" id = "
konvensi
" @if (
$errors->has
('thematic_workshop')) has-error @endif>
<label>Kegiatan utama</label>
<div class="
form
-
check
">
<input class="
form
-
check
-
input
" type="
radio
" id="
kegiatan
-
utama
" name="
kegiatan
-
utama
" value="
{{
$konvensi
->
id
}}
">
<label class="
form
-
check
-
label
" for="
{{
$konvensi
->
nama
}}
">{{
$konvensi->nama
}}</label>
</div>
</div>
</div>
</div>
<div class="
row
" id="
parent
-
kegiatan
">
{{ view('form_kegiatan', [
'kegiatan' =>
$kegiatan
,
...
...
@@ -127,7 +116,7 @@
]) }}
</div>
<div>
<button type="
button
" class="
btn
btn
-
primary
" onclick="
tambahKegiatan
()
">
+ Kegiatan Tambah
an</button>
<button type="
button
" class="
btn
btn
-
primary
" onclick="
tambahKegiatan
()
">
Tambah kegiat
an</button>
</div>
<div class="
card
">
<div class="
card
-
body
">
...
...
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