index.blade.php 1.24 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
@extends('adminlte::layouts.app')

@section('htmlheader_title')
	{{ trans('adminlte_lang::message.home') }}
@endsection

@section('contentheader_title')
	<center>Beli Barang</center>
@endsection

@section('main-content')
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
<table class="table table-striped">
    <thead>
    	<tr>
            <th>Nama Barang</th>
            <th>Stock</th>
            <th>Harga</th>
            <th>Kategori</th>
            <th>Gambar</th>
        	<th>Action</th>
        </tr>
    </thead>
                            
        <tbody>
            @foreach($barangs as $barang)
	            <tr>
	                <td>{{$barang->nama}}</td>
	                <td>{{$barang->jumlah}}</td>
	                <td>{{$barang->harga}}</td>
	                <td>{{$barang->kategori}}</td>
	                <td>{{$barang->gambar}}</td>
	                <td>
						<a href="{{ url('/beli', $barang->id) }}" type="submit" button type="button" class="btn btn-warning">Beli</a>
						<!-- <a href="{{ url('/delete', $barang->id) }}"  <onclick="return confirm('Yakin mau hapus data ini sob?')" class="btn btn-warning">Delete</a> -->
	            	</tr>
    		@endforeach
    </tbody>
</table>
<a href="{{ url('/create') }}" button type="button" class="btn btn-info">Create</a></button>
40
@endsection