Commit 2237d862 by Juliper
parents 618b0176 2cdf67fa
......@@ -6,6 +6,9 @@
@section('main-content')
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title"> DETAIL PEMESANAN </h3>
@if(Session::has('alert-success'))
......@@ -24,7 +27,11 @@
</div>
@endif
</div>
<div class="col-md-10 box-body">
@include('adminlte::layouts.pages.confirmdelete')
<table class="table table-user-information ">
<tr>
<th>Nama Pengaju</th>
......@@ -46,9 +53,10 @@
<td>: </td>
<td>
@if($data->status==1)
Di Terima
<span class="label label-success">Di Terima </span>
@elseif($data->status==2)
Ditolak
<span class="label label-danger">Ditolak </span>
@endif
</td>
</tr>
......@@ -73,26 +81,36 @@
</div>
</form>
</tr>
<tr>
<tr>@if($data->status==1)
@elseif($data->status==2)
@elseif($data->status==0)
<th>Aksi</th>
<td> </td>
@if($data->status==1)
@elseif($data->status==2)
@elseif($data->status==0)
<td>
<form action="{{url('requestFasilitas/'.$data->id)}}" method="post">
{{csrf_field()}}
<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-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>
</td>
@endif
</tr>
</table><br>
</div>
<div class="box-footer">
<form action="{{url('printFasilitas/'.$data->id)}}" enctype="multipart/form-data">
<div class="form-group" align="right">
......@@ -103,4 +121,22 @@
</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
<!-- 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