Commit 1dfe0c6e by Triyah Fatmawati

Merge branch 'master' of http://git.unesa.ac.id/aisah/sipeka

parents 4dfc5d34 dfe1a845
<?php
namespace App\Http\Controllers;
namespace App\Http\Controllers\Admin;
use App\Http\Support\ValidationRule;
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 App\Models\Admin\Pengajuan;
use Exception;
use Storage;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redirect;
class TransaksiController extends Controller
class SakuController extends Controller
{
public function index() {
$tr = DB::connection('epk')->table('v_penelaah')->get();
$penelaah = DB::table('tr_penelaah')->get();
dd($tr);
$data = [
'semua' => $tr,
'penelaah' => $penelaah
];
return view('transaksi.index', $data);
return view('saku.index', $data);
}
}
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Support\ValidationRule;
use App\Http\Controllers\Controller;
use App\Models\Admin\Penelaah;
use App\Models\Admin\Pengajuan;
use Exception;
use Storage;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redirect;
class TransaksiController extends Controller
{
public function index() {
$pengusul = DB::table('bantuan_pengusul')->get();
$kategori = DB::table('ms_kategori')->orderBy('kode_kategori','asc')->get();
$data = [
'pengusul' => $pengusul,
'kategori' => $kategori
];
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);
$hasil = DB::table('tr_pengajuan')->where('id_pengajuan',$request->idpengajuan)->first();
$reviewer = DB::table('bantuan_penelaah')->where('id_pengajuan',$request->idpengajuan)->get();
foreach($reviewer as $r){
$isdm = DB::connection('isdm')->table('v_detil_pegawai')->where('noktp',$r->nik)->select('namalengkap','nip')->first();
$saku = [
'id_pengajuan' => $hasil->id,
'nik' => $r->nik,
'nama' => $isdm->namalengkap,
'nip' => $isdm->nip
];
Penelaah::query()->create($saku);
}
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');
}
}
}
<?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 $fillable = [
'id',
'id_pengajuan',
'nik',
'nama',
'nip'
];
}
<?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'
];
}
......@@ -117,8 +117,19 @@
'prefix' => '',
'strict' => false,
'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'),
],
],
/*
......
......@@ -56,6 +56,14 @@
'throw' => false,
],
'uploads' => [
'driver' => 'ftp',
'host' => 'statik.unesa.ac.id',
'username' => 'anchuz',
'password' => 'k0nt3nstatik@un3s4ppt1!)@(#*',
'ssl' => true,
],
],
/*
......
......@@ -11,9 +11,9 @@
</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>
<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 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()->getRequestUri() == "/saku") ? 'active' : '' }}"><a href="{{ route('saku.index') }}" 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>
</ul>
</li>
......
@extends('layouts.master')
@section('content')
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Daftar Reviewer</h4>
</div>
<div class="card-body">
<div class="card-text">
<div class="row">
<div class="col-md-8">
{{-- @livewire('admin.masters.registrasi.add-registrasi-component') --}}
</div>
<div class="col-md-4 text-right">
{{-- <div class="row">
<label class="col-sm-3 col-form-label"></label>
<label class="col-sm-3 col-form-label">Cari : </label>
<div class="col-sm-6">
<input type="text" class="form-control align-right" placeholder="Search" wire:model="keyword">
</div>
</div> --}}
</div>
</div>
</div>
</div>
<div class="table-responsive mb-4">
<table id="zero-config" class="table table-hover" style="width:100%">
<thead>
<tr>
<th>No. Pengajuan</th>
<th style="text-align: left">File SK</th>
<th style="text-align: left">Nama</th>
<th style="text-align: left">Judul</th>
<th style="text-align: left">Tahun</th>
<th style="text-align: left">Klasifikasi</th>
<th style="text-align: left">File EC</th>
<th style="text-align: left">Kategori</th>
</tr>
</thead>
<tbody>
@foreach($penelaah as $item)
@php
$pengajuan = DB::table('tr_pengajuan')->where('id',$item->id_pengajuan)->first();
@endphp
<tr>
<td>{{ $pengajuan->id_pengajuan }}</td>
<td style="text-align: left">SURAT</td>
<td style="text-align: left">{{ $item->nama }}</td>
<td style="text-align: left">{{ $pengajuan->judul }}</td>
<td style="text-align: left">{{ $pengajuan->tahun }}</td>
<td style="text-align: left">{{ $pengajuan->klasifikasi }}</td>
<td style="text-align: left">FILE EC</td>
@php
$kategori = DB::table('ms_kategori')->where('id',$pengajuan->id_kategori)->first();
@endphp
<td style="text-align: left">{{ $kategori->nama_kategori }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@push('js')
@endpush
@stop
......@@ -4,22 +4,22 @@
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Daftar Pasien</h4>
<h4 class="card-title">Daftar Usulan</h4>
</div>
<div class="card-body">
<div class="card-text">
<div class="row">
<div class="col-md-8">
@livewire('admin.masters.registrasi.add-registrasi-component')
{{-- @livewire('admin.masters.registrasi.add-registrasi-component') --}}
</div>
<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">Cari : </label>
<div class="col-sm-6">
<input type="text" class="form-control align-right" placeholder="Search" wire:model="keyword">
</div>
</div>
</div> --}}
</div>
</div>
</div>
......@@ -30,186 +30,105 @@
<thead>
<tr>
<th>No.</th>
<th style="text-align: left">Nama</th>
<th style="text-align: left">No. Identitas</th>
<th style="text-align: left">NIK</th>
<th></th>
<th style="text-align: left">Judul</th>
<th style="text-align: left">Pengusul</th>
<th style="text-align: left">Tahun</th>
<th style="text-align: left">Reviewer</th>
<th style="text-align: left">Klasifikasi</th>
<th style="text-align: left">Kategori</th>
</tr>
</thead>
<tbody>
{{-- @dd($registrasis) --}}
{{-- @foreach ($registrasis as $item)
@php
$token = Str::random(30);
@endphp
@foreach($pengusul as $item)
<tr>
<td>
{{ $loop->iteration + $registrasis->firstItem() - 1 }}
<td>{{ $item->id_pengajuan }}</td>
<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 style="text-align: left">{{ $item->nama }}</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 style="text-align: left">{{ $item->klasifikasi }}</td>
@php
$pengajuan = DB::table('tr_pengajuan')->where('id_pengajuan',$item->id_pengajuan)->first();
@endphp
@if(empty($pengajuan))
<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-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>
<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>
</td>
@else
@php
$kat = DB::table('ms_kategori')->where('id',$pengajuan->id_kategori)->first();
@endphp
<td style="text-align: left">{{ $kat->nama_kategori }}</td>
@endif
</tr>
@endforeach --}}
</tbody>
</table>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center mt-2">
{{-- {{ $registrasis->links() }} --}}
</ul>
</nav>
<!-- 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-content">
<form method="POST" action="{{ route('transaksi.store') }}" enctype="multipart/form-data" id="registrasi">
@csrf
<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">
<h1 class="address-title text-center mb-1" id="addNewAddressTitle">Edit Data Pasien</h1>
<form id="addNewAddressForm" wire:submit.prevent="update()">
<h1 class="address-title text-center mb-1" id="addNewAddressTitle">Update Kategori Pengusul</h1>
<div class="row">
<div class="col-md-6">
<label class="form-label" for="modalAddressFirstName">NIP/NIM/No. Referral Pasien</label>
<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/>
@error('inputs.no_identitas')
{{-- <span class="danger">{{ $message }}</span> --}}
@enderror
<input type="hidden" name="idpengajuan" value="{{ $item->id_pengajuan }}">
<div class="col-md-12">
<label class="form-label" for="judul">Judul</label>
<input type="textarea" class="form-control" id="judul" name="judul" value="{{ $item->judul }}" readonly />
</div>
<div class="col-md-6">
<label class="form-label" for="modalAddressFirstName">NIK</label>
<input type="text" class="form-control" wire:model.defer="inputs.nik" placeholder="NIK Pasien" data-msg="Masukkan NIK Pasien" />
@error('inputs.nik')
{{-- <span class="danger">{{ $message }}</span> --}}
@enderror
<div class="col-md-12">
<label class="form-label" for="pengusul">Pengusul</label>
<input type="text" class="form-control" id="pengusul" name="pengusul" value="{{ $item->pengusul }}" readonly />
</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">
<label class="form-label" for="modalAddressFirstName">Alamat</label>
<input type="text" class="form-control" wire:model.defer="inputs.alamat" placeholder="Alamat Pasien" data-msg="Masukkan Alamat Pasien" />
@error('inputs.alamat')
<span class="danger">{{ $message }}</span>
@enderror
<label class="form-label" for="tahun">Tahun</label>
<input type="text" class="form-control" id="tahun" name="tahun" value="{{ date('Y',strtotime($item->tanggal_keputusan)) }}" readonly />
</div>
<div class="col-md-6">
<label class="form-label" for="modalAddressFirstName">Telepon</label>
<input type="text" class="form-control" wire:model.defer="inputs.telepon" placeholder="Telepon Pasien" data-msg="Masukkan Telepon Pasien" />
@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
<label class="form-label" for="klasifikasi">Klasifikasi</label>
<input type="text" class="form-control" id="klasifikasi" name="klasifikasi" value="{{ $item->klasifikasi }}" readonly />
</div>
<div class="col-md-6">
<label class="form-label" for="modalAddressFirstName">Golongan Darah</label>
<select class="form-control" wire:model.defer="inputs.gol_darah" id="">
<option value="">Pilih Golongan Darah</option>
<option value="A">A</option>
<option value="B">B</option>
<option value="AB">AB</option>
<option value="O">O</option>
<option value="Tidak Diketahui">Tidak Diketahui</option>
<label class="form-label" for="kategori">Kategori Pengusul</label>
<select class="form-control" id="kategori" name="kategori" data-msg="Pilih Kategori Yang Sesuai">
<option value="">Pilih Kategori</option>
@foreach($kategori as $k)
<option value="{{ $k->id }}">{{ $k->kode_kategori }} - {{ $k->nama_kategori }}</option>
@endforeach
</select>
@error('inputs.gol_darah')
{{-- <span class="danger">{{ $message }}</span> --}}
@enderror
@if ($errors->has('kategori'))
<label id="login-error" class="error" for="kategori" style="color: red">{{$errors->first('kategori')}}</label>
@endif
</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">
<label class="form-label" for="modalAddressFirstName">Fakultas</label>
<input type="text" class="form-control" wire:model.defer="inputs.fakultas" placeholder="Fakultas Pasien" data-msg="Masukkan Fakultas Pasien" />
@error('inputs.fakultas')
{{-- <span class="danger">{{ $message }}</span> --}}
@enderror
<label class="form-label" for="file_ec">File EC</label>
<input type="file" class="form-control" id="file_ec" name="file_ec" required>
@if ($errors->has('file_ec'))
<label id="login-error" class="error" for="file_ec" style="color: red">{{$errors->first('file_ec')}}</label>
@endif
</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>
<hr>
<div class="col-md-12">
<label class="form-label" for="modalAddressFirstName">Riwayat Alergi Obat</label>
<input type="text" class="form-control" wire:model.defer="inputs.alergi_obat" placeholder="Riwayat Alergi Pasien" data-msg="Masukkan Riwayat Alergi Pasien"/>
@error('inputs.alergi_obat')
{{-- <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>
<label class="form-label" for="nosurat">No Surat E-Office</label>
<input type="text" class="form-control" id="nosurat" name="nosurat" placeholder="Nomor Surat" data-msg="Masukkan Nomor Surat" value="" required />
@if ($errors->has('nosurat'))
<label id="login-error" class="error" for="nosurat" style="color: red">{{$errors->first('nosurat')}}</label>
@endif
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary me-1 mt-2">Simpan</button>
<button type="reset" class="btn btn-outline-secondary mt-2" data-bs-dismiss="modal" aria-label="Close">
Cancel
Batalkan
</button>
</div>
</form>
......@@ -218,106 +137,9 @@
</div>
</div>
<!-- / edit registrasi modal -->
<!-- delete registrasi modal -->
<div class="modal fade" id="deleteRegistrasiModal" tabindex="-1" aria-labelledby="deleteRegistrasi" aria-hidden="true" wire:ignore.self>
<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 -->
@endforeach
</tbody>
</table>
</div>
</div>
</div>
......
......@@ -2,7 +2,8 @@
use App\Http\Controllers\Admin\Auth\LoginController;
use App\Http\Controllers\Admin\KategoriController;
use App\Http\Controllers\TransaksiController;
use App\Http\Controllers\Admin\TransaksiController;
use App\Http\Controllers\Admin\SakuController;
use Illuminate\Support\Facades\Route;
/*
......@@ -20,12 +21,14 @@
return view('Admin.login');
});
Route::get('/transaksi', [TransaksiController::class, 'index'])->name('admin.index-transaksi');
// Route::get('/home', [TransaksiController::class, 'index'])->name('admin.index-transaksi');
Route::middleware(['auth','prevent-back-history'])->group(function(){
Route::get('/home', function () {
return view('dashboard');
});
Route::resource('kategori', KategoriController::class);
Route::resource('transaksi', TransaksiController::class);
Route::resource('saku', SakuController::class);
Route::get('/logout', [LoginController::class, 'logout'])->name('admin.logout');
});
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