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
87240297
Commit
87240297
authored
May 24, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new mas bro
parent
abb3f8ad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
15 deletions
+10
-15
CustomerController.php
app/Http/Controllers/CustomerController.php
+0
-4
GuestController.php
app/Http/Controllers/GuestController.php
+6
-7
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 @
87240297
...
...
@@ -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 @
87240297
...
...
@@ -34,14 +34,18 @@ 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'
)
->
select
(
'pemilikhomestay.*'
,
'homestay.*'
)
->
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
);
}
}
routes/web.php
View file @
87240297
...
...
@@ -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 @
87240297
...
...
@@ -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 @
87240297
...
...
@@ -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