Template
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e94fe0a047 |
@@ -1,51 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\User;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
// use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class DaftarController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display the registration view.
|
||||
*
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('dashboard.daftar');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle an incoming registration request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*/
|
||||
// public function store(Request $request)
|
||||
// {
|
||||
// $request->validate([
|
||||
// 'name' => 'required|string|max:255',
|
||||
// 'email' => 'required|string|email|max:255|unique:users',
|
||||
// 'password' => 'required|string|confirmed|',
|
||||
// ]);
|
||||
|
||||
// Auth::login($user = User::create([
|
||||
// 'name' => $request->name,
|
||||
// 'email' => $request->email,
|
||||
// 'password' => Hash::make($request->password),
|
||||
// ]));
|
||||
|
||||
// event(new Registered($user));
|
||||
|
||||
// return redirect(RouteServiceProvider::HOME);
|
||||
// }
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\User;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
// use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class IndexController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display the registration view.
|
||||
*
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('dashboard.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle an incoming registration request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*/
|
||||
// public function store(Request $request)
|
||||
// {
|
||||
// $request->validate([
|
||||
// 'name' => 'required|string|max:255',
|
||||
// 'email' => 'required|string|email|max:255|unique:users',
|
||||
// 'password' => 'required|string|confirmed|',
|
||||
// ]);
|
||||
|
||||
// Auth::login($user = User::create([
|
||||
// 'name' => $request->name,
|
||||
// 'email' => $request->email,
|
||||
// 'password' => Hash::make($request->password),
|
||||
// ]));
|
||||
|
||||
// event(new Registered($user));
|
||||
|
||||
// return redirect(RouteServiceProvider::HOME);
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Customer;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class PasienController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
|
||||
return view('dashbord.dashbord');
|
||||
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
{
|
||||
$customers = Customer::where('id' ,'=',$id)->get();
|
||||
|
||||
return view('customer.edit_customer',compact('customers'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function create()
|
||||
{
|
||||
return view('customer.create');
|
||||
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
$customer = new Customer();
|
||||
$customer->name = $request->name;
|
||||
$customer->email = $request->email;
|
||||
$customer->company = $request->company;
|
||||
$customer->address = $request->address;
|
||||
$customer->phone = $request->phone;
|
||||
|
||||
$customer->save();
|
||||
return Redirect()->route('add.customer');
|
||||
|
||||
}
|
||||
|
||||
public function update($id,Request $request)
|
||||
{
|
||||
|
||||
$customer = Customer::find($id);
|
||||
$customer->name = $request->name;
|
||||
$customer->email = $request->email;
|
||||
$customer->password = $request->password;
|
||||
$customer->gender = $request->gender;
|
||||
if($request->is_active){
|
||||
$customer->is_active = 1;
|
||||
|
||||
}
|
||||
|
||||
$customer->date_of_birth = $request->date_of_birth;
|
||||
$customer->roll = $request->roll;
|
||||
|
||||
if($customer->save())
|
||||
{
|
||||
|
||||
return redirect()->back()->with(['msg' => 1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return redirect()->back()->with(['msg' => 2]);
|
||||
}
|
||||
|
||||
return view('customer.edit',compact('customers'));
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function customersData(){
|
||||
$customers = Customer::all();
|
||||
return view('Admin.all_customers',compact('customers'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function delete($id)
|
||||
{
|
||||
$customer = Customer::find($id);
|
||||
if($customer->delete())
|
||||
{
|
||||
|
||||
return redirect()->back()->with(['msg' => 1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
return redirect()->back()->with(['msg' => 2]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
@extends('layouts.admin_master')
|
||||
|
||||
@section('content')
|
||||
|
||||
<main>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-7">
|
||||
<div class="card shadow-lg border-0 rounded-lg mt-5">
|
||||
<div class="card-header">
|
||||
<h1 class="text-center font-weight-light my-4"><b>Pasien Baru</b></h1>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="myForm">
|
||||
<div class="form-row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="inputFirstName">Tipe Pasien</label>
|
||||
<div class="form-check">
|
||||
<input checked class="form-check-input" type="radio" onclick="javascript:yesnoCheck();" name="tipe_pasien" id="yesCheck">
|
||||
<label class="form-check-label" for="flexRadioDefault1">
|
||||
Pasien Lama
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" onclick="javascript:yesnoCheck();" name="tipe_pasien" id="noCheck">
|
||||
<label class="form-check-label" for="flexRadioDefault2">
|
||||
Pasien Baru
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" id="ifYes" style="visibility:hidden">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="inputFirstName">Nomor Rekam Medis</label>
|
||||
<select class="mySelect2" name="no_rekam_medis" style="width: 100%;" name="state">
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="inputFirstName">Nama Pasien</label>
|
||||
<input class="form-control py-4" name="nama" type="text" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="inputLastName">Nomor Telepon</label>
|
||||
<input class="form-control py-4" name="telp" type="text" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="inputLastName">Alamat</label>
|
||||
<input class="form-control py-4" name="alamat" type="text" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="inputFirstName">Nomor BPJS</label>
|
||||
<input class="form-control py-4" name="nomor_bpjs" type="text" placeholder="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="Poliklinik">Poli Klinik</label>
|
||||
<select class="form-control py-4" name="poliklinik" id="poliklinik">
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label class="small mb-1" for="Dokter">Dokter</label>
|
||||
<select class="form-control py-4" name="dokter" id="dokter">
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-4 mb-0"><button id="daftar" type="submit" class="btn btn-primary btn-block">Submit</button></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#myForm').on('submit', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://10.10.123.135:8083/api/v1/visit",
|
||||
data: $("#myForm").serialize(),
|
||||
success: function(response) {
|
||||
console.log(response);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('.mySelect2').select2({
|
||||
// ajax: {
|
||||
// url: 'https://api.github.com/orgs/select2/repos',
|
||||
// data: function (params) {
|
||||
// var query = {
|
||||
// search: params.term,
|
||||
// type: 'public'
|
||||
// }
|
||||
|
||||
// // Query parameters will be ?search=[term]&type=public
|
||||
// return query;
|
||||
// }
|
||||
// }
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
url: "http://10.10.123.135:8083/api/v1/healthcare",
|
||||
type: 'GET',
|
||||
dataType: 'json', // added data type
|
||||
success: function(res) {
|
||||
let data = res.data
|
||||
$.each(data, function(index) {
|
||||
$('#poliklinik')
|
||||
.append("<option value='" + data[index].id + "'>" + data[index].name + "</option>");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function selectDokter(id) {
|
||||
$.ajax({
|
||||
url: "http://10.10.123.135:8083/api/v1/doctor?poli=" + id,
|
||||
type: 'GET',
|
||||
dataType: 'json', // added data type
|
||||
success: function(res) {
|
||||
let data = res.data
|
||||
$.each(data, function(index) {
|
||||
$('#dokter').append($('<option>', {
|
||||
value: data[index].id
|
||||
}).text(data[index].name));
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#poliklinik').on('change', function() {
|
||||
selectDokter(this.value);
|
||||
// alert(this.value)
|
||||
});
|
||||
|
||||
function yesnoCheck() {
|
||||
if (document.getElementById('yesCheck').checked) {
|
||||
document.getElementById('ifYes').style.visibility = 'visible';
|
||||
} else document.getElementById('ifYes').style.visibility = 'hidden';
|
||||
}
|
||||
yesnoCheck();
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,48 @@
|
||||
@extends('layouts.admin_master')
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table mr-1"></i>
|
||||
Dashboard
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row" id="card-pasien">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('script')
|
||||
<link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" />
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$.ajax({
|
||||
url: "http://10.10.123.135:8083/api/v1/healthcare",
|
||||
type: 'GET',
|
||||
dataType: 'json', // added data type
|
||||
success: function(res) {
|
||||
let data = res.data
|
||||
$.each(data, function(index) {
|
||||
$('#card-pasien')
|
||||
.append(`<div class="col-xl-3 col-md-6">
|
||||
<div class="card bg-primary text-white mb-4">
|
||||
<div class="card-body">
|
||||
<h3>${data[index].id+10}</h3>
|
||||
${data[index].name}
|
||||
</div>
|
||||
<div class="card-footer d-flex align-items-center justify-content-between">
|
||||
<a class="small text-white stretched-link" href="{{ route('list.pasien') }}">View Details</a>
|
||||
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>`);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,64 @@
|
||||
@extends('layouts.admin_master')
|
||||
@section('content')
|
||||
|
||||
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<i class="fas fa-table mr-1"></i>
|
||||
Pasien List
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>barcode</th>
|
||||
<th>registration date</th>
|
||||
<th>service date</th>
|
||||
<th>action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('script')
|
||||
<link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" />
|
||||
|
||||
<script>
|
||||
$('#dataTable').DataTable({
|
||||
ajax: "http://10.10.123.135:8083/api/v1/visit",
|
||||
columns: [{
|
||||
mData: 'barcode',
|
||||
"render": function ( data) {
|
||||
return '<img src="https://api.qrserver.com/v1/create-qr-code/?size=50x50&data='+data.barcode+'">';}
|
||||
},
|
||||
{
|
||||
mData: 'registration_date'
|
||||
},
|
||||
{
|
||||
mData: 'service_date'
|
||||
},
|
||||
{
|
||||
mData: "id",
|
||||
"render": function ( data) {
|
||||
return `
|
||||
<div class="btn-group mr-2" role="group" aria-label="First group">
|
||||
<button type="button" onclick="alert('Coming Soon')" class="btn btn-primary btn-sm">Detail</button>
|
||||
<button type="button" onclick="alert('Coming Soon')" class="btn btn-success btn-sm">Edit</button>
|
||||
<button type="button" onclick="alert('Coming Soon')" class="btn btn-danger btn-sm">Batal</button>
|
||||
</div>
|
||||
`
|
||||
}
|
||||
}
|
||||
],
|
||||
pagination : false
|
||||
})
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -1,138 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico">
|
||||
|
||||
<title>Dashboard Template for Bootstrap</title>
|
||||
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="dashboard.css" rel="stylesheet">
|
||||
<style type="text/css">/* Chart.js */
|
||||
@-webkit-keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}@keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}.chartjs-render-monitor{-webkit-animation:chartjs-render-animation 0.001s;animation:chartjs-render-animation 0.001s;}</style></head>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0">
|
||||
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">RS Saiful Anwar</a>
|
||||
</nav>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<ul class="nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="{{ route('index') }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
||||
Dashboard <span class="sr-only">(current)</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('daftar') }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-users"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>
|
||||
Pendaftaran Pasien
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bar-chart-2"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>
|
||||
List Kunjungan Pasien
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4"><div class="chartjs-size-monitor" style="position: absolute; inset: 0px; overflow: hidden; pointer-events: none; visibility: hidden; z-index: -1;"><div class="chartjs-size-monitor-expand" style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="chartjs-size-monitor-shrink" style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div></div>
|
||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
|
||||
<h1 class="h2">Pendaftaran Pasien</h1>
|
||||
|
||||
</div>
|
||||
<form action="">
|
||||
<h5>Tipe Pasien</h5>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1" checked>
|
||||
<label class="form-check-label" for="inlineRadio1">Pasien Lama</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
|
||||
<label class="form-check-label" for="inlineRadio2">Pasien Baru</label>
|
||||
</div>
|
||||
<h5 class="mt-2">Pencarian Nomor Rekam Medis</h5>
|
||||
<div class="form-group">
|
||||
<input type="number" class="form-control" id="formGroupExampleInput" placeholder="Nomor Rekam Medis">
|
||||
</div>
|
||||
<h5 class="mt-2">Nama Pasien</h5>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Nama Pasien">
|
||||
</div>
|
||||
<h5 class="mt-2">Alamat Pasien</h5>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Alamat Pasien">
|
||||
</div>
|
||||
<h5 class="mt-2">Nomor Telepon</h5>
|
||||
<div class="form-group">
|
||||
<input type="number" class="form-control" id="formGroupExampleInput" placeholder="Nama Pasien">
|
||||
</div>
|
||||
<h5 class="mt-2">Penjamin</h5>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Penjamin
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item" href="#">BPJS</a>
|
||||
</div>
|
||||
</div>
|
||||
<h5 class="mt-2">Nomor Kartu BPJS</h5>
|
||||
<div class="form-group">
|
||||
<input type="number" class="form-control" id="formGroupExampleInput" placeholder="Nomor BPJS">
|
||||
</div>
|
||||
<h5 class="mt-2">Poliklinik</h5>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Poliklinik
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item" href="#">Mata</a>
|
||||
</div>
|
||||
</div>
|
||||
<h5 class="mt-2">Nama Dokter</h5>
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Nama Dokter
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item" href="#">Heri</a>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="mt-3 btn btn-primary">Submit</button>
|
||||
</form>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
|
||||
<script src="../../assets/js/vendor/popper.min.js"></script>
|
||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- Icons -->
|
||||
<script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
|
||||
<script>
|
||||
feather.replace()
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,78 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico">
|
||||
|
||||
<title>Dashboard Template for Bootstrap</title>
|
||||
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="dashboard.css" rel="stylesheet">
|
||||
<style type="text/css">/* Chart.js */
|
||||
@-webkit-keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}@keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}.chartjs-render-monitor{-webkit-animation:chartjs-render-animation 0.001s;animation:chartjs-render-animation 0.001s;}</style></head>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0">
|
||||
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">RS Saiful Anwar</a>
|
||||
</nav>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<ul class="nav flex-column">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" href="{{ route('index') }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
||||
Dashboard <span class="sr-only">(current)</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ route('daftar') }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-users"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>
|
||||
Pendaftaran Pasien
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bar-chart-2"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>
|
||||
List Kunjungan Pasien
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4"><div class="chartjs-size-monitor" style="position: absolute; inset: 0px; overflow: hidden; pointer-events: none; visibility: hidden; z-index: -1;"><div class="chartjs-size-monitor-expand" style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="chartjs-size-monitor-shrink" style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div></div>
|
||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
|
||||
<h1 class="h2">Dashboard</h1>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
|
||||
<script src="../../assets/js/vendor/popper.min.js"></script>
|
||||
<script src="../../dist/js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- Icons -->
|
||||
<script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
|
||||
<script>
|
||||
feather.replace()
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,10 +8,14 @@ Products<!DOCTYPE html>
|
||||
<meta name="author" content="" />
|
||||
<title>InventoryManagementSystem</title>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
|
||||
<link href="{{ asset('backend') }}/css/styles.css" rel="stylesheet" />
|
||||
<link href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css" rel="stylesheet" crossorigin="anonymous" />
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.7.0/css/buttons.dataTables.min.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/js/all.min.js" crossorigin="anonymous"></script>
|
||||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script>
|
||||
</head>
|
||||
<body class="sb-nav-fixed">
|
||||
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
|
||||
@@ -122,6 +126,27 @@ Products<!DOCTYPE html>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapsepasien" aria-expanded="false" aria-controls="collapsepasien">
|
||||
<div class="sb-nav-link-icon"><i class="fas fa-columns"></i></div>
|
||||
Test Teknikal
|
||||
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
|
||||
</a>
|
||||
<div class="collapse" id="collapsepasien" aria-labelledby="headingOne" data-parent="#sidenavAccordion">
|
||||
<nav class="sb-sidenav-menu-nested nav">
|
||||
<a class="nav-link" href="{{ route('dashboard.pasien') }}">Dashboard pasien</a>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="collapse" id="collapsepasien" aria-labelledby="headingOne" data-parent="#sidenavAccordion">
|
||||
<nav class="sb-sidenav-menu-nested nav">
|
||||
<a class="nav-link" href="{{ route('add.pasien') }}">Pasien Baru</a>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="collapse" id="collapsepasien" aria-labelledby="headingOne" data-parent="#sidenavAccordion">
|
||||
<nav class="sb-sidenav-menu-nested nav">
|
||||
<a class="nav-link" href="{{ route('list.pasien') }}">Pasien List</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@@ -145,7 +170,6 @@ Products<!DOCTYPE html>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
|
||||
<script src="{{ asset('backend') }}/js/scripts.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script>
|
||||
@@ -164,7 +188,6 @@ Products<!DOCTYPE html>
|
||||
<script src="https://cdn.datatables.net/buttons/1.7.0/js/buttons.html5.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.7.0/js/buttons.colVis.min.js"></script> -->
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.24/js/jquery.dataTables.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/buttons/1.7.0/js/dataTables.buttons.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
|
||||
|
||||
@@ -5,28 +5,11 @@ use App\Http\Controllers\Auth\ConfirmablePasswordController;
|
||||
use App\Http\Controllers\Auth\EmailVerificationNotificationController;
|
||||
use App\Http\Controllers\Auth\EmailVerificationPromptController;
|
||||
use App\Http\Controllers\Auth\NewPasswordController;
|
||||
use App\Http\Controllers\Auth\DaftarController;
|
||||
use App\Http\Controllers\Auth\IndexController;
|
||||
use App\Http\Controllers\Auth\PasswordResetLinkController;
|
||||
use App\Http\Controllers\Auth\RegisteredUserController;
|
||||
use App\Http\Controllers\Auth\VerifyEmailController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('/index', [IndexController::class, 'create'])
|
||||
->middleware('guest')
|
||||
->name('index');
|
||||
|
||||
Route::post('/index', [IndexController::class, 'store'])
|
||||
->middleware('guest');
|
||||
|
||||
Route::get('/daftar', [DaftarController::class, 'create'])
|
||||
->middleware('guest')
|
||||
->name('daftar');
|
||||
|
||||
Route::post('/daftar', [DaftarController::class, 'store'])
|
||||
->middleware('guest');
|
||||
|
||||
|
||||
Route::get('/register', [RegisteredUserController::class, 'create'])
|
||||
->middleware('guest')
|
||||
->name('register');
|
||||
|
||||
+74
-6
@@ -18,17 +18,85 @@ use Illuminate\Http\Request;
|
||||
|
|
||||
*/
|
||||
|
||||
Route::get('/index', function () {
|
||||
return view('dashboard.index');
|
||||
});
|
||||
Route::get('/daftar', function () {
|
||||
return view('dashboard.daftar');
|
||||
Route::get('/', function () {
|
||||
return view('auth.login');
|
||||
});
|
||||
|
||||
//product
|
||||
Route::get('/add-product', function () {
|
||||
return view('Admin.add_product');
|
||||
})->middleware(['auth'])->name('add.product');
|
||||
|
||||
Route::post('/insert-product',[ProductController::class,'store'])->middleware(['auth']);
|
||||
|
||||
Route::get('/all-product',[ProductController::class,'allProduct'])->middleware(['auth'])->name('all.product');
|
||||
|
||||
Route::get('/available-products',[ProductController::class,'availableProducts'])->middleware(['auth'])->name('available.products');
|
||||
|
||||
Route::get('/purchase-products/{id}', [ProductController::class,'purchaseData'])->middleware(['auth']);
|
||||
|
||||
Route::post('/insert-purchase-products',[ProductController::class,'storePurchase'])->middleware(['auth']);
|
||||
|
||||
|
||||
//invoice
|
||||
Route::get('/add-invoice/{id}', [InvoiceController::class,'formData'])->middleware(['auth']);
|
||||
|
||||
Route::get('/new-invoice', [InvoiceController::class,'newformData'])->middleware(['auth'])->name('new.invoice');
|
||||
|
||||
Route::post('/insert-invoice',[InvoiceController::class,'store'])->middleware(['auth']);
|
||||
|
||||
Route::get('/invoice-details', function () {
|
||||
return view('Admin.invoice_details');
|
||||
})->middleware(['auth'])->name('invoice.details');
|
||||
|
||||
Route::get('/all-invoice', [InvoiceController::class,'allInvoices'])->middleware(['auth'])->name('all.invoices');
|
||||
|
||||
Route::get('/sold-products',[InvoiceController::class,'soldProducts'])->middleware(['auth'])->name('sold.products');
|
||||
// Route::get('/delete', [InvoiceController::class,'delete']);
|
||||
|
||||
|
||||
//order
|
||||
Route::get('/add-order/{name}', [ProductController::class,'formData'])->middleware(['auth'])->name('add.order');
|
||||
|
||||
Route::post('/insert-order',[OrderController::class,'store'])->middleware(['auth']);
|
||||
|
||||
Route::get('/all-orders',[OrderController::class,'ordersData'])->middleware(['auth'])->name('all.orders');
|
||||
|
||||
Route::get('/pending-orders',[OrderController::class,'pendingOrders'])->middleware(['auth'])->name('pending.orders');
|
||||
|
||||
Route::get('/delivered-orders',[OrderController::class,'deliveredOrders'])->middleware(['auth'])->name('delivered.orders');
|
||||
|
||||
Route::get('/new-order', [OrderController::class,'newformData'])->middleware(['auth'])->name('new.order');
|
||||
|
||||
Route::post('/insert-new-order',[OrderController::class,'newStore'])->middleware(['auth']);
|
||||
|
||||
|
||||
//customer
|
||||
Route::get('/add-customer', function () {
|
||||
return view('Admin.add_customer');
|
||||
})->middleware(['auth'])->name('add.customer');
|
||||
|
||||
Route::post('/insert-customer',[CustomerController::class,'store'])->middleware(['auth']);
|
||||
|
||||
Route::get('/all-customers',[CustomerController::class,'customersData'])->middleware(['auth'])->name('all.customers');
|
||||
|
||||
//pasien
|
||||
Route::get('/add-pasien', function () {
|
||||
return view('Admin.add_pasien');
|
||||
})->middleware(['auth'])->name('add.pasien');
|
||||
|
||||
//pasien
|
||||
Route::get('/list-pasien', function () {
|
||||
return view('Admin.list_pasien');
|
||||
})->middleware(['auth'])->name('list.pasien');
|
||||
|
||||
//pasien
|
||||
Route::get('/dashboard-pasien', function () {
|
||||
return view('Admin.dashboard_pasien');
|
||||
})->middleware(['auth'])->name('dashboard.pasien');
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
return view('dashboard');
|
||||
})->middleware(['auth'])->name('dashboard');
|
||||
|
||||
require __DIR__.'/auth.php';
|
||||
require __DIR__.'/auth.php';
|
||||
Reference in New Issue
Block a user