Commit 5267bf39 by Palti Sinaga

asdasd

parent 9b59c97d
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
@section('main-content') @section('main-content')
<div class="box box-info"> <div class="box box-info">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title"> DETAIL PEMESANAN </h3> <h3 class="box-title"> DETAIL PEMESANAN </h3>
@if(Session::has('alert-success')) @if(Session::has('alert-success'))
...@@ -24,7 +27,11 @@ ...@@ -24,7 +27,11 @@
</div> </div>
@endif @endif
</div> </div>
<div class="col-md-10 box-body"> <div class="col-md-10 box-body">
@include('adminlte::layouts.pages.confirmdelete')
<table class="table table-user-information "> <table class="table table-user-information ">
<tr> <tr>
<th>Nama Pengaju</th> <th>Nama Pengaju</th>
...@@ -46,9 +53,10 @@ ...@@ -46,9 +53,10 @@
<td>: </td> <td>: </td>
<td> <td>
@if($data->status==1) @if($data->status==1)
Di Terima <span class="label label-success">Di Terima </span>
@elseif($data->status==2) @elseif($data->status==2)
Ditolak <span class="label label-danger">Ditolak </span>
@endif @endif
</td> </td>
</tr> </tr>
...@@ -73,26 +81,36 @@ ...@@ -73,26 +81,36 @@
</div> </div>
</form> </form>
</tr> </tr>
<tr> <tr>@if($data->status==1)
@elseif($data->status==2)
@elseif($data->status==0)
<th>Aksi</th> <th>Aksi</th>
<td> </td> <td> </td>
@if($data->status==1)
@elseif($data->status==2)
@elseif($data->status==0)
<td> <td>
<form action="{{url('requestFasilitas/'.$data->id)}}" method="post"> <form action="{{url('requestFasilitas/'.$data->id)}}" method="post">
{{csrf_field()}} {{csrf_field()}}
<input type="hidden" name="_method" value="PUT"> <input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-info"><i class="fa fa-check"> Terima</i></button> <button type="submit" class="btn btn-info"><i class="fa fa-check"> Terima</i></button>
<button type="submit" class="btn btn-danger"><i class="fa fa-close"> Tolak</i></button>
</form>
<!-- {{url('requestFasilitass/'.$data->id)}} -->
<form action="" method="post" style="display:inline">
{{csrf_field()}}
<input type="hidden" name="_method" value="PUT">
<button type="submit" class="btn btn-danger" data-toggle="modal" data-target="#confirmDelete"
data-title="Delete User" data-message="Are you sure you want to delete this user ?">
<i class="fa fa-close" > Tolak</i>
</button>
</form> </form>
</td> </td>
@endif @endif
</tr> </tr>
</table><br> </table><br>
</div> </div>
<div class="box-footer"> <div class="box-footer">
<form action="{{url('printFasilitas/'.$data->id)}}" enctype="multipart/form-data"> <form action="{{url('printFasilitas/'.$data->id)}}" enctype="multipart/form-data">
<div class="form-group" align="right"> <div class="form-group" align="right">
...@@ -103,4 +121,22 @@ ...@@ -103,4 +121,22 @@
</div> </div>
<!-- <script>
$(".delete").on("submit", function(){
return confirm("Do you want to delete this item?");
});
</script> -->
<!-- <script type="text/javascript">
$('table[data-form="deleteForm"]').on('click', '.form-delete', function(e){
e.preventDefault();
var $form=$(this);
$('#confirm').modal({ backdrop: 'static', keyboard: false })
.on('click', '#delete-btn', function(){
$form.submit();
});
});
</script> -->
@endsection @endsection
<!-- Modal Dialog -->
<div class="modal fade" id="confirmDelete" role="dialog" aria-labelledby="confirmDeleteLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Delete Parmanently</h4>
</div>
<div class="modal-body">
<p>Are you sure about this ?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" id="confirm">Delete</button>
</div>
</div>
</div>
</div>
<!-- Dialog show event handler -->
<!-- <script type="text/javascript">
$('table[data-form="deleteForm"]').on('click', '.form-delete', function(e){
e.preventDefault();
var $form=$(this);
$('#confirm').modal({ backdrop: 'static', keyboard: false })
.on('click', '#delete-btn', function(){
$form.submit();
});
});
</script> -->
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