Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa21617d4ti08
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jhon
pa21617d4ti08
Commits
a17ddf8b
Commit
a17ddf8b
authored
May 23, 2017
by
Yonatan Parapat
Browse files
Options
Browse Files
Download
Plain Diff
no message
parents
eccf56bc
4b6195aa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
InventoriController.php
app/Http/Controllers/InventoriController.php
+62
-0
No files found.
app/Http/Controllers/InventoriController.php
View file @
a17ddf8b
...
...
@@ -8,6 +8,15 @@ use App\Http\Requests;
use
App\Barang
;
<<<<<<<
HEAD
=======
use
App\RequestBarang
;
use
App\DataRequest
;
use
App\Pembelian
;
>>>>>>>
4
b6195aa0546e35951dd24b13bd7816e0f50cb65
use
App\RequestBarang
;
use
App\DataRequest
;
...
...
@@ -91,8 +100,22 @@ class InventoriController extends Controller
}
<<<<<<<
HEAD
//----------------------------List Request----------------------//
public
function
ListRequest
()
{
$request_barangs
=
RequestBarang
::
all
();
return
view
(
'adminlte::inventori.ListRequest.index'
,
compact
(
'request_barangs'
));
}
public
function
editRequest
(
$id
)
{
=======
public
function
editRequest
(
$id
)
{
>>>>>>>
226
a4f92be2de6ce884543bf9425346660a5031f
$request_barangs
=
RequestBarang
::
where
(
'id'
,
$id
)
->
first
();
return
view
(
'adminlte::inventori.ListRequest.edit'
)
->
with
(
'request_barangs'
,
$request_barangs
);
}
...
...
@@ -131,8 +154,46 @@ class InventoriController extends Controller
$data_requests
->
harga
=
$request
[
'harga'
];
$data_requests
->
save
();
return
redirect
(
'DataRequest'
);
<<<<<<<
HEAD
}
public
function
editDataRequest
(
$id
)
{
$data_requests
=
DataRequest
::
where
(
'id'
,
$id
)
->
first
();
return
view
(
'adminlte::inventori.DataRequest.editDataRequest'
)
->
with
(
'data_requests'
,
$data_requests
);
}
public
function
updateDataRequest
(
Request
$request
,
$id
)
{
$this
->
validate
(
$request
,
[
'nama_barang'
=>
'required'
,
'kategori'
=>
'required'
,
'harga'
=>
'required'
,
]);
$data_requests
=
DataRequest
::
findOrFail
(
$id
);
$data_requests
->
nama_barang
=
$request
->
nama_barang
;
$data_requests
->
kategori
=
$request
->
kategori
;
$data_requests
->
harga
=
$request
->
harga
;
$data_requests
->
save
();
return
redirect
(
'DataRequest'
);
}
public
function
destroyDataRequest
(
$id
)
{
$data_requests
=
DataRequest
::
find
(
$id
);
$data_requests
->
delete
();
return
redirect
(
'DataRequest'
);
=======
>>>>>>>
226
a4f92be2de6ce884543bf9425346660a5031f
}
<<<<<<<
HEAD
=======
public
function
editDataRequest
(
$id
)
{
...
...
@@ -166,6 +227,7 @@ class InventoriController extends Controller
return
redirect
(
'DataRequest'
);
}
>>>>>>>
4
b6195aa0546e35951dd24b13bd7816e0f50cb65
public
function
konfirmasiBarang
(
$id
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment