Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
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
Juliper
pa2d4ti06
Commits
64a38a7a
Commit
64a38a7a
authored
May 24, 2017
by
Palti Sinaga
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.del.ac.id/juliper19/pa2d4ti06
parents
501badfb
ee3fa669
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
17 deletions
+12
-17
CustomerController.php
app/Http/Controllers/CustomerController.php
+0
-4
GuestController.php
app/Http/Controllers/GuestController.php
+6
-7
style.css
public/css/style.css
+1
-1
bulbul.jpg
public/img/bulbul.jpg
+0
-0
Home.blade.php
resources/views/vendor/adminlte/layouts/pages/Home.blade.php
+1
-1
web.php
routes/web.php
+2
-2
autoload_classmap.php
vendor/composer/autoload_classmap.php
+1
-1
autoload_static.php
vendor/composer/autoload_static.php
+1
-1
No files found.
app/Http/Controllers/CustomerController.php
View file @
64a38a7a
...
...
@@ -132,10 +132,6 @@ class CustomerController extends Controller
return
view
(
'adminlte::layouts.customers.profiles'
)
->
with
(
'data'
,
$data
[
0
]);
}
public
function
register
(){
return
view
(
'adminlte::auth.register'
);
}
public
function
registerStore
(
Request
$data
){
$user
=
new
User
();
$user
->
name
=
$data
[
'name'
];
...
...
app/Http/Controllers/
Coba
Controller.php
→
app/Http/Controllers/
Guest
Controller.php
View file @
64a38a7a
...
...
@@ -21,7 +21,7 @@ use PhpParser\Node\Stmt\Const_;
use
Psy\Command\ListCommand\ConstantEnumerator
;
class
Coba
Controller
extends
Controller
class
Guest
Controller
extends
Controller
{
public
function
route
(){
...
...
@@ -34,6 +34,11 @@ class CobaController extends Controller
return
view
(
'welcome'
);
}
public
function
register
(){
return
view
(
'adminlte::auth.register'
);
}
public
function
detailhomestay
(
$id
){
$data
=
DB
::
table
(
'homestay'
)
->
join
(
'pemilikhomestay'
,
'homestay.idPemilik'
,
'='
,
'pemilikhomestay.id'
)
...
...
@@ -41,7 +46,6 @@ class CobaController extends Controller
->
where
(
'homestay.id'
,
'='
,
$id
)
->
get
();
$daftarBook
=
DB
::
table
(
'daftar_book'
)
->
select
(
'daftar_book.*'
)
->
where
(
'daftar_book.homestay'
,
'='
,
$id
)
...
...
@@ -49,17 +53,14 @@ class CobaController extends Controller
$now
=
new
DateTime
();
$nowCurrent
=
$now
->
format
(
'Y-m-d'
);
//dd($nowCurrent);
$dataJumlahKamar
=
ListBook
::
all
()
->
where
(
'tanggal_mulai'
,
$nowCurrent
);
$avilableRoom
=
0
;
if
(
$dataJumlahKamar
->
count
()
==
null
){
//dd('disini aja');
$avilableRoom
=
$data
[
0
]
->
jumlahKamar
;
}
else
{
//dd($dataJumlahKamar);
$avilableRoom
=
$dataJumlahKamar
[
0
]
->
jumlah_kamar
;
}
...
...
@@ -68,8 +69,6 @@ class CobaController extends Controller
->
where
(
'kamar.idHomestay'
,
'='
,
$id
)
->
get
();
//dd("masuk agan",$id,$dataKamar);
return
view
(
'adminlte::layouts.pages.Homestay'
)
->
with
(
'data'
,
$data
[
0
])
->
with
(
'daftarBook'
,
$daftarBook
)
->
with
(
'dataKamar'
,
$dataKamar
)
->
with
(
'avilable'
,
$avilableRoom
);
}
}
public/css/style.css
View file @
64a38a7a
...
...
@@ -764,7 +764,7 @@ ul.callbacks_tabs li {
/*--w3layouts--*/
/*--agileits--*/
padding
:
50px
0
50px
;
background
:
url("../img/
home
.jpg")
;
background
:
url("../img/
bulbul
.jpg")
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
cover
;
...
...
public/img/bulbul.jpg
0 → 100644
View file @
64a38a7a
80.1 KB
resources/views/vendor/adminlte/layouts/pages/Home.blade.php
View file @
64a38a7a
...
...
@@ -146,7 +146,7 @@
<h1> Lokasi Kami</h1>
<div class="
banner
agileits
w3layouts
">
<img src="
img
/
banner
.
jpg
" alt="
Agileits
W3layouts
">
<h1 class="
wow
agileits
w3layouts
fadeInDown
">
ABOUT
</h1>
<h1 class="
wow
agileits
w3layouts
fadeInDown
">
Tobasamosir
</h1>
</div>
</div>
</div>
...
...
routes/web.php
View file @
64a38a7a
...
...
@@ -82,12 +82,12 @@ Route::group(['middleware' => 'owner'], function () {
Route
::
get
(
'listFeedback'
,
'OwnerController@feddback'
);
});
Route
::
get
(
'detailhomestay/{id}'
,
'CobaController@detailhomestay'
);
Route
::
get
(
'detailhomestay/{id}'
,
'GuestController@detailhomestay'
);
Route
::
get
(
'daftar'
,
'GuestController@register'
);
Route
::
group
([
'middleware'
=>
'customer'
],
function
()
{
Route
::
put
(
'upload/{id}'
,
'CustomerController@upload'
);
Route
::
get
(
'customerHistory'
,
'CustomerController@history'
);
Route
::
get
(
'daftar'
,
'CustomerController@register'
);
Route
::
post
(
'daftar'
,
'CustomerController@registerStore'
);
Route
::
post
(
'book'
,
'CustomerController@booking'
);
Route
::
get
(
'buktipembayaran/{id}'
,
'CustomerController@bukti'
);
...
...
vendor/composer/autoload_classmap.php
View file @
64a38a7a
...
...
@@ -54,7 +54,7 @@ return array(
'App\\Http\\Controllers\\Auth\\LoginController'
=>
$baseDir
.
'/app/Http/Controllers/Auth/LoginController.php'
,
'App\\Http\\Controllers\\Auth\\RegisterController'
=>
$baseDir
.
'/app/Http/Controllers/Auth/RegisterController.php'
,
'App\\Http\\Controllers\\Auth\\ResetPasswordController'
=>
$baseDir
.
'/app/Http/Controllers/Auth/ResetPasswordController.php'
,
'App\\Http\\Controllers\\CobaController'
=>
$baseDir
.
'/app/Http/Controllers/
Coba
Controller.php'
,
'App\\Http\\Controllers\\CobaController'
=>
$baseDir
.
'/app/Http/Controllers/
Guest
Controller.php'
,
'App\\Http\\Controllers\\Controller'
=>
$baseDir
.
'/app/Http/Controllers/Controller.php'
,
'App\\Http\\Controllers\\HomeController'
=>
$baseDir
.
'/app/Http/Controllers/HomeController.php'
,
'App\\Http\\Kernel'
=>
$baseDir
.
'/app/Http/Kernel.php'
,
...
...
vendor/composer/autoload_static.php
View file @
64a38a7a
...
...
@@ -425,7 +425,7 @@ class ComposerStaticInitff6046e218d4cd186580e28a14fe15c5
'App\\Http\\Controllers\\Auth\\LoginController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Auth/LoginController.php'
,
'App\\Http\\Controllers\\Auth\\RegisterController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Auth/RegisterController.php'
,
'App\\Http\\Controllers\\Auth\\ResetPasswordController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Auth/ResetPasswordController.php'
,
'App\\Http\\Controllers\\CobaController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/CobaController.php'
,
'App\\Http\\Controllers\\CobaController'
=>
__DIR__
.
'/../..'
,
'App\\Http\\Controllers\\Controller'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/Controller.php'
,
'App\\Http\\Controllers\\HomeController'
=>
__DIR__
.
'/../..'
.
'/app/Http/Controllers/HomeController.php'
,
'App\\Http\\Kernel'
=>
__DIR__
.
'/../..'
.
'/app/Http/Kernel.php'
,
...
...
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