manambahkan fungsi pada manager

parent a1efa21e
......@@ -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'));
}
......
......@@ -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'=>'Pemesan'])
->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'=>'golongan'])
->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'));
}
......
......@@ -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 Pegawai</li>
<li class="active">Data Pelanggan</li>
</ul>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Data Pegawai</h2>
<h2 class="panel-title">Data Pelanggan</h2>
</div>
<div class="panel-body">
{!! Form::open(['url' => route('pegawai.store'),
......
......@@ -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
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