index.blade.php 1.29 KB
@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