Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA2-1617-D3TK05
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
ropelita esterlina sihombing
PA2-1617-D3TK05
Commits
6aa84757
Commit
6aa84757
authored
7 years ago
by
ropelita esterlina sihombing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manambahkan fungsi pada manager
parent
a1efa21e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
16 deletions
+17
-16
workspace.xml
.idea/workspace.xml
+0
-0
BooksController.php
app/Http/Controllers/BooksController.php
+1
-1
pegawaiController.php
app/Http/Controllers/pegawaiController.php
+7
-5
376d48520a0709fe2ae4f11dafc8e84b.jpg
public/img/376d48520a0709fe2ae4f11dafc8e84b.jpg
+0
-0
9c4ac4911dad63a95c6722abc8d392a0.JPG
public/img/9c4ac4911dad63a95c6722abc8d392a0.JPG
+0
-0
d9207ef13d4f0fbeef8b46de98b2835d.jpg
public/img/d9207ef13d4f0fbeef8b46de98b2835d.jpg
+0
-0
f1ec699e641fefa9a48f3d819482f7da.JPG
public/img/f1ec699e641fefa9a48f3d819482f7da.JPG
+0
-0
create.blade.php
resources/views/authors/create.blade.php
+2
-2
pegawai.blade.php
resources/views/authors/pegawai.blade.php
+7
-8
No files found.
.idea/workspace.xml
View file @
6aa84757
This diff is collapsed.
Click to expand it.
app/Http/Controllers/BooksController.php
View file @
6aa84757
...
...
@@ -47,7 +47,7 @@ return $book->stock;
->
addColumn
([
'data'
=>
'harga'
,
'name'
=>
'harga'
,
'title'
=>
'harga'
])
->
addColumn
([
'data'
=>
'author.name'
,
'name'
=>
'author.name'
,
'title'
=>
'Pemesan'
])
->
addColumn
([
'data'
=>
'action'
,
'name'
=>
'action'
,
'title'
=>
'Action'
,
'orderable'
=>
false
,
'searchable'
=>
false
]);
return
view
(
'books.index'
)
->
with
(
compact
(
'html'
));
}
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/pegawaiController.php
View file @
6aa84757
...
...
@@ -6,6 +6,8 @@ use Illuminate\Http\Request;
use
App\Pegawai
as
pegawai
;
use
App\Http\Requests\StorePegawaiRequest
;
use
App\Http\Requests\UpdatePegawaiRequest
;
use
Yajra\Datatables\Html\Builder
;
use
Yajra\Datatables\Datatables
;
class
pegawaiController
extends
Controller
{
...
...
@@ -34,14 +36,14 @@ class pegawaiController extends Controller
}
$html
=
$htmlBuilder
->
addColumn
([
'data'
=>
'
title'
,
'name'
=>
'title'
,
'title'
=>
'Jenis Makanan
'
])
->
addColumn
([
'data'
=>
'
stock'
,
'name'
=>
'amount'
,
'title'
=>
'Stock
'
])
->
addColumn
([
'data'
=>
'
harga'
,
'name'
=>
'harga'
,
'title'
=>
'harga
'
])
->
addColumn
([
'data'
=>
'
author.name'
,
'name'
=>
'author.name'
,
'title'
=>
'Pemes
an'
])
->
addColumn
([
'data'
=>
'
name'
,
'name'
=>
'name'
,
'title'
=>
'name
'
])
->
addColumn
([
'data'
=>
'
alamat'
,
'name'
=>
'alamat'
,
'title'
=>
'alamat
'
])
->
addColumn
([
'data'
=>
'
umur'
,
'name'
=>
'umur'
,
'title'
=>
'umur
'
])
->
addColumn
([
'data'
=>
'
golongan'
,
'name'
=>
'golongan'
,
'title'
=>
'golong
an'
])
->
addColumn
([
'data'
=>
'action'
,
'name'
=>
'action'
,
'title'
=>
'Action'
,
'orderable'
=>
false
,
'searchable'
=>
false
]);
return
view
(
'authors.
index
'
)
->
with
(
compact
(
'html'
));
return
view
(
'authors.
pegawai
'
)
->
with
(
compact
(
'html'
));
}
...
...
This diff is collapsed.
Click to expand it.
public/img/376d48520a0709fe2ae4f11dafc8e84b.jpg
0 → 100644
View file @
6aa84757
17.5 KB
This diff is collapsed.
Click to expand it.
public/img/9c4ac4911dad63a95c6722abc8d392a0.JPG
deleted
100644 → 0
View file @
a1efa21e
9.34 KB
This diff is collapsed.
Click to expand it.
public/img/d9207ef13d4f0fbeef8b46de98b2835d.jpg
0 → 100644
View file @
6aa84757
16 KB
This diff is collapsed.
Click to expand it.
public/img/f1ec699e641fefa9a48f3d819482f7da.JPG
deleted
100644 → 0
View file @
a1efa21e
25.5 KB
This diff is collapsed.
Click to expand it.
resources/views/authors/create.blade.php
View file @
6aa84757
...
...
@@ -11,11 +11,11 @@
<ul class="
breadcrumb
">
<li><a href="
{{
url
(
'/home'
)
}}
">Dashboard</a></li>
<li><a href="
{{
url
(
'/admin/books'
)
}}
">Pelanggan</a></li>
<li class="
active
">Data Pe
gawai
</li>
<li class="
active
">Data Pe
langgan
</li>
</ul>
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">
<h2 class="
panel
-
title
">Data Pe
gawai
</h2>
<h2 class="
panel
-
title
">Data Pe
langgan
</h2>
</div>
<div class="
panel
-
body
">
{!! Form::open(['url' => route('pegawai.store'),
...
...
This diff is collapsed.
Click to expand it.
resources/views/authors/pegawai.blade.php
View file @
6aa84757
...
...
@@ -10,26 +10,25 @@
<br>
<div class="
col
-
md
-
10
">
<ul class="
breadcrumb
">
<li><a href="
{{
url
(
'/home'
)
}}
">Dashboard</a></li>
<li><a href="
{{
url
(
'/admin/authors'
)
}}
">Pelanggan</a></li>
<li class="
active
">Tambah pegawai</li>
<li><a href="
{{
url
(
'/home'
)
}}
">PizzaAndaliman</a></li>
<li class="
active
">PizzaAndaliman</li>
</ul>
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">
<h2 class="
panel
-
title
">
Tambah Pegawai
</h2>
<h2 class="
panel
-
title
">
PizzaAndaliman
</h2>
</div>
<div class="
panel
-
body
">
<p> <a class="
btn
btn
-
primary
" href="
{{
route
(
'authors.create'
)
}}
">Tambah</a> </p>
{!!
$html->table
(['class'=>'table-striped']) !!}
</div>
</div>
</div>
</div>
</div>
</section>
</section>
@endsection
@section('scripts')
{!!
$html->scripts
() !!}
@endsection
This diff is collapsed.
Click to expand it.
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