Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sipeka
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
sipeka
Commits
685c324f
Commit
685c324f
authored
May 07, 2024
by
Siti Aisah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update kategori pengusul
parent
d3988bcd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
191 additions
and
266 deletions
+191
-266
app/Http/Controllers/TransaksiController.php
+55
-10
app/Models/Admin/Penelaah.php
+19
-0
app/Models/Admin/Pengajuan.php
+29
-0
config/database.php
+11
-0
config/filesystems.php
+8
-0
resources/views/layouts/menu.blade.php
+1
-1
resources/views/transaksi/index.blade.php
+66
-254
routes/web.php
+2
-1
No files found.
app/Http/Controllers/TransaksiController.php
View file @
685c324f
...
@@ -3,30 +3,75 @@
...
@@ -3,30 +3,75 @@
namespace
App\Http\Controllers
;
namespace
App\Http\Controllers
;
use
App\Http\Support\ValidationRule
;
use
App\Http\Support\ValidationRule
;
use
Illuminate\Support\Facades\Hash
;
use
App\Http\Controllers\Controller
;
use
App\Http\Controllers\Controller
;
use
App\Models\Kegiatan
;
use
App\Models\Admin\Pengajuan
;
use
App\Models\KegiatanPeserta
;
use
App\Models\Konferensi
;
use
App\Models\Registrasi
;
use
App\Models\User
;
use
App\Models\VRegistrasi
;
use
Exception
;
use
Exception
;
use
Storage
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Redirect
;
class
TransaksiController
extends
Controller
class
TransaksiController
extends
Controller
{
{
public
function
index
()
{
public
function
index
()
{
$tr
=
DB
::
connection
(
'epk'
)
->
table
(
'v_penelaah'
)
->
get
();
$pengusul
=
DB
::
table
(
'bantuan_pengusul'
)
->
get
();
$kategori
=
DB
::
table
(
'ms_kategori'
)
->
orderBy
(
'kode_kategori'
,
'asc'
)
->
get
();
dd
(
$tr
);
$data
=
[
$data
=
[
'semua'
=>
$tr
,
'pengusul'
=>
$pengusul
,
'kategori'
=>
$kategori
];
];
return
view
(
'transaksi.index'
,
$data
);
return
view
(
'transaksi.index'
,
$data
);
}
}
public
function
store
(
Request
$request
){
$rule
=
[
'kategori'
=>
'required'
,
'file_ec'
=>
'required'
,
'nosurat'
=>
'required'
];
$request
->
validate
(
$rule
,
ValidationRule
::
getErrorMessage
(
$rule
));
DB
::
beginTransaction
();
if
(
$request
->
hasFile
(
'file_ec'
)){
$file
=
$request
->
file
(
'file_ec'
);
$filename
=
$file
->
getClientOriginalName
();
Storage
::
disk
(
'uploads'
)
->
put
(
'sipeka/'
.
$filename
,
file_get_contents
(
$file
->
getRealPath
()));
}
try
{
$transaksi
=
[
'id_pengajuan'
=>
$request
->
idpengajuan
,
'judul'
=>
$request
->
judul
,
'pengusul'
=>
$request
->
pengusul
,
'klasifikasi'
=>
$request
->
klasifikasi
,
'tahun'
=>
$request
->
tahun
,
'id_kategori'
=>
$request
->
kategori
,
'file_ec'
=>
$filename
,
'no_sk'
=>
$request
->
nosurat
,
];
Pengajuan
::
query
()
->
create
(
$transaksi
);
DB
::
commit
();
return
Redirect
::
route
(
'transaksi.index'
)
->
with
(
'success'
,
'Data kategori berhasil diupdate'
);
}
catch
(
Exception
$e
){
Log
::
error
(
$e
);
DB
::
rollBack
();
return
Redirect
::
route
(
'transaksi.index'
)
->
with
(
'error'
,
'Data kategori gagal diupdate'
);
}
}
}
}
app/Models/Admin/Penelaah.php
0 → 100644
View file @
685c324f
<?php
namespace
App\Models\Admin
;
use
App\Traits\Uuid
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
class
Penelaah
extends
Model
{
use
HasFactory
;
use
Uuid
;
public
$incrementing
=
false
;
protected
$table
=
'tr_penelaah'
;
protected
$keyType
=
'string'
;
protected
$guarded
=
[];
}
app/Models/Admin/Pengajuan.php
0 → 100644
View file @
685c324f
<?php
namespace
App\Models\Admin
;
use
App\Traits\Uuid
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\Model
;
class
Pengajuan
extends
Model
{
use
HasFactory
;
use
Uuid
;
public
$incrementing
=
false
;
protected
$table
=
'tr_pengajuan'
;
protected
$keyType
=
'string'
;
protected
$fillable
=
[
'id'
,
'id_pengajuan'
,
'judul'
,
'pengusul'
,
'klasifikasi'
,
'tahun'
,
'id_kategori'
,
'file_ec'
,
'no_sk'
];
}
config/database.php
View file @
685c324f
...
@@ -117,8 +117,19 @@
...
@@ -117,8 +117,19 @@
'prefix'
=>
''
,
'prefix'
=>
''
,
'strict'
=>
false
,
'strict'
=>
false
,
'engine'
=>
null
,
'engine'
=>
null
,
'options'
=>
[
\PDO
::
MYSQL_ATTR_LOCAL_INFILE
=>
true
,
],
],
],
'ssh'
=>
[
'host'
=>
env
(
'SSH_HOST'
),
'port'
=>
env
(
'SSH_PORT'
),
'username'
=>
env
(
'SSH_USER'
),
'key'
=>
env
(
'SSH_KEY'
),
],
],
],
/*
/*
...
...
config/filesystems.php
View file @
685c324f
...
@@ -56,6 +56,14 @@
...
@@ -56,6 +56,14 @@
'throw'
=>
false
,
'throw'
=>
false
,
],
],
'uploads'
=>
[
'driver'
=>
'ftp'
,
'host'
=>
'statik.unesa.ac.id'
,
'username'
=>
'anchuz'
,
'password'
=>
'k0nt3nstatik@un3s4ppt1!)@(#*'
,
'ssl'
=>
true
,
],
],
],
/*
/*
...
...
resources/views/layouts/menu.blade.php
View file @
685c324f
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</li>
</li>
<li
class=
"dropdown nav-item"
data-menu=
"dropdown"
><a
class=
"dropdown-toggle nav-link d-flex align-items-center"
href=
"#"
data-bs-toggle=
"dropdown"
><i
data-feather=
'edit'
></i><span
data-i18n=
"Apps"
>
Transaksi
</span></a>
<li
class=
"dropdown nav-item"
data-menu=
"dropdown"
><a
class=
"dropdown-toggle nav-link d-flex align-items-center"
href=
"#"
data-bs-toggle=
"dropdown"
><i
data-feather=
'edit'
></i><span
data-i18n=
"Apps"
>
Transaksi
</span></a>
<ul
class=
"dropdown-menu"
data-bs-popper=
"none"
>
<ul
class=
"dropdown-menu"
data-bs-popper=
"none"
>
<li
data-menu=
""
class=
"{{ (request()->
is('/transaksi')) ? 'active' : '' }}"
><a
href=
"{{ route('admin.index-transaksi
') }}"
class=
"dropdown-item d-flex align-items-center"
data-bs-toggle=
""
data-i18n=
"Email"
><i
data-feather=
"check-square"
></i><span
data-i18n=
"Email"
>
Update Kategori
</span></a>
<li
data-menu=
""
class=
"{{ (request()->
getRequestUri() == "
/
transaksi
")
?
'
active
'
:
''
}}"
><a
href=
"{{ route('transaksi.index
') }}"
class=
"dropdown-item d-flex align-items-center"
data-bs-toggle=
""
data-i18n=
"Email"
><i
data-feather=
"check-square"
></i><span
data-i18n=
"Email"
>
Update Kategori
</span></a>
</li>
</li>
<li
data-menu=
""
class=
"{{ (request()->is('pasien/antrian')) ? 'active' : '' }}"
><a
href=
"#"
class=
"dropdown-item d-flex align-items-center"
data-bs-toggle=
""
data-i18n=
"Todo"
><i
data-feather=
'log-in'
></i><span
data-i18n=
"Todo"
>
Tarik Data SAKU
</span></a>
<li
data-menu=
""
class=
"{{ (request()->is('pasien/antrian')) ? 'active' : '' }}"
><a
href=
"#"
class=
"dropdown-item d-flex align-items-center"
data-bs-toggle=
""
data-i18n=
"Todo"
><i
data-feather=
'log-in'
></i><span
data-i18n=
"Todo"
>
Tarik Data SAKU
</span></a>
</li>
</li>
...
...
resources/views/transaksi/index.blade.php
View file @
685c324f
...
@@ -4,22 +4,22 @@
...
@@ -4,22 +4,22 @@
<div class="
col
-
md
-
12
">
<div class="
col
-
md
-
12
">
<div class="
card
">
<div class="
card
">
<div class="
card
-
header
">
<div class="
card
-
header
">
<h4 class="
card
-
title
">Daftar
Pasie
n</h4>
<h4 class="
card
-
title
">Daftar
Usula
n</h4>
</div>
</div>
<div class="
card
-
body
">
<div class="
card
-
body
">
<div class="
card
-
text
">
<div class="
card
-
text
">
<div class="
row
">
<div class="
row
">
<div class="
col
-
md
-
8
">
<div class="
col
-
md
-
8
">
@livewire('admin.masters.registrasi.add-registrasi-component')
{{-- @livewire('admin.masters.registrasi.add-registrasi-component') --}}
</div>
</div>
<div class="
col
-
md
-
4
text
-
right
">
<div class="
col
-
md
-
4
text
-
right
">
<div class="
row
">
{{--
<div class="
row
">
<label class="
col
-
sm
-
3
col
-
form
-
label
"></label>
<label class="
col
-
sm
-
3
col
-
form
-
label
"></label>
<label class="
col
-
sm
-
3
col
-
form
-
label
">Cari : </label>
<label class="
col
-
sm
-
3
col
-
form
-
label
">Cari : </label>
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<input type="
text
" class="
form
-
control
align
-
right
" placeholder="
Search
" wire:model="
keyword
">
<input type="
text
" class="
form
-
control
align
-
right
" placeholder="
Search
" wire:model="
keyword
">
</div>
</div>
</div>
</div>
--}}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -30,186 +30,95 @@
...
@@ -30,186 +30,95 @@
<thead>
<thead>
<tr>
<tr>
<th>No.</th>
<th>No.</th>
<th style="
text
-
align
:
left
">Nama</th>
<th style="
text
-
align
:
left
">Judul</th>
<th style="
text
-
align
:
left
">No. Identitas</th>
<th style="
text
-
align
:
left
">Pengusul</th>
<th style="
text
-
align
:
left
">NIK</th>
<th style="
text
-
align
:
left
">Tahun</th>
<th></th>
<th style="
text
-
align
:
left
">Reviewer</th>
<th style="
text
-
align
:
left
">Klasifikasi</th>
<th style="
text
-
align
:
left
">Update Kategori</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
{{-- @dd(
$registrasis
) --}}
@foreach(
$pengusul
as
$item
)
{{-- @foreach (
$registrasis
as
$item
)
@php
$token
= Str::random(30);
@endphp
<tr>
<tr>
<td>
<td>{{
$item->id_pengajuan
}}</td>
{{
$loop->iteration
+
$registrasis->firstItem
() - 1 }}
<td style="
text
-
align
:
left
">{{
$item->judul
}}</td>
<td style="
text
-
align
:
left
">{{
$item->pengusul
}}</td>
<td style="
text
-
align
:
left
">{{ date('Y',strtotime(
$item->tanggal_keputusan
)) }}</td>
@php
$penelaah
= DB::table('bantuan_penelaah')->where('id_pengajuan',
$item->id_pengajuan
)->get();
@endphp
<td style="
text
-
align
:
left
">
@foreach(
$penelaah
as
$p
)
{{
$p->penelaah
."
;
" }}<br><br>
@endforeach
</td>
</td>
<td style="
text
-
align
:
left
">{{
$item->nama
}}</td>
<td style="
text
-
align
:
left
">{{
$item->klasifikasi
}}</td>
<td style="
text
-
align
:
left
">{{ (
$item->no_identitas
!= null) ?
$item->no_identitas
:
$item->no_referral
."
(
No
.
Referral
)
" }}</td>
<td style="
text
-
align
:
left
">{{
$item->nik
}}</td>
<td>
<td>
<button type="
button
" class="
btn
btn
-
warning
btn
-
sm
" data-bs-toggle="
modal
" data-bs-target="
#editRegistrasiModal" wire:click="edit('{{ encrypt($item->id) }}')"><i data-feather='edit'></i> Edit</button>
<button type="
button
" class="
btn
btn
-
warning
btn
-
sm
" data-bs-toggle="
modal
" data-bs-target="
#updateKategoriModal{{ $item->id_pengajuan }}"><i data-feather='edit'></i></button>
<
button
type
=
"button"
class
="
btn
btn
-
success
btn
-
sm
" data-bs-toggle="
modal
" data-bs-target="
#addNewAntrianModal" wire:click="dataPasien('{{ encrypt($item->id) }}')"><i data-feather='edit'></i> Buat Antrian Poli</button>
<
button
type
=
"button"
class
="
btn
btn
-
success
btn
-
sm
" data-bs-toggle="
modal
" data-bs-target="
#rekamMedisModal" wire:click="rekammedis('{{ encrypt($item->id) }}')"><i data-feather='book'></i> Rekam Medis</button>
<
button
type
=
"button"
class
="
btn
btn
-
danger
btn
-
sm
" data-bs-toggle="
modal
" data-bs-target="
#deleteRegistrasiModal" wire:click="deleteId('{{ encrypt($item->id) }}')"><i data-feather='trash-2'></i></button>
</
td
>
</
td
>
</
tr
>
</
tr
>
@
endforeach
--
}}
</
tbody
>
</
table
>
<
nav
aria
-
label
=
"Page navigation"
>
<
ul
class
="
pagination
justify
-
content
-
center
mt
-
2
">
{{-- {{
$registrasis->links
() }} --}}
</ul>
</nav>
<!--
edit
registrasi
modal
-->
<!--
edit
registrasi
modal
-->
<div class="
modal
fade
" id="
editRegistrasiModal
" tabindex="
-
1
" aria-labelledby="
editRegistrasi
" aria-hidden="
true
" wire:ignore.self
>
<
div
class
="
modal
fade
" id="
updateKategoriModal
{{
$item
->
id_pengajuan
}}
" tabindex="
-
1
" aria-labelledby="
updateKategori
" aria-hidden="
true
"
>
<div class="
modal
-
dialog
modal
-
dialog
-
centered
modal
-
lg
">
<div class="
modal
-
dialog
modal
-
dialog
-
centered
modal
-
lg
">
<div class="
modal
-
content
">
<div class="
modal
-
content
">
<form method="
POST
" action="
{{
route
(
'transaksi.store'
)
}}
" enctype="
multipart
/
form
-
data
" id="
registrasi
">
@csrf
<div class="
modal
-
header
bg
-
transparent
">
<div class="
modal
-
header
bg
-
transparent
">
<button type="
button
" class="
btn
-
close
" data-bs-dismiss="
modal
" aria-label="
Close
"></button>
<button type="
button
" class="
btn
-
close
" data-bs-dismiss="
modal
" aria-label="
Close
"></button>
</div>
</div>
<div class="
modal
-
body
pb
-
5
px
-
sm
-
4
mx
-
50
">
<div class="
modal
-
body
pb
-
5
px
-
sm
-
4
mx
-
50
">
<h1 class="
address
-
title
text
-
center
mb
-
1
" id="
addNewAddressTitle
">Edit Data Pasien</h1>
<h1 class="
address
-
title
text
-
center
mb
-
1
" id="
addNewAddressTitle
">Update Kategori Pengusul</h1>
<form id="
addNewAddressForm
" wire:submit.prevent="
update
()
">
<div class="
row
">
<div class="
row
">
<div class="
col
-
md
-
6
">
<input type="
hidden
" name="
idpengajuan
" value="
{{
$item
->
id_pengajuan
}}
">
<label class="
form
-
label
" for="
modalAddressFirstName
">NIP/NIM/No. Referral Pasien</label>
<div class="
col
-
md
-
12
">
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
no_identitas
" placeholder="
NIP
/
NIM
/
No
.
Referral
Pasien
" data-msg="
Masukkan
NIP
/
NIM
/
No
.
Referral
Pasien
" readonly/>
<label class="
form
-
label
" for="
judul
">Judul</label>
@error('inputs.no_identitas')
<input type="
textarea
" class="
form
-
control
" id="
judul
" name="
judul
" value="
{{
$item
->
judul
}}
" readonly />
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">NIK</label>
<label class="
form
-
label
" for="
pengusul
">Pengusul</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
nik
" placeholder="
NIK
Pasien
" data-msg="
Masukkan
NIK
Pasien
" />
<input type="
text
" class="
form
-
control
" id="
pengusul
" name="
pengusul
" value="
{{
$item
->
pengusul
}}
" readonly />
@error('inputs.nik')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
</div>
</div>
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Nama</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
nama
" placeholder="
Nama
Pasien
" data-msg="
Masukkan
Nama
Pasien
" />
@error('inputs.nama')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
<div class="
row
">
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Alamat</label>
<label class="
form
-
label
" for="
tahun
">Tahun</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
alamat
" placeholder="
Alamat
Pasien
" data-msg="
Masukkan
Alamat
Pasien
" />
<input type="
text
" class="
form
-
control
" id="
tahun
" name="
tahun
" value="
{{
date
(
'Y'
,
strtotime
(
$item
->
tanggal_keputusan
))
}}
" readonly />
@error('inputs.alamat')
<span class="
danger
">{{
$message
}}</span>
@enderror
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Telepon</label>
<label class="
form
-
label
" for="
klasifikasi
">Klasifikasi</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
telepon
" placeholder="
Telepon
Pasien
" data-msg="
Masukkan
Telepon
Pasien
" />
<input type="
text
" class="
form
-
control
" id="
klasifikasi
" name="
klasifikasi
" value="
{{
$item
->
klasifikasi
}}
" readonly />
@error('inputs.telepon')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
</div>
<div class="
row
">
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Tempat Lahir</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
tempat_lahir
" placeholder="
Tempat
Lahir
Pasien
" data-msg="
Masukkan
Tempat
Lahir
Pasien
" />
@error('inputs.tempat_lahir')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Tanggal Lahir</label>
<input type="
date
" class="
form
-
control
" wire:model.defer="
inputs
.
tanggal_lahir
" placeholder="
Tanggal
Lahir
Pasien
" data-msg="
Masukkan
Tanggal
Lahir
Pasien
" />
@error('inputs.tanggal_lahir')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
</div>
<div class="
row
">
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Umur</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
umur
" placeholder="
Umur
Pasien
" data-msg="
Masukkan
Umur
Pasien
" />
@error('inputs.umur')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Golongan Darah</label>
<label class="
form
-
label
" for="
kategori
">Kategori Pengusul</label>
<select class="
form
-
control
" wire:model.defer="
inputs
.
gol_darah
" id="">
<select class="
form
-
control
" id="
kategori
" name="
kategori
" data-msg="
Pilih
Kategori
Yang
Sesuai
">
<option value="">Pilih Golongan Darah</option>
<option value="">Pilih Kategori</option>
<option value="
A
">A</option>
@foreach(
$kategori
as
$k
)
<option value="
B
">B</option>
<option value="
{{
$k
->
id
}}
">{{
$k->kode_kategori
}} - {{
$k->nama_kategori
}}</option>
<option value="
AB
">AB</option>
@endforeach
<option value="
O
">O</option>
<option value="
Tidak
Diketahui
">Tidak Diketahui</option>
</select>
</select>
@
error('inputs.gol_darah'
)
@
if (
$errors->has
('kategori')
)
{{-- <span class="
danger
">{{
$message
}}</span> --}}
<label id="
login
-
error
" class="
error
" for="
kategori
" style="
color
:
red
">
{
{$errors->first('kategori')}
}
</label>
@end
error
@end
if
</div>
</div>
</div>
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Jenis Kelamin</label>
<br>
<label>
<input type="
radio
" id="
modalAddressFirstName
" name="
modalAddressFirstName
" value="
L
" wire:model.defer="
inputs
.
jenis_kelamin
" placeholder="
Jenis
Kelamin
Pasien
" data-msg="
Masukkan
Jenis
Kelamin
Pasien
" />
Laki-Laki
</label>
<label>
<input type="
radio
" id="
modalAddressFirstName
" name="
modalAddressFirstName
" value="
P
" wire:model.defer="
inputs
.
jenis_kelamin
" placeholder="
Jenis
Kelamin
Pasien
" data-msg="
Masukkan
Jenis
Kelamin
Pasien
" />
Perempuan
</label>
@error('inputs.jenis_kelamin')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
<div class="
row
">
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Fakultas
</label>
<label class="
form
-
label
" for="
file_ec
">File EC
</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
fakultas
" placeholder="
Fakultas
Pasien
" data-msg="
Masukkan
Fakultas
Pasien
" /
>
<input type="
file
" class="
form
-
control
" id="
file_ec
" name="
file_ec
" required
>
@
error('inputs.fakultas'
)
@
if (
$errors->has
('file_ec')
)
{{-- <span class="
danger
">{{
$message
}}</span> --}}
<label id="
login
-
error
" class="
error
" for="
file_ec
" style="
color
:
red
">
{
{$errors->first('file_ec')}
}
</label>
@end
error
@end
if
</div>
</div>
<div class="
col
-
md
-
6
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Jurusan</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
jurusan
" placeholder="
Jurusan
Pasien
" data-msg="
Masukkan
Jurusan
Pasien
" />
@error('inputs.jurusan')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
</div>
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Pekerjaan</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
pekerjaan
" placeholder="
Pekerjaan
Pasien
" data-msg="
Masukkan
Pekerjaan
Pasien
" />
@error('inputs.pekerjaan')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Email</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
email
" placeholder="
Email
Pasien
" data-msg="
Masukkan
Email
Pasien
"/>
@error('inputs.email')
{{-- <span class="
danger
">{{
$message
}}</span> --}}
@enderror
</div>
</div>
<hr>
<div class="
col
-
md
-
12
">
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Riwayat Alergi Obat
</label>
<label class="
form
-
label
" for="
nosurat
">No Surat E-Office
</label>
<input type="
text
" class="
form
-
control
"
wire:model.defer="
inputs
.
alergi_obat
" placeholder="
Riwayat
Alergi
Pasien
" data-msg="
Masukkan
Riwayat
Alergi
Pasien
"
/>
<input type="
text
" class="
form
-
control
"
id="
nosurat
" name="
nosurat
" placeholder="
Nomor
Surat
" data-msg="
Masukkan
Nomor
Surat
" value="" required
/>
@
error('inputs.alergi_obat'
)
@
if (
$errors->has
('nosurat')
)
{{-- <span class="
danger
">{{
$message
}}</span> --}}
<label id="
login
-
error
" class="
error
" for="
nosurat
" style="
color
:
red
">
{
{$errors->first('nosurat')}
}
</label>
@end
error
@end
if
</div>
</div>
<div class="
col
-
12
text
-
cen
ter
">
<div class="
modal
-
foo
ter
">
<button type="
submit
" class="
btn
btn
-
primary
me
-
1
mt
-
2
">S
ubmit
</button>
<button type="
submit
" class="
btn
btn
-
primary
me
-
1
mt
-
2
">S
impan
</button>
<button type="
reset
" class="
btn
btn
-
outline
-
secondary
mt
-
2
" data-bs-dismiss="
modal
" aria-label="
Close
">
<button type="
reset
" class="
btn
btn
-
outline
-
secondary
mt
-
2
" data-bs-dismiss="
modal
" aria-label="
Close
">
Cancel
Batalkan
</button>
</button>
</div>
</div>
</form>
</form>
...
@@ -218,106 +127,9 @@
...
@@ -218,106 +127,9 @@
</div>
</div>
</div>
</div>
<!-- / edit registrasi modal -->
<!-- / edit registrasi modal -->
@endforeach
<!-- delete registrasi modal -->
</tbody>
<div class="
modal
fade
" id="
deleteRegistrasiModal
" tabindex="
-
1
" aria-labelledby="
deleteRegistrasi
" aria-hidden="
true
" wire:ignore.self>
</table>
<div class="
modal
-
dialog
modal
-
dialog
-
centered
modal
-
lg
">
<div class="
modal
-
content
">
<div class="
modal
-
body
pb
-
5
px
-
sm
-
4
mx
-
50
">
<h1 class="
address
-
title
text
-
center
mb
-
1
" id="
addNewAddressTitle
">Apakah anda yakin ingin menghapus data pasien?</h1>
<form id="
addNewAddressForm
" wire:submit.prevent="
delete
()
">
<div class="
col
-
12
text
-
center
">
<button type="
submit
" class="
btn
btn
-
primary
me
-
1
mt
-
2
">OK</button>
<button type="
reset
" class="
btn
btn
-
outline
-
secondary
mt
-
2
" data-bs-dismiss="
modal
" aria-label="
Close
">
Cancel
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- / delete registrasi modal -->
<!-- tambah antrian modal -->
<div class="
modal
fade
" id="
addNewAntrianModal
" tabindex="
-
1
" aria-labelledby="
tambahAntrian
" aria-hidden="
true
" wire:ignore.self>
<div class="
modal
-
dialog
modal
-
dialog
-
centered
modal
-
lg
">
<div class="
modal
-
content
">
<div class="
modal
-
header
bg
-
transparent
">
<button type="
button
" class="
btn
-
close
" data-bs-dismiss="
modal
" aria-label="
Close
"></button>
</div>
<div class="
modal
-
body
pb
-
5
px
-
sm
-
4
mx
-
50
">
<livewire:admin.masters.registrasi.add-antrian-component/>
{{-- <h1 class="
address
-
title
text
-
center
mb
-
1
" id="
addNewAddressTitle
">Buat Antrian Poli</h1>
<form id="
addNewAddressForm
" wire:submit.prevent="
tambahAntrian
()
">
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Nama</label>
<input type="
text
" class="
form
-
control
" wire:model.defer="
inputs
.
nama
" placeholder="
Nama
Pasien
" data-msg="
Masukkan
Nama
Pasien
" readonly />
@error('inputs.nama')
<span class="
danger
">{{
$message
}}</span>
@enderror
</div>
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Tanggal</label>
<input type="
date
" id="
modalAddressFirstName
" name="
modalAddressFirstName
" class="
form
-
control
" wire:model.defer="
inputs
.
tanggal
" wire:change="
filterDokter
()
" placeholder="
Tanggal
Antrian
Poli
" data-msg="
Masukkan
Tanggal
Antrian
Poli
" />
@error('inputs.tanggal')
<span class="
danger
">{{
$message
}}</span>
@enderror
</div>
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Poli</label>
<select class="
form
-
control
" wire:model.defer="
inputs
.
poli
" wire:change="
filterDokter
()
" id="">
<option value="">Select Poli</option>
@foreach(
$polis
as
$item
)
<option value="
{{
$item
->
id
}}
">{{
$item->nama
}}</option>
@endforeach
</select>
@error('inputs.poli')
<span class="
danger
">{{
$message
}}</span>
@enderror
</div>
<div class="
col
-
md
-
12
">
<label class="
form
-
label
" for="
modalAddressFirstName
">Dokter</label>
<select class="
form
-
control
" wire:model.defer="
inputs
.
dokter
" id="">
{{ var_export(
$jadwals
) }}
<option value="">Select Dokter</option>
@foreach(
$jadwals
as
$item
)
@if(
$item->dokter
!= null)
<option value="
{{
$item
->
dokter
->
id
}}
">{{
$item->dokter
->biodata->nama }}</option>
@endif
@endforeach
</select>
@error('inputs.dokter')
<span class="
danger
">{{
$message
}}</span>
@enderror
</div>
<div class="
col
-
12
text
-
center
">
<button type="
submit
" class="
btn
btn
-
primary
me
-
1
mt
-
2
">Submit</button>
<button type="
reset
" class="
btn
btn
-
outline
-
secondary
mt
-
2
" data-bs-dismiss="
modal
" aria-label="
Close
">
Cancel
</button>
</div>
</form> --}}
</div>
</div>
</div>
</div>
<!-- / tambah antrian modal -->
<!-- rekam medis modal -->
<div class="
modal
fade
" id="
rekamMedisModal
" tabindex="
-
1
" aria-labelledby="
rekamMedis
" aria-hidden="
true
" wire:ignore.self>
<div class="
modal
-
dialog
modal
-
dialog
-
centered
modal
-
xl
">
<div class="
modal
-
content
">
<div class="
modal
-
header
bg
-
transparent
">
<button wire:click="
downloadRekamMedis
()
" class="
btn
btn
-
success
"><i data-feather='download'></i> Excel</button>
<button type="
button
" class="
btn
-
close
" data-bs-dismiss="
modal
" aria-label="
Close
"></button>
</div>
<livewire:dokter.pasien.rekam-medis-component/>
</div>
</div>
</div>
<!-- / rekam medis modal -->
</div>
</div>
</div>
</div>
</div>
</div>
...
...
routes/web.php
View file @
685c324f
...
@@ -19,9 +19,10 @@
...
@@ -19,9 +19,10 @@
return
view
(
'dashboard'
);
return
view
(
'dashboard'
);
});
});
Route
::
get
(
'/transaksi
'
,
[
TransaksiController
::
class
,
'index'
])
->
name
(
'admin.index-transaksi'
);
// Route::get('/home
', [TransaksiController::class, 'index'])->name('admin.index-transaksi');
// Admin
// Admin
Route
::
resource
(
'kategori'
,
KategoriController
::
class
);
Route
::
resource
(
'kategori'
,
KategoriController
::
class
);
Route
::
resource
(
'transaksi'
,
TransaksiController
::
class
);
// End of Admin
// End of Admin
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