perubahan di aktor manager untuk memperbaiki use case pegawai supaya terhubung ke database

parent eb07e2d1
......@@ -16,7 +16,6 @@ class AuthorsController extends Controller
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*
*/
public function index(Request $request, Builder $htmlBuilder)
{
......@@ -28,6 +27,7 @@ class AuthorsController extends Controller
'model' => $author,
'form_url' => route('authors.destroy', $author->id),
'edit_url' => route('authors.edit', $author->id),
'confirm_message' => 'Yakin ingin menghapus ' . $author->name . '?'
]);
})->make(true);
......@@ -50,11 +50,6 @@ class AuthorsController extends Controller
return view('authors.create');
}
public function pegawai()
{
return view('authors.pegawai');
}
/**
* Store a newly created resource in storage.
*
......
......@@ -12,3 +12,10 @@
</div>
</div>
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
{!! Form::label('name', 'Nama', ['class'=>'col-md-2 control-label']) !!}
<div class="col-md-4">
{!! Form::text('name', null, ['class'=>'form-control']) !!}
{!! $errors->first('name', '<p class="help-block">:message</p>') !!}
</div>
</div>
\ No newline at end of file
@extends('layouts.app')
@section('content')
<section id="main-content">
<section class="wrapper">
<div class="container">
<div class="row">
<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 Pelanggan</li>
</ul>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Tambah Pelanggan</h2>
</div>
<div class="panel-body">
{!! Form::open(['url' => route('authors.store'),
'method' => 'post', 'class'=>'form-horizontal']) !!}
@include('authors._form')
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</section>
</section>
@endsection
......@@ -20,10 +20,8 @@
</div>
<div class="panel-body">
{!! Form::open(['url' => route('authors.store'),
'method' => 'post', 'class'=>'form-horizontal']) !!}
@include('authors._form')
{!! Form::close() !!}
<p> <a class="btn btn-primary" href="{{ route('authors.create_pegawai') }}">Tambah</a> </p>
{!! $html->table(['class'=>'table-striped']) !!}
</div>
</div>
</div>
......
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