1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@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'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
</div>
@endif
@if (count($errors) > 0)
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</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>
<td>: </td>
<td>{{$data->nama}}</td>
</tr>
<tr>
<th>Judul Request</th>
<td>: </td>
<td>{{$data->nama_request_fasilitas}}</td>
</tr>
<tr>
<th>Keterangan</th>
<td>: </td>
<td>{{$data->deskripsi}}</td>
</tr>
<tr>
<th>Status</th>
<td>: </td>
<td>
@if($data->status==1)
<span class="label label-success">Di Terima </span>
@elseif($data->status==2)
<span class="label label-danger">Ditolak </span>
@endif
</td>
</tr>
<tr>
<th>Gambar</th>
<td>: </td>
<td> <a href="/img/{{$data->gambar}}" alt="Bukti Pembayaran" data-lightbox="roadtrip"><img src="/img/{{$data->gambar}}" style="max-height:200px;"></a></td>
</tr>
<tr>
<th>Kirim Pesan </th>
<td>: </td>
<td> <form class="" action="index.html" method="post">
<div class="form-group">
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-newspaper-o"></i>
</div>
<textarea class="form-control" placeholder="Deskripsi" style="height:200px;" name="deskripsi"> </textarea>
</div>
<span id="errfn2" style="color: red"></span>
</div>
</form>
</tr>
<tr>@if($data->status==1)
@elseif($data->status==2)
@elseif($data->status==0)
<th>Aksi</th>
<td> </td>
<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>
</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">
<input type="submit" class="btn btn-warning" value="Print">
</div>
</form>
</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