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
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
<center>Data Request</center>
@endsection
@section('main-content')
<table class="table table-striped">
@if(session()->has('message'))
<div class="alert alert-info">
{{session()->get('message')}}
</div>
@endif
<thead>
<tr>
<th>Nama Barang</th>
<th>Kategori</th>
<th>Harga</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach($data_requests as $dataRequest)
<tr>
<td>{{$dataRequest->nama_barang}}</td>
<td>{{$dataRequest->kategori}}</td>
<td>{{$dataRequest->harga}}</td>
<td>
<a href="{{ url('/editDataRequest', $dataRequest->id) }}" type="submit" button type="button" class="btn btn-warning">Edit</a>
<a href="{{ url('/deleteDataRequest', $dataRequest->id) }}" class="btn btn-warning">Delete</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<a href="{{ url('/createDataRequest') }}" button type="button" class="btn btn-info">Create</a></button>
@endsection