Commit 490c4030 by Siti Aisah

back

parent e018b413
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
class RegistrasiController extends Controller class RegistrasiController extends Controller
{ {
public function create(){ public function create(){
$kegiatan = Kegiatan::where('is_foreach','1')->get(); $kegiatan = Kegiatan::get();
$konvensi = Kegiatan::whereNull('is_foreach')->first();
$konferensi = Konferensi::get(); $konferensi = Konferensi::get();
$jumlahPendaftar = Registrasi::count(); $jumlahPendaftar = Registrasi::count();
$nourut = sprintf("%05s", $jumlahPendaftar+1); $nourut = sprintf("%05s", $jumlahPendaftar+1);
...@@ -26,7 +25,6 @@ public function create(){ ...@@ -26,7 +25,6 @@ public function create(){
$data = [ $data = [
'kegiatan' => $kegiatan, 'kegiatan' => $kegiatan,
'konvensi' => $konvensi,
'konferensi' => $konferensi, 'konferensi' => $konferensi,
'kode_registrasi' => $koderegistrasi 'kode_registrasi' => $koderegistrasi
]; ];
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="form-group" id = "list-kegiatan" @if ($errors->has('thematic_workshop')) has-error @endif> <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) @foreach ($kegiatan as $keg)
<div class="form-check"> <div class="form-check">
<input class="form-check-input" type="radio" id="kegiatan" name="kegiatan{{ $i }}[]" value="{{ $keg->id }}"> <input class="form-check-input" type="radio" id="kegiatan" name="kegiatan{{ $i }}[]" value="{{ $keg->id }}">
......
...@@ -108,17 +108,6 @@ ...@@ -108,17 +108,6 @@
</div> </div>
</div> </div>
<div class="col-12 col-md-4 col-lg-4"> <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"> <div class="row" id="parent-kegiatan">
{{ view('form_kegiatan', [ {{ view('form_kegiatan', [
'kegiatan' => $kegiatan, 'kegiatan' => $kegiatan,
...@@ -127,7 +116,7 @@ ...@@ -127,7 +116,7 @@
]) }} ]) }}
</div> </div>
<div> <div>
<button type="button" class="btn btn-primary" onclick="tambahKegiatan()">+ Kegiatan Tambahan</button> <button type="button" class="btn btn-primary" onclick="tambahKegiatan()">Tambah kegiatan</button>
</div> </div>
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
......
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