initial commit
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="shortcut icon" href="{{ asset('/asset/svg/logo.svg') }}" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css">
|
||||
<link href="{{ asset('/asset/main.css') }}" rel="stylesheet" />
|
||||
<link href="{{ asset('/assets/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<style>
|
||||
.menu{
|
||||
margin : 20px;
|
||||
}
|
||||
.content{
|
||||
padding-left: 250px;
|
||||
}
|
||||
.nav-link.active {
|
||||
background-color: #6FFFE9 !important;
|
||||
color: #0B132B !important;
|
||||
}
|
||||
.nav-link{
|
||||
color: #0B132B !important;
|
||||
}
|
||||
.containerContent a {
|
||||
text-decoration: none;
|
||||
color: #8296C5;
|
||||
}
|
||||
.containeritem {
|
||||
background-color: #ffffff;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
margin-left: 30px;
|
||||
padding: 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
width: calc(100% - 120px);
|
||||
}
|
||||
.tab.active {
|
||||
display: block;
|
||||
}
|
||||
.nav-pills .nav-link {
|
||||
cursor: pointer;
|
||||
}
|
||||
.item {
|
||||
padding-left: 265px;
|
||||
padding-bottom:50px;
|
||||
}
|
||||
.nav-item {
|
||||
margin-right: 150px;
|
||||
}
|
||||
.nav-item:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
.form-control {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<title>Request Consultation</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-flex">
|
||||
@include('client-sidebar')
|
||||
<div class="item justify-content-center">
|
||||
<div class="row">
|
||||
<div class="container d-flex justify-content-center" style="padding:50px;">
|
||||
<h2>Jadwal Konsultasi</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="event-form p-5 me-5 ms-5 mt-4">
|
||||
<!-- jadwal-konsultasi.blade.php -->
|
||||
<form action="{{ route('consultation.store') }}" method="POST" enctype="multipart/form-data">
|
||||
@csrf
|
||||
{{-- ROW 1 --}}
|
||||
<div class="row">
|
||||
{{-- PILIH DOKTER --}}
|
||||
<div class="col">
|
||||
<div class="mb-3">
|
||||
<label for="doctor_id" class="form-label">Pilih Dokter</label>
|
||||
<select class="form-select @error('doctor_id') is-invalid @enderror" name="doctor_id" id="doctor_id" aria-label="doctor_id" style="border-radius: 20px">
|
||||
<option value="">Select a doctor</option>
|
||||
@foreach ($doctors as $doctor)
|
||||
<option value="{{ $doctor->id }}" {{ old('doctor_id') == $doctor->id ? 'selected' : '' }}>{{ $doctor->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@error('doctor_id')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- TANGGAL KONSULTASI --}}
|
||||
<div class="col">
|
||||
<div class="mb-3">
|
||||
<label for="consultation_date" class="form-label">Tanggal Konsultasi</label>
|
||||
<div class="input-group date" id="consultationDatePicker" data-target-input="nearest">
|
||||
<input type="text" class="form-control datetimepicker-input @error('consultation_date') is-invalid @enderror" id="consultation_date" name="consultation_date" style="border-radius: 20px" data-target="#consultationDatePicker" placeholder="Pilih Tanggal Konsultasi" value="{{ old('consultation_date') }}"/>
|
||||
<div class="input-group-append" data-target="#consultationDatePicker" data-toggle="datetimepicker">
|
||||
</div>
|
||||
</div>
|
||||
@error('consultation_date')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- ROW 2 --}}
|
||||
<div class="row mt-3">
|
||||
{{-- JAM KONSULTASI --}}
|
||||
<div class="col">
|
||||
<div class="mb-3">
|
||||
<label for="consultation_time" class="form-label">Jam Konsultasi</label>
|
||||
<input value="{{ old('consultation_time') }}" type="time" class="form-control @error('consultation_time') is-invalid @enderror" id="consultation_time" name="consultation_time" aria-describedby="consultationTimeHelp" style="border-radius: 20px" placeholder="Pilih jam konsultasi dengan dokter">
|
||||
@error('consultation_time')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- LOKASI KONSULTASI --}}
|
||||
<div class="col">
|
||||
<div class="mb-3">
|
||||
<label for="location" class="form-label">Lokasi Konsultasi</label>
|
||||
<input value="{{ old('location') }}" type="text" class="form-control @error('location') is-invalid @enderror" name="location" id="location" aria-describedby="locationHelp" style="border-radius: 20px" placeholder="Masukkan lokasi konsultasi">
|
||||
@error('location')
|
||||
<div class="invalid-feedback">{{ $message }}</div>
|
||||
@enderror
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-end mt-5">
|
||||
<div class="col-auto">
|
||||
<button class="btn btn-primary" type="submit">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://code.jquery.com/jquery-3.7.0.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$('#consultationDatePicker').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
autoclose: true,
|
||||
todayHighlight: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user