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
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> DAFTAR PENGAJUAN FASILITAS </h3>
@if (count($errors) > 0)
<div class="alert alert-danger">
<strong>Whoops!</strong> {{ trans('adminlte_lang::message.someproblems') }}<br><br>
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
</div>
<div class="box-body">
<!-- <div class="col-md-4 col-sm-6 col-xs-12">
</div> -->
<table class="table table-striped">
<tr>
<th>Judul</th>
<th>Keterangan</th>
<th>Gambar</th>
<th>Status</th>
<th>Alasan</th>
</tr>
@foreach($data as $a)
<tr>
<td>{{$a->nama_request_fasilitas}}</td>
<td>{{$a->deskripsi}}</td>
<td>
@if($a->gambar==null)
Tidak ada gambar
@else
<img alt="User Pic" src="img/{{$a->gambar}}" style="width: 250px;height: 120px" >
@endif
</td>
<td>@if($a->status==0) Sedang Menunggu
@elseif($a->status==1) Diterima
@elseif($a->status==2) Ditolak
@endif
</td>
<td>
</td>
</tr>
@endforeach
</table>
{!! $data->render() !!}
</div>
</div>
@endsection