memberbaiki fungsi pada aktor manager

parent fc549bae
......@@ -5,12 +5,18 @@
</component>
<component name="ChangeListManager">
<list default="true" id="739c9fa3-6977-4714-a6b6-4fb9524da89b" name="Default" comment="">
<change type="MOVED" beforePath="$PROJECT_DIR$/database/migrations/2017_05_08_085711_create_datapegawai_table.php" afterPath="$PROJECT_DIR$/database/migrations/2017_05_08_085711_create_pegawai_table.php" />
<change type="DELETED" beforePath="$PROJECT_DIR$/public/img/29e121948479185bf49cb59f951be420.jpg" afterPath="" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/Http/Controllers/BooksController.php" afterPath="$PROJECT_DIR$/app/Http/Controllers/BooksController.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/Http/Controllers/GuestController.php" afterPath="$PROJECT_DIR$/app/Http/Controllers/GuestController.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/Http/Controllers/pegawaiController.php" afterPath="$PROJECT_DIR$/app/Http/Controllers/pegawaiController.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/Http/Requests/StoreBookRequest.php" afterPath="$PROJECT_DIR$/app/Http/Requests/StoreBookRequest.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/Http/Requests/UpdateBookRequest.php" afterPath="$PROJECT_DIR$/app/Http/Requests/UpdateBookRequest.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/database/migrations/2016_12_12_120408_create_books_table.php" afterPath="$PROJECT_DIR$/database/migrations/2016_12_12_120408_create_books_table.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/resources/views/authors/_form.blade.php" afterPath="$PROJECT_DIR$/resources/views/authors/_form.blade.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/resources/views/authors/create.blade.php" afterPath="$PROJECT_DIR$/resources/views/authors/create.blade.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/resources/views/authors/pegawai.blade.php" afterPath="$PROJECT_DIR$/resources/views/authors/pegawai.blade.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/resources/views/books/_form.blade.php" afterPath="$PROJECT_DIR$/resources/views/books/_form.blade.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/ultra_perpus.sql" afterPath="$PROJECT_DIR$/ultra_perpus.sql" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/vendor/composer/autoload_classmap.php" afterPath="$PROJECT_DIR$/vendor/composer/autoload_classmap.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/vendor/composer/autoload_static.php" afterPath="$PROJECT_DIR$/vendor/composer/autoload_static.php" />
</list>
<ignored path="UltraLaravel-Perpus.iws" />
<ignored path=".idea/workspace.xml" />
......@@ -31,101 +37,113 @@
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="MyController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/MyController.php">
<file leaf-file-name="BooksController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/BooksController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="-3615">
<caret line="49" column="10" selection-start-line="49" selection-start-column="10" selection-end-line="49" selection-end-column="10" />
<folding>
<element signature="e#38#66#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="BooksController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/BooksController.php">
<file leaf-file-name="pegawaiController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/pegawaiController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-4040">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="169">
<caret line="21" column="56" selection-start-line="21" selection-start-column="56" selection-end-line="21" selection-end-column="56" />
<folding>
<element signature="e#40#68#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="AuthorsController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/AuthorsController.php">
<file leaf-file-name="pegawai.blade.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/resources/views/authors/pegawai.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1643">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="270">
<caret line="22" column="79" selection-start-line="22" selection-start-column="79" selection-end-line="22" selection-end-column="86" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ResetPasswordController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/ResetPasswordController.php">
<file leaf-file-name="StoreBookRequest.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Requests/StoreBookRequest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-62">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="527">
<caret line="32" column="10" selection-start-line="32" selection-start-column="10" selection-end-line="32" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="RegisterController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/RegisterController.php">
<file leaf-file-name="StorePegawaiRequest.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Requests/StorePegawaiRequest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="102">
<caret line="15" column="19" selection-start-line="15" selection-start-column="19" selection-end-line="15" selection-end-column="19" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="LoginController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/LoginController.php">
<file leaf-file-name="StorePegawaiRequest.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Requests/Request/StorePegawaiRequest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="163">
<caret line="10" column="6" selection-start-line="10" selection-start-column="6" selection-end-line="10" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ForgotPasswordController.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/ForgotPasswordController.php">
<file leaf-file-name="create.blade.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/resources/views/books/create.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="296">
<caret line="22" column="23" selection-start-line="0" selection-start-column="0" selection-end-line="32" selection-end-column="0" />
<folding>
<marker date="1485787305838" expanded="true" signature="532:675" ph="..." />
<marker date="1485787305838" expanded="true" signature="544:673" ph="..." />
<marker date="1485787305838" expanded="true" signature="545:672" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="HomeController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/HomeController.php">
<file leaf-file-name="create.blade.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/resources/views/authors/create.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="240">
<caret line="17" column="68" selection-start-line="17" selection-start-column="68" selection-end-line="17" selection-end-column="68" />
<folding>
<marker date="1494925829397" expanded="true" signature="872:1049" ph="..." />
<marker date="1494925829397" expanded="true" signature="884:1047" ph="..." />
<marker date="1494925829397" expanded="true" signature="885:1046" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="GuestController.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/GuestController.php">
<file leaf-file-name="app.blade.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/resources/views/layouts/app.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="259">
<caret line="128" column="46" selection-start-line="128" selection-start-column="46" selection-end-line="128" selection-end-column="46" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Controller.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Controller.php">
<file leaf-file-name="web.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="-9">
<caret line="7" column="57" selection-start-line="7" selection-start-column="55" selection-end-line="7" selection-end-column="57" />
<folding />
</state>
</provider>
......@@ -165,30 +183,33 @@
<option value="$PROJECT_DIR$/app/Http/Controllers/AuthorsController.php" />
<option value="$PROJECT_DIR$/app/Pegawai.php" />
<option value="$PROJECT_DIR$/routes/web.php" />
<option value="$PROJECT_DIR$/resources/views/authors/pegawai.blade.php" />
<option value="$PROJECT_DIR$/app/Http/Controllers/GuestController.php" />
<option value="$PROJECT_DIR$/app/Http/Controllers/BooksController.php" />
<option value="$PROJECT_DIR$/app/Http/Controllers/pegawaiController.php" />
<option value="$PROJECT_DIR$/app/Http/Requests/StoreBookRequest.php" />
<option value="$PROJECT_DIR$/app/Author.php" />
<option value="$PROJECT_DIR$/app/Book.php" />
<option value="$PROJECT_DIR$/config/app.php" />
<option value="$PROJECT_DIR$/config/mail.php" />
<option value="$PROJECT_DIR$/database/seeds/UsersSeeder.php" />
<option value="$PROJECT_DIR$/resources/views/authors/create.blade.php" />
<option value="$PROJECT_DIR$/resources/views/authors/create_pegawai.blade.php" />
<option value="$PROJECT_DIR$/resources/views/authors/index.blade.php" />
<option value="$PROJECT_DIR$/resources/views/books/export.blade.php" />
<option value="$PROJECT_DIR$/resources/views/books/index.blade.php" />
<option value="$PROJECT_DIR$/resources/views/guest/index.blade.php" />
<option value="$PROJECT_DIR$/resources/views/layouts/app.blade.php" />
<option value="$PROJECT_DIR$/resources/views/pdf/books.blade.php" />
<option value="$PROJECT_DIR$/resources/views/welcome.blade.php" />
<option value="$PROJECT_DIR$/resources/views/books/_form.blade.php" />
<option value="$PROJECT_DIR$/ultra_perpus.sql" />
<option value="$PROJECT_DIR$/database/migrations/2016_12_12_120408_create_books_table.php" />
<option value="$PROJECT_DIR$/database/migrations/2017_05_08_085711_create_datapegawai_table.php" />
<option value="$PROJECT_DIR$/database/migrations/2017_05_08_085711_create_pegawai_table.php" />
<option value="$PROJECT_DIR$/database/migrations/2016_12_12_120408_create_books_table.php" />
<option value="$PROJECT_DIR$/resources/views/books/_form.blade.php" />
<option value="$PROJECT_DIR$/app/Http/Controllers/GuestController.php" />
<option value="$PROJECT_DIR$/app/Http/Requests/UpdateBookRequest.php" />
<option value="$PROJECT_DIR$/app/Http/Requests/StoreBookRequest.php" />
<option value="$PROJECT_DIR$/resources/views/authors/pegawai.blade.php" />
<option value="$PROJECT_DIR$/resources/views/authors/_form.blade.php" />
<option value="$PROJECT_DIR$/resources/views/layouts/app.blade.php" />
<option value="$PROJECT_DIR$/resources/views/authors/create.blade.php" />
<option value="$PROJECT_DIR$/app/Http/Controllers/BooksController.php" />
<option value="$PROJECT_DIR$/app/Http/Requests/StorePegawaiRequest.php" />
<option value="$PROJECT_DIR$/app/Http/Controllers/pegawaiController.php" />
</list>
</option>
</component>
......@@ -230,6 +251,8 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
<PATH>
......@@ -294,97 +317,9 @@
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="framework" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="views" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="storage" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="framework" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="sessions" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="storage" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="framework" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="cache" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="storage" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="storage" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="public" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
......@@ -576,28 +511,6 @@
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="errors" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="resources" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="views" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="datatable" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
......@@ -681,80 +594,6 @@
<option name="myItemId" value="resources" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="views" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="auth" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="resources" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="views" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="auth" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="passwords" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="resources" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="lang" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="en" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="resources" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="assets" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
......@@ -974,29 +813,11 @@
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Middleware" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="foodbooking" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="app" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Http" />
<option name="myItemId" value="Requests" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Controllers" />
<option name="myItemId" value="Request" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
......@@ -1021,10 +842,6 @@
<option name="myItemId" value="Controllers" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Auth" />
<option name="myItemType" value="com.jetbrains.php.projectView.PhpTreeStructureProvider$1" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
......@@ -1064,16 +881,17 @@
</PATH>
</subPane>
</pane>
<pane id="Scratches" />
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="SearchEverywhereHistoryKey" value="pega&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/pegawaiController.php&#10;web&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/routes/web.php&#10;pegawaiC&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/pegawaiController.php&#10;autho&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/AuthorsController.php&#10;app&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/resources/views/layouts/app.blade.php&#10;regi&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/Auth/RegisterController.php&#10;web.&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/routes/web.php&#10;home&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/HomeController.php&#10;homecontr&#9;null&#9;null&#10;style.css&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/public/css/theme/assets/css/style.css&#10;we&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/routes/web.php" />
<property name="SearchEverywhereHistoryKey" value="web&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/routes/web.php&#10;validation&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/resources/lang/en/validation.php&#10;validator&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/vendor/laravel/framework/src/Illuminate/Validation/Validator.php&#10;pega&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/pegawaiController.php&#10;pegawaiC&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/pegawaiController.php&#10;autho&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/AuthorsController.php&#10;app&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/resources/views/layouts/app.blade.php&#10;regi&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/Auth/RegisterController.php&#10;web.&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/routes/web.php&#10;home&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/app/Http/Controllers/HomeController.php&#10;homecontr&#9;null&#9;null&#10;style.css&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/public/css/theme/assets/css/style.css&#10;we&#9;FILE&#9;file://C:/xampp/htdocs/foodbooking/routes/web.php" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="C:\xampp\htdocs\foodbooking\app\Http\Requests" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\xampp\htdocs\foodbooking\resources\views\dashboard" />
</key>
......@@ -1169,21 +987,22 @@
<workItem from="1494754623552" duration="11910000" />
<workItem from="1494812163775" duration="7169000" />
<workItem from="1494820908843" duration="2371000" />
<workItem from="1494837226205" duration="526000" />
<workItem from="1494914435949" duration="11529000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="111673000" />
<option name="totallyTimeSpent" value="123728000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="754" extended-state="6" />
<editor active="false" />
<layout>
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25567323" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24130106" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32850242" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24962178" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32850242" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
......@@ -1197,9 +1016,32 @@
<window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Gulp" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="true" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32850242" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout>
<layout-to-restore>
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Command Line Tools Console" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.012882448" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32850242" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
<window_info id="Gulp" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="4" side_tool="true" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24130106" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32850242" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.24962178" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout-to-restore>
</component>
<component name="Vcs.Log.UiProperties">
<option name="RECENTLY_FILTERED_USER_GROUPS">
......@@ -1217,107 +1059,71 @@
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/resources/views/datatable/_action.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1483455536000" expanded="true" signature="3:143" ph="..." />
<marker date="1483455536000" expanded="true" signature="16:141" ph="..." />
<marker date="1483455536000" expanded="true" signature="25:139" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/dashboard/member.blade.php">
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_11_110857_create_posts_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<state relative-caret-position="-62">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1493716428862" expanded="true" signature="952:1324" ph="..." />
<marker date="1493716428862" expanded="true" signature="964:1322" ph="..." />
<marker date="1493716428862" expanded="true" signature="965:1320" ph="..." />
<marker date="1493716428862" expanded="true" signature="2161:2177" ph="..." />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/books/index.blade.php">
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_11_131056_laratrust_setup_tables.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<state relative-caret-position="-641">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/books/export.blade.php">
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_12_114448_create_authors_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-538">
<state relative-caret-position="-45">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1494768680115" expanded="true" signature="629:738" ph="..." />
<marker date="1494768680115" expanded="true" signature="641:736" ph="..." />
<marker date="1494768680115" expanded="true" signature="642:735" ph="..." />
<marker date="1494768680115" expanded="true" signature="973:1172" ph="..." />
<marker date="1494768680115" expanded="true" signature="987:1170" ph="..." />
<marker date="1494768680115" expanded="true" signature="1057:1169" ph="..." />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/books/edit.blade.php">
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_12_120408_create_books_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-164">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1485787305963" expanded="true" signature="677:820" ph="..." />
<marker date="1485787305963" expanded="true" signature="690:818" ph="..." />
<marker date="1485787305963" expanded="true" signature="698:817" ph="..." />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/books/create.blade.php">
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_30_094623_create_borrow_logs_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<state relative-caret-position="-181">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1485787305838" expanded="true" signature="532:675" ph="..." />
<marker date="1485787305838" expanded="true" signature="544:673" ph="..." />
<marker date="1485787305838" expanded="true" signature="545:672" ph="..." />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/books/_form.blade.php">
<entry file="file://$PROJECT_DIR$/database/migrations/2017_05_08_085711_create_pegawai_table.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-521">
<state relative-caret-position="-96">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1494815634224" expanded="true" signature="1474:1637" ph="..." />
<marker date="1494815634224" expanded="true" signature="1488:1635" ph="..." />
<marker date="1494815634224" expanded="true" signature="1556:1634" ph="..." />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/authors/pegawai.blade.php">
<entry file="file://$PROJECT_DIR$/database/seeds/BooksSeeder.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="474">
<caret line="34" column="0" selection-start-line="34" selection-start-column="0" selection-end-line="34" selection-end-column="0" />
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/authors/index.blade.php">
<entry file="file://$PROJECT_DIR$/database/seeds/DatabaseSeeder.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-113">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/authors/_form.blade.php">
<entry file="file://$PROJECT_DIR$/database/seeds/poststableseeder.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1325,35 +1131,31 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/auth/register.blade.php">
<entry file="file://$PROJECT_DIR$/database/seeds/UsersSeeder.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-91">
<state relative-caret-position="-79">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/auth/login.blade.php">
<entry file="file://$PROJECT_DIR$/public/index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<state relative-caret-position="-436">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/auth/passwords/reset.blade.php">
<entry file="file://$PROJECT_DIR$/resources/lang/en/auth.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding>
<marker date="1483455536000" expanded="true" signature="1419:1519" ph="..." />
<marker date="1483455536000" expanded="true" signature="1432:1517" ph="..." />
<marker date="1483455536000" expanded="true" signature="1481:1516" ph="..." />
</folding>
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/auth/passwords/email.blade.php">
<entry file="file://$PROJECT_DIR$/resources/lang/en/pagination.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1361,7 +1163,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_30_094623_create_borrow_logs_table.php">
<entry file="file://$PROJECT_DIR$/resources/lang/en/passwords.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1369,31 +1171,35 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_12_120408_create_books_table.php">
<entry file="file://$PROJECT_DIR$/resources/lang/en/validation.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<state relative-caret-position="-1145">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_11_131056_laratrust_setup_tables.php">
<entry file="file://$PROJECT_DIR$/resources/views/auth/passwords/email.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<state relative-caret-position="-198">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_12_114448_create_authors_table.php">
<entry file="file://$PROJECT_DIR$/resources/views/auth/passwords/reset.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-45">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="130">
<caret line="31" column="6" selection-start-line="29" selection-start-column="72" selection-end-line="31" selection-end-column="6" />
<folding>
<marker date="1483455536000" expanded="true" signature="1419:1519" ph="..." />
<marker date="1483455536000" expanded="true" signature="1432:1517" ph="..." />
<marker date="1483455536000" expanded="true" signature="1481:1516" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/database/migrations/2016_12_11_110857_create_posts_table.php">
<entry file="file://$PROJECT_DIR$/resources/views/auth/register.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1401,15 +1207,19 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/database/migrations/2014_10_12_100000_create_password_resets_table.php">
<entry file="file://$PROJECT_DIR$/resources/views/books/edit.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="179">
<caret line="13" column="18" selection-start-line="13" selection-start-column="17" selection-end-line="13" selection-end-column="18" />
<folding>
<marker date="1485787305963" expanded="true" signature="677:820" ph="..." />
<marker date="1485787305963" expanded="true" signature="690:818" ph="..." />
<marker date="1485787305963" expanded="true" signature="698:817" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/database/migrations/.gitkeep">
<entry file="file://$PROJECT_DIR$/app/Exceptions/BookException.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1417,31 +1227,35 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/config/view.php">
<entry file="file://$PROJECT_DIR$/app/Console/Kernel.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-96">
<state relative-caret-position="-198">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/User.php">
<entry file="file://$PROJECT_DIR$/app/Http/Requests/UpdateBookRequest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-351">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="357">
<caret line="21" column="0" selection-start-line="21" selection-start-column="0" selection-end-line="21" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Role.php">
<entry file="file://$PROJECT_DIR$/resources/views/authors/edit.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<folding>
<marker date="1494577405187" expanded="true" signature="634:764" ph="..." />
<marker date="1494577405187" expanded="true" signature="647:762" ph="..." />
<marker date="1494577405187" expanded="true" signature="657:761" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Post.php">
<entry file="file://$PROJECT_DIR$/resources/views/auth/login.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1449,7 +1263,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Permission.php">
<entry file="file://$PROJECT_DIR$/resources/views/authors/index.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1457,23 +1271,27 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Pegawai.php">
<entry file="file://$PROJECT_DIR$/resources/views/authors/create_pegawai.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="34">
<caret line="2" column="12" selection-start-line="2" selection-start-column="12" selection-end-line="2" selection-end-column="12" />
<folding>
<marker date="1494767284848" expanded="true" signature="636:743" ph="..." />
<marker date="1494767284848" expanded="true" signature="648:741" ph="..." />
<marker date="1494767284848" expanded="true" signature="649:740" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/BorrowLog.php">
<entry file="file://$PROJECT_DIR$/routes/console.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-62">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Book.php">
<entry file="file://$PROJECT_DIR$/resources/views/welcome.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1481,23 +1299,23 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Author.php">
<entry file="file://$PROJECT_DIR$/resources/views/home.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-26">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Providers/RouteServiceProvider.php">
<entry file="file://$PROJECT_DIR$/resources/views/about.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-861">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Providers/EventServiceProvider.php">
<entry file="file://$PROJECT_DIR$/resources/views/vendor/notifications/email-plain.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1505,7 +1323,7 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Providers/BroadcastServiceProvider.php">
<entry file="file://$PROJECT_DIR$/resources/views/vendor/notifications/email.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1513,71 +1331,88 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Providers/AuthServiceProvider.php">
<entry file="file://$PROJECT_DIR$/resources/views/pdf/books.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="-796">
<caret line="8" column="3" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="3" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Providers/AppServiceProvider.php">
<entry file="file://$PROJECT_DIR$/resources/views/layouts/_flash.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="340">
<caret line="20" column="0" selection-start-line="20" selection-start-column="0" selection-end-line="20" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Kernel.php">
<entry file="file://$PROJECT_DIR$/resources/views/guest/index.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="440">
<caret line="30" column="8" selection-start-line="30" selection-start-column="7" selection-end-line="30" selection-end-column="8" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Requests/UpdateBookRequest.php">
<entry file="file://$PROJECT_DIR$/resources/views/datatable/_action.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="51">
<caret line="3" column="24" selection-start-line="3" selection-start-column="22" selection-end-line="3" selection-end-column="24" />
<folding>
<marker date="1483455536000" expanded="true" signature="3:143" ph="..." />
<marker date="1483455536000" expanded="true" signature="16:141" ph="..." />
<marker date="1483455536000" expanded="true" signature="25:139" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Requests/StoreBookRequest.php">
<entry file="file://$PROJECT_DIR$/resources/views/dashboard/admin.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-113">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="372">
<caret line="33" column="74" selection-start-line="33" selection-start-column="72" selection-end-line="33" selection-end-column="74" />
<folding>
<marker date="1493706832911" expanded="true" signature="675:691" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Middleware/EncryptCookies.php">
<entry file="file://$PROJECT_DIR$/resources/views/books/_form.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="323">
<caret line="19" column="44" selection-start-line="19" selection-start-column="39" selection-end-line="19" selection-end-column="44" />
<folding>
<marker date="1494919512942" expanded="true" signature="1474:1637" ph="..." />
<marker date="1494919512942" expanded="true" signature="1488:1635" ph="..." />
<marker date="1494919512942" expanded="true" signature="1556:1634" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Middleware/VerifyCsrfToken.php">
<entry file="file://$PROJECT_DIR$/resources/views/books/index.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="179">
<caret line="12" column="18" selection-start-line="12" selection-start-column="17" selection-end-line="12" selection-end-column="18" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Middleware/RedirectIfAuthenticated.php">
<entry file="file://$PROJECT_DIR$/resources/views/books/export.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="256">
<caret line="24" column="48" selection-start-line="24" selection-start-column="46" selection-end-line="24" selection-end-column="48" />
<folding>
<marker date="1494768680115" expanded="true" signature="629:738" ph="..." />
<marker date="1494768680115" expanded="true" signature="641:736" ph="..." />
<marker date="1494768680115" expanded="true" signature="642:735" ph="..." />
<marker date="1494768680115" expanded="true" signature="973:1172" ph="..." />
<marker date="1494768680115" expanded="true" signature="987:1170" ph="..." />
<marker date="1494768680115" expanded="true" signature="1057:1169" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/MyController.php">
<entry file="file://$PROJECT_DIR$/resources/views/authors/_form.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
......@@ -1585,74 +1420,94 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/HomeController.php">
<entry file="file://$PROJECT_DIR$/resources/views/books/create.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="296">
<caret line="22" column="23" selection-start-line="0" selection-start-column="0" selection-end-line="32" selection-end-column="0" />
<folding>
<marker date="1485787305838" expanded="true" signature="532:675" ph="..." />
<marker date="1485787305838" expanded="true" signature="544:673" ph="..." />
<marker date="1485787305838" expanded="true" signature="545:672" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/GuestController.php">
<entry file="file://$PROJECT_DIR$/routes/web.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="-9">
<caret line="7" column="57" selection-start-line="7" selection-start-column="55" selection-end-line="7" selection-end-column="57" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Controller.php">
<entry file="file://$PROJECT_DIR$/resources/views/layouts/app.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="259">
<caret line="128" column="46" selection-start-line="128" selection-start-column="46" selection-end-line="128" selection-end-column="46" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/BooksController.php">
<entry file="file://$PROJECT_DIR$/resources/views/authors/create.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-4040">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="240">
<caret line="17" column="68" selection-start-line="17" selection-start-column="68" selection-end-line="17" selection-end-column="68" />
<folding>
<marker date="1494925829397" expanded="true" signature="872:1049" ph="..." />
<marker date="1494925829397" expanded="true" signature="884:1047" ph="..." />
<marker date="1494925829397" expanded="true" signature="885:1046" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/AuthorsController.php">
<entry file="file://$PROJECT_DIR$/app/Http/Requests/Request/StorePegawaiRequest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1643">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="163">
<caret line="10" column="6" selection-start-line="10" selection-start-column="6" selection-end-line="10" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/ResetPasswordController.php">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/BooksController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-62">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
<state relative-caret-position="-3615">
<caret line="49" column="10" selection-start-line="49" selection-start-column="10" selection-end-line="49" selection-end-column="10" />
<folding>
<element signature="e#38#66#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/RegisterController.php">
<entry file="file://$PROJECT_DIR$/app/Http/Requests/StoreBookRequest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="527">
<caret line="32" column="10" selection-start-line="32" selection-start-column="10" selection-end-line="32" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/LoginController.php">
<entry file="file://$PROJECT_DIR$/app/Http/Requests/StorePegawaiRequest.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="102">
<caret line="15" column="19" selection-start-line="15" selection-start-column="19" selection-end-line="15" selection-end-column="19" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/Auth/ForgotPasswordController.php">
<entry file="file://$PROJECT_DIR$/app/Http/Controllers/pegawaiController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="169">
<caret line="21" column="56" selection-start-line="21" selection-start-column="56" selection-end-line="21" selection-end-column="56" />
<folding>
<element signature="e#40#68#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/resources/views/authors/pegawai.blade.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="22" column="79" selection-start-line="22" selection-start-column="79" selection-end-line="22" selection-end-column="86" />
<folding />
</state>
</provider>
......
......@@ -44,7 +44,7 @@ return $book->stock;
$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' => '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]);
......
......@@ -28,7 +28,7 @@ return '<a class="btn btn-xs btn-primary" href="'.route('guest.books.borrow', $b
$html = $htmlBuilder
->addColumn(['data' => 'title', 'name'=>'title', 'title'=>'Jenis Makanan'])
->addColumn(['data' => 'stock', 'name'=>'stock', 'title'=>'Stock', 'orderable'=>false, 'searchable'=>false])
->addColumn(['data' => 'harga', 'name'=>'harga', 'title'=>'Harga'])
->addColumn(['data' => 'harga', 'name'=>'harga', 'title'=>'harga'])
->addColumn(['data' => 'author.name', 'name'=>'author.name', 'title'=>'Pemesan'])
->addColumn(['data' => 'action', 'name'=>'action', 'title'=>'', 'orderable'=>false, 'searchable'=>false]);
return view('guest.index')->with(compact('html'));
......
......@@ -4,6 +4,8 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Pegawai as pegawai;
use App\Http\Requests\StorePegawaiRequest;
use App\Http\Requests\UpdatePegawaiRequest;
class pegawaiController extends Controller
{
......@@ -12,13 +14,37 @@ class pegawaiController extends Controller
*
* @return \Illuminate\Http\Response
*/
public function index()
public function index(Request $request, Builder $htmlBuilder)
{
$data = pegawai::all();
if ($request->ajax()) {
$pegawais = pegawai::with('author');
return Datatables::of($pegawais)
->addColumn('stock', function($pegawai){
return $pegawai->stock;
})
->addColumn('action', function($pegawai){
return view('datatable._action', [
'model' => $pegawai,
'form_url' => route('pegawais.destroy', $pegawai->id),
'edit_url' => route('pegawais.edit', $pegawai->id),
'confirm_message' => 'Yakin ingin menghapus ' . $pegawai->name . '?',
return view('dashboard.admin', ['data'=> $data]);
]);
})->make(true);
}
$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' => 'action', 'name'=>'action', 'title'=>'Action', 'orderable'=>false, 'searchable'=>false]);
return view('authors.index')->with(compact('html'));
}
/**
......@@ -28,7 +54,7 @@ class pegawaiController extends Controller
*/
public function create()
{
//
return view('authors.create');
}
/**
......@@ -37,11 +63,31 @@ class pegawaiController extends Controller
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
public function store(StorePegawaiRequest $request)
{
//
}
$pegawai = pegawai::create($request->except('cover'));
// isi field cover jika ada cover yang diupload
if ($request->hasFile('cover')) {
// Mengambil file yang diupload
$uploaded_cover = $request->file('cover');
// mengambil extension file
$extension = $uploaded_cover->getClientOriginalExtension();
// membuat nama file random berikut extension
$filename = md5(time()) . '.' . $extension;
// menyimpan cover ke folder public/img
$destinationPath = public_path() . DIRECTORY_SEPARATOR . 'img';
$uploaded_cover->move($destinationPath, $filename);
// mengisi field cover di pegawai dengan filename yang baru dibuat
$pegawai->cover = $filename;
$pegawai->save();
}
Session::flash("flash_notification", [
"level"=>"success",
"message"=>"Berhasil menyimpan $pegawai->name"
]);
return redirect()->route('pegawai.index');
}
/**
* Display the specified resource.
*
......
<?php
namespace App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class StorePegawaiRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}
<?php
namespace App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;
class UpdatePegawaiRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}
......@@ -25,11 +25,11 @@ class StoreBookRequest extends FormRequest
public function rules()
{
return [
'title' => 'required|unique:books,title',
'author_id' => 'required|exists:authors,id',
'amount' => 'numeric',
'amount' => 'harga',
'cover' => 'image|max:2048'
'title' => 'Required',
'author_id' => 'Required',
'harga' => 'Required',
'amount' => 'Required',
'cover' => 'Required',
];
}
}
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StorePegawaiRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}
......@@ -6,9 +6,16 @@ class UpdateBookRequest extends StoreBookRequest
{
public function rules()
{
$rules = parent::rules();
$rules['title'] = 'required|unique:books,title,' . $this->route('book');
return $rules;
return [
'title' => 'Required',
'author_id' => 'Required',
'harga' => 'Required',
'amount' => 'Required',
'cover' => 'Required',
];
// $rules = parent::rules();
// $rules['title'] = 'required|unique:books,title,' . $this->route('book');
// return $rules;
}
}
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdatePegawaiRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}
......@@ -18,7 +18,7 @@ $table->increments('id');
$table->string('title');
$table->integer('author_id')->unsigned();
$table->integer('amount')->unsigned();
$table->integer('harga')->unsigned();
$table->string('harga');
$table->string('cover')->nullable();
$table->timestamps();
$table->foreign('author_id')->references('id')->on('authors')
......
......@@ -12,10 +12,3 @@
</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="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>
<li><a href="{{ url('/admin/books') }}">Pelanggan</a></li>
<li class="active">Data Pegawai</li>
</ul>
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">Tambah Pelanggan</h2>
<h2 class="panel-title">Data Pegawai</h2>
</div>
<div class="panel-body">
{!! Form::open(['url' => route('authors.store'),
'method' => 'post', 'class'=>'form-horizontal']) !!}
@include('authors._form')
{!! Form::open(['url' => route('pegawai.store'),
'method' => 'post', 'enctype'=>'multipart/form-data','files'=>'true', 'class'=>'form-horizontal']) !!}
@include('books._form')
{!! Form::close() !!}
</div>
</div>
......@@ -31,7 +29,4 @@
</div>
</section>
</section>
@endsection
......@@ -20,8 +20,8 @@
</div>
<div class="panel-body">
<p> <a class="btn btn-primary" href="{{ route('authors.create_pegawai') }}">Tambah</a> </p>
{!! $html->table(['class'=>'table-striped']) !!}
<p> <a class="btn btn-primary" href="{{ route('authors.create') }}">Tambah</a> </p>
</div>
</div>
</div>
......
......@@ -18,7 +18,7 @@
</div>
<div class="form-group{{ $errors->has('harga') ? ' has-error' : '' }}">
{!! Form::label('harga', 'Harga', ['class'=>'col-md-2 control-label']) !!}
{!! Form::label('harga', 'harga', ['class'=>'col-md-2 control-label']) !!}
<div class="col-md-4">
{!! Form::number('harga', null, ['class'=>'form-control', 'min'=>1]) !!}
{!! $errors->first('harga', '<p class="help-block">:message</p>') !!}
......
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