pintu2/resources/views/layanan-pemutihan/tambah.blade.php

105 lines
3.9 KiB
PHP
Raw Normal View History

2024-04-17 11:40:27 +07:00
<!-- Extend Layout -->
@extends('layout.app_guest',['title' => $title])
@section('content')
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">{{$title}}</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error )
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@if(session('success'))
<div class="alert alert-success">
<ul>
<li>{{ session('success') }}</li>
</ul>
</div>
@endif
@if(session('error'))
<div class="alert alert-danger">
<ul>
<li>{{ session('error') }}</li>
</ul>
</div>
@endif
<form action="{{ route('pemutihan.store') }}" method="post" enctype="multipart/form-data">
@csrf
<div class="row">
<div class="col">
<div class="form-group">
<label for="ruang_kelas">Nama Ruang Kelas: </label>
<input type="text" name="ruang_kelas" id="ruang_kelas" class="form-control" placeholder="Masukkan Nama Ruang Kelas">
<label for="ruang_kelas">Nama Mata Kuliah/Prodi: </label>
<input type="text" name="ruang_kelas" id="ruang_kelas" class="form-control" placeholder="Masukkan Nama Ruang Kelas">
<label for="ruang_kelas">Jurnal Kuliah: </label>
<input type="text" name="ruang_kelas" id="ruang_kelas" class="form-control" placeholder="Masukkan Nama Ruang Kelas">
</div>
<!-- /.form-group -->
</div>
</div>
<div class="row">
<div class="col">
<div class="form-group">
<label for="dosen_pengampu">Dosen Pengampu Mata Kuliah: </label>
<select class="form-control select2" style="width: 100%;" id="dosen_pengampu" name="dosen_pengampu">
<option selected>Pilih Dosen Pengampu Mata Kuliah: </option>
@foreach ($dosen as $item)
<option value="{{$item->id}}" {{ old('dosen_pengampu') === $item->id ? 'selected' : '' }}>{{ $item->nama_gelar }}</option>
@endforeach
</select>
</div>
<!-- /.form-group -->
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col">
<div class="form-group">
<label for="tanggal_kelas">Hari/Tanggal: </label>
<input type="date" class="form-control" required name="tanggal_kelas">
<label for="jam_kelas">Hari/Tanggal: </label>
<input type="time" class="form-control" required name="jam_kelas">
<label for="alasan">Alasan: </label>
<textarea name="alasan" id="alasan" cols="30" rows="10" class="form-control">
</textarea>
<input type="text" name="ruang_kelas" id="ruang_kelas" class="form-control" placeholder="Masukkan Nama Ruang Kelas">
</div>
<!-- /.form-group -->
</div>
</div>
<div class="row">
<div class="col py-3">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
<!-- /.card -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
@endsection
@push('js')
<script>
//Date and time picker
$('#reservationdatetime').datetimepicker({ icons: { time: 'far fa-clock' } });
</script>
@endpush