Commit dc00cc63 by jhon

fix crud barang

parent 4af52e65
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach($barangs as $barang) @foreach($barangs as $barang)
<tr> <tr>
<td>{{$barang->nama}}</td> <td>{{$barang->nama}}</td>
......
...@@ -58,12 +58,14 @@ Route::group(['middleware' => ['web','auth','customer']], function () { ...@@ -58,12 +58,14 @@ Route::group(['middleware' => ['web','auth','customer']], function () {
}); });
Route::group(['middleware' => ['web','auth','inventori']], function () { Route::group(['middleware' => ['web','auth','inventori']], function () {
Route::get('/ListBarang', 'InventoriController@listBarang'); Route::get('/ListBarang', 'InventoriController@ListBarang');
Route::get('/create', 'InventoriController@create'); Route::get('/create', 'InventoriController@create');
Route::post('/store', 'InventoriController@store'); Route::post('/store', 'InventoriController@store');
Route::get('/edit/{id}', 'InventoriController@edit'); Route::get('/edit/{id}', 'InventoriController@edit');
Route::post('/update/{id}', 'InventoriController@update'); Route::post('/update/{id}', 'InventoriController@update');
Route::get('/delete/{id}', 'InventoriController@destroy'); Route::get('/delete/{id}', 'InventoriController@destroy');
Route::get('/ListRequest', 'InventoriController@ListRequest');
}); });
Route::group(['middleware' => ['web','auth','kasir']], function () { Route::group(['middleware' => ['web','auth','kasir']], function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment