@extends('adminlte::layouts.app') @section('htmlheader_title') {{ trans('adminlte_lang::message.home') }} @endsection @section('contentheader_title') <center>Request Barang</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('/createRequest', $dataRequest->id) }}" type="submit" button type="button" class="btn btn-warning">Request</a> </td> </tr> @endforeach </tbody> </table> @endsection